[fpc-devel] opengl unit gl on x86_64

Michael Van Canneyt michael at freepascal.org
Sat Jun 24 11:14:36 CEST 2006



On Sat, 24 Jun 2006, Florian Klaempfl wrote:

> 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.



More information about the fpc-devel mailing list