Memory Manage in pInvoke

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi..
Thanks for reading my msg...


I am using pInvoke services in my application to call functions from an
external DLL. Here I like to know about memory management in pInvoke, b'se i
m calling no of functions from the same DLL. I know like.. the
IUnknown.release() will release the dll object when it's reference counter
reach zero.. but i want a clear idea abt this. if you have any idea/related
web url, plz. give me a hand...


example of using external dll...

[DllImport ("myDll")]
public static extern void myFunction1();

[DllImport ("myDll")]
public static extern void myFunction2();


bye
-rajaManickam
 
I know like.. the
IUnknown.release() will release the dll object when it's reference counter
reach zero.. but i want a clear idea abt this.

There are no COM objects involved here, and therefore no IUnknown
calls.



Mattias
 
Hi ,

thanks for reply..

Then how is it maintaining memory leak... by GC? how it is releasing memory
....

thanks again...
-rajaManickam
 
Back
Top