Hi All<br>
Thank you for the responce<br>
I am able to solve the problem and the problem is due to the calling convention .<br>
<br>
Thank you all once again <br>
<br>
<br><br><div><span class="gmail_quote">On 12/26/05, <b class="gmail_sendername">Dmitry Timoshkov</b> <<a href="mailto:dmitry@baikal.ru">dmitry@baikal.ru</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ananth M <<a href="mailto:mekaananth@gmail.com">mekaananth@gmail.com</a>> wrote:<br><br>> - Stub function is declared in XXXXX_dll.h as<br>> long __stdcall STUB_Add(long, long);<br>> -Stub function is defined in XXXXX_main.c as
<br>> long __stdcall STUB_Add(long x, long y)<br>> {<br>> printf
("stub function is called \n");<br>> return
0;<br>> }<br>><br>> In one Application , I used<br>> LoadLibrary("<a href="http://XXXXX.dll.so">XXXXX.dll.so</a>")
- to load the dll<br>> GetProcAddress("")
- to get the function pointer<br>> and
if I call the function continuously in a loop of for 1000<br>> times, first 2 calls are success 3rd call is crashed<br><br>How do you define a function pointer? Does it have proper number of arguments/<br>calling convention? If it looks OK to you but still crashes, perhaps you could
<br>create a sample project which shows the problem and post an url for it here?<br><br>--<br>Dmitry.<br></blockquote></div><br>