continuosly calling the function from winelib failing - stackoverflow

Ananth M mekaananth at gmail.com
Mon Dec 26 03:27:25 CST 2005


Hi All
    Thank you for the responce
     I am able to solve the problem and the problem is due to the calling
convention .

     Thank you all once again



On 12/26/05, Dmitry Timoshkov <dmitry at baikal.ru> wrote:
>
> Ananth M <mekaananth at gmail.com> wrote:
>
> >       - Stub function is declared in XXXXX_dll.h as
> >               long __stdcall STUB_Add(long, long);
> >       -Stub function is defined  in XXXXX_main.c as
> >               long __stdcall STUB_Add(long x, long y)
> >               {
> >                      printf ("stub function is called \n");
> >                      return 0;
> >               }
> >
> >       In one Application , I used
> >              LoadLibrary("XXXXX.dll.so") - to load the dll
> >              GetProcAddress("") - to get the function pointer
> >            and if I call the function continuously in a loop of for 1000
> > times, first 2 calls are success 3rd call  is crashed
>
> How do you define a function pointer? Does it have proper number of
> arguments/
> calling convention? If it looks OK to you but still crashes, perhaps you
> could
> create a sample project which shows the problem and post an url for it
> here?
>
> --
> Dmitry.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-devel/attachments/20051226/be00c9d9/attachment.htm


More information about the wine-devel mailing list