c++ - Deleting the pointer from DLL -


all,

this continuation of this thread.

it looks pointer has been allocated inside dll become bad after dll unloaded. following suggestion tbble given in mentioned thread works if delete pointer in same function, if return pointer main application , try access different function, pointer becomes bad.

i believe if put foo class inside main application not me may wrong. reason because dll2 unloaded unloading of dll3.

so idea how make compiler happy, don't introduce memory leaks , don't crash?

thank you.

p.s.: follow suggestion given @ end of comments create new question. apologies if bad thing do.


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -