Hi! is there a way to put some code on a finalization block for a dll/so ?
Something that gets executed when the program is closed..
thanks!
Hi! is there a way to put some code on a finalization block for a dll/so ?
Something that gets executed when the program is closed..
thanks!
If you save your data in a proprietary format, the owner of the format owns your data.
<br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>
http://www.avdf.com/feb96/jkwin32dll.html
Essentially, use the DLLProc variable to point to a procedure that is called when the DLL is unloaded.
Umm i need it working on Linux too.. that seems to work only on win32..
If you save your data in a proprietary format, the owner of the format owns your data.
<br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>
I'm not sure if thats a built-in capable feature of DLL or SO linkable libraries(considering that the idea is that they are linkable to any other program) BUT you can always just call a common function at the end of each program that uses the DLL/SO or if you have an initialize/finalize(deinitialize) set of functions for your libraries then you can simply include a call to this function in your deinit code.
Interesting idea though....
The problem is that i'm not writing the programs that uses my so, it's already done by thirds.
I'll try including a unit and using it's finalization block nice idea!
If you save your data in a proprietary format, the owner of the format owns your data.
<br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>
Bookmarks