[fpc-pascal] Compiler Crash

Adrian Veith adrian at veith-system.de
Thu Jun 21 14:43:48 CEST 2007


Hello,

my fpc (current version from svn ) compiler crashes, when I compile a 
procedure like this:

procedure Crash;
var
  c0: function: pointer; cdecl;
  c1: function: integer; cdecl;
  m: HMODULE;
begin
  m:= LoadLibrary('blah.dll');
  c0:= GetProcAddress(m, 'c0');
  c1:= c0();
  c1;
end;

btw. is there a known problem when using "cdecl" ?

cheers,

Adrian.



More information about the fpc-pascal mailing list