Results 1 to 5 of 5

Thread: dll/so finalization block

  1. #1

    dll/so finalization block

    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>

  2. #2

    dll/so finalization block

    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.

  3. #3

    dll/so finalization block

    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>

  4. #4
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    dll/so finalization block

    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....
    Jason McMillen
    Pascal Game Development
    Co-Founder





  5. #5

    dll/so finalization block

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •