FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


shared library/dll problem





umeshtangnu
heya!

im having a bit of trouble with allocating memory across dll/so boundaries. how can i force all code in the application to use the same heap?

hope someone can help? thanks!
Indi
Create one dll/so with all your memory management functions exported from it, and use only those functions for allocation/deletion.

Alternatively, just don't ever free memory in a dll/so unless it was allocated there.
Related topics
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.