Quote:
Correct if i'm wrong: i solved this commenting "dropinterface".
Well, could it be related to the "-lauto" switch I use in gcc, thus Os automatically provides to close libraries, drop interfaces and so on?
Thk you!
The -lauto switch does provide open and closing functions for many of the standard system libraries. You *can* mix your own open library / interface calls with the lauto ones as the lauto code is only brought in if the library and interface are not explictly declared in the code.
You need to be consistant though, only close and drop interfaces that you have explictly opened yourself.
Which dropinterface call was crashing? Was your code crashing inside libauto.a or at your own dropintrface call?
Maybe you dropped the same interface twice?
It's a good idea to set an pointer to NULL after freeing the resource it points to.
eg
IExec->DropInterface(myinterface);
myinterface = NULL;