Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-06

opengl unit gl on x86_64

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

On a x86_64 system I tried to run a program using the opengl 'gl' unit.

It failed, because the function 'glAccum' does not exist. Commenting that one 'solved' the problem.

Can GetProcAddress be used to load a lib function dynamically, without bombing if the function is missing?

Mattias

Reply by email

Florian Klaempfl
to Mattias Gaertner
Mattias Gaertner wrote 7 lines
On a x86_64 system I tried to run a program using the opengl 'gl' unit. It failed, because the function 'glAccum' does not exist. Commenting that one 'solved' the problem. Can GetProcAddress be used to load a lib function dynamically, without bombing if the function is missing?

Enclose it by

try
  ...
except
end;

?

Reply by email

Michael Van Canneyt
to Florian Klaempfl
Florian Klaempfl wrote 15 lines
Mattias Gaertner wrote: > On a x86_64 system I tried to run a program using the opengl 'gl' unit. > > It failed, because the function 'glAccum' does not exist. > Commenting that one 'solved' the problem. > > Can GetProcAddress be used to load a lib function dynamically, without > bombing if the function is missing? Enclose it by try ... except end;

That should not be necessary.
GetProcAddress does not raise any exceptions, it returns Nil if it can't find the address.

Michael.

Reply by email