When exactly would a DLL use a different heap than the executable?
Posted
by
Milo
on Stack Overflow
See other posts from Stack Overflow
or by Milo
Published on 2011-01-10T17:47:20Z
Indexed on
2011/01/10
17:53 UTC
Read the original article
Hit count: 196
I know that if your DLL static links against a different version of the runtime then it creates its own heap. It will also if it is instructed to make a heap. Under these circumstances, it is unsafe for the DLL to delete what the exe allocated. In what cases does this NOT apply (as in, it is safe for the DLL to delete what the exe allocated)? Is it safe if both the exe and the DLL static link against the same runtime library?
Thanks
© Stack Overflow or respective owner