CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 37

Threaded View

  1. #3
    Join Date
    Nov 2007
    Location
    Birmingham, England
    Posts
    157

    Re: problem with freeing memory in dll

    I'm a bit confused by your code.

    You've gone through the effort of using dynamic access to the DLL. That is you used "LoadLibrary" and then "GetProcAddress" to find the function pointer to the "CreateObject" function.

    But your code doesnt do the same for the "release function".
    Is "release" a function pointer in the object?

    If so, can you check to see that its getting fired correctly.

    If not then could you explain how your code finds "release" but requires "GetProcAddress" to find "CreateObject"

    Regards
    Last edited by couling; November 12th, 2009 at 06:07 PM.
    Signature
    Please use: [ code ][/ code ] tags and reasonably correct tabbing. They really help us read your code
    End Signature

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured