[fpc-devel]crash
Michael Van Canneyt
michael.vancanneyt at wisa.be
Tue Aug 6 09:21:58 CEST 2002
On Mon, 5 Aug 2002, Maxim Artemev wrote:
> Hello.
>
> >From the manual:
> [--cut--]
> 'If the procedure is declared with the cdecl modifier, then the compiler
> will pass the array as a C compiler would pass it. This, in effect, emulates
> the C construct of a varable number of arguments, as the following example
> will show:'
> [--cut--]
>
> This works only under *NIX (I was tested under FreeBSD)
>
> Under Win32 when I'm trying to call a declared function in DLL with
> C-variable array parameters it makes a crash with run-time error 217
> (perhaps stack overflow?).
> Any solve of this problem?
Functions in Windows DLLs usually use the stdcall calling convention.
Are you sure that cdecl is the correct covention for the library
you are trying to use ?
Michael.
More information about the fpc-devel
mailing list