I guess it depends on what bug you are talking about. Glib only
releases the first code segment when your application quits, so you get errors
that way. You have to release the other code segments yourself. Code like
this should be put in your first code segment and called before you exit the
application:
void UtilReleaseCode(UInt16 launchFlags)
{
if(launchFlags & sysAppLaunchFlagNewGlobals)
{
MemHandle codeH;
UInt16 resno;
for(resno = 2; (codeH = DmGet1Resource('code', resno)) != NULL;
resno++)
{
MemHandleUnlock(codeH);
DmReleaseResource(codeH);
}
}
}
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/