• MorphOS Developer
    CISC
    Posts: 619 from 2005/8/27
    From: the land with ...
    Quote:

    BSzili wrote:
    Ach so, thanks for the clarification. I'm not handling ctors/dtors manually, only ctdt: https://github.com/BSzili/OpenJK/blob/amiga/code/aros/libnix_so.c
    I guess the dtors are only called by dynload.library's dlclose. What kind of debug info should I print? The addresses of the class members?


    For example, anything that can clue you in what's going on in the crashdump.

    Quote:

    Georg wrote:
    Isn't the order in which this constructor/destructor stuff gets called, important?CallFuncArray() in that code always goes forward through the array. Maybe it needs to go backwards sometimes depending on whether it's constructor or destructor array.


    Look closer; .ctdt array is priority-sorted before functions are called, besides the issue is not in .ctdt which only contains de/constructors created from constructor.h (usually only libnix stuff), but rather .c/dtors which are compiler-created de/constructors.


    - CISC
  • »24.07.14 - 06:11
    Profile