Weak, the code is working, probably is not that smart but LoadLibrary works, it loads the handle and I can use it to GetProcAddress and so on. (I've also changed in multy and removed the L)
Arunmib
The managed dll is only called by the unamanged dll.
To be sure I've done something else:
I've built another application (managed exe) which simply calls and release the dll.
Nothing changed using the appdomains,...
User Profile
Collapse
-
Hi Plater
Thanks for you answer.
First of all I missed an important information. There's a cad Program (NX) which executes the unmanaged dll (which calls the managed)
1) The file is locked by the cad. Restarting the cad the file comes deletable.the unmanaged dll is not locked.
2) FreeLibrary(pp) ; was a copy\paste error, in the code is FreeLibrary(mod ule); The unmanaged dll frees the library....Leave a comment:
-
Hi Arunmib
Thanks for you answer.
First of all I missed an important information. There's a cad Program (NX) which executes the unmanaged dll (which calls the managed)
1) When I say "dll locked and can't modify it" I mean that dll file is locked and I can't delete it or overwrite with the new version. I'm able to access to "myproc". The file is locked by the cad. Restarting the cad the file...Leave a comment:
-
unmanaged dll calls and locks managed dll
Hi everybody.
I'm trying to call a managed dll from an unmanaged dll.
Everything is working fine except for the fact that after the execution the managed dll remains locked and I can't modify it. This is a big problem for what I've got to do.
what happens int the managed seems to be uninfluent.
here's a piece of my code in the unmanaged (calling) dll, :
unsigned __stdcall dlg2( void *ch )
{
... -
unmanaged dll calls and locks managed dll
Hi everybody.
I'm trying to call a managed dll from an unmanaged dll.
Everything is working fine except for the fact that after the execution the managed dll remains locked and I can't modify it. This is a big problem for what I've got to do.
what happens int the managed seems to be uninfluent.
here's a piece of my code in the unmanaged (calling) dll, :
[code=cpp]
unsigned __stdcall dlg2( void *ch )
...
No activity results to display
Show More
Leave a comment: