Significantly more memory consumption when called from Unmanaged code RRS feed

  • Question

  • I have a C# class library. I have exposed it to COM.

    If I call functions of this library from another managed application it behaves normally. However the process consumes excess memory (about 30 times more , compared with using through managed code) when I call the function of this library from unmanaged code.

    Is there a "Good Programming Practice" that I am missing here while working with interop/Interoperability?

    What could be the cause of the excess memory consumption?

    Any help, suggestion, ideas, comments are appreciated!
    Wednesday, March 4, 2009 6:20 PM


  • Is the reference counting in order?   Please take a look at #13 and #14 in the list on this post
    • Marked as answer by warrentang Wednesday, March 11, 2009 2:15 AM
    Thursday, March 5, 2009 12:32 AM