GLib + Multi-Segment
Brought to you by:
jmarshall
When we try to use a GLib+Multi-Segment, the app
crashes after run 14 times.
the following code is not called
void
_GccReleaseCode (UInt16 cmd UNUSED_PARAM, void *pbp
UNUSED_PARAM, UInt16 flags)
{
if (flags & sysAppLaunchFlagNewGlobals)
{
MemHandle codeH;
int resno;
for (resno = 2; (codeH = DmGet1Resource ('code',
resno)) != NULL; resno++)
{
MemHandleUnlock (codeH);
DmReleaseResource (codeH);
}
}
}
The segments code remain locked.
Manoel