Sign in Join

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

Mailing lists / fpc-pascal / 2007-06

Compiler Crash

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Adrian Veith

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.

Reply by email