Answer the question
In order to leave comments, you need to log in
Is it safe to call globalFree from an application when globalAlloc has been done in a dll?
Greetings!
This is a continuation of my question How to free memory if it is allocated in the library? only here specifically about one place:
In one critical place, you need to free memory, in the library, apparently, it is captured through globalAlloc
Since the library itself does not release it and does not provide any functions for this,
is it safe to call globalFree in the application and how to do it correctly (I mean whether it is necessary to do lock, etc.)?
PS There are no source codes for the library, the developer does not make contact, there is no way to rewrite.
PSS Googled, but these are very old functions, so the information on how it works in Windows right now is extremely scarce and I can’t understand if it’s possible...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question