HighTechTalks DotNet Forums  

Callling unmanged DLL from WebService = access violation error

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Callling unmanged DLL from WebService = access violation error in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Juri Glukowskij
 
Posts: n/a

Default Callling unmanged DLL from WebService = access violation error - 11-07-2007 , 03:56 PM






Hi,
i have a managed WebService written in c# which accesses an DLL written in
c++ )unmanaged). I load the DLL with DLLIMPORT function and then call a
function inside of the dll. Now the huge problem is: after i have called the
webservice like 10 Time simultaniously my application crashes with an access
violation error. When I remotely debug my programm, i can see that the
problem occurs in the kernel32.dll and the dump catched with the microsoft
debug tools looks like it cant load/unload the unmanaged.dll.

Can somebody give me a hint why this could happen? Perhaps because all
threads are trying to get ONE unmanaged dll, and its not thread safe?

Please help!
Thank you!

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.