[futurebasic] STR#

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1999 : Group Archive : Group : All Groups

From: MoorePrint@...
Date: Thu, 6 May 1999 11:07:18 EDT
In a message dated 5/5/99 4:05:24 AM, futurebasic-digest-help@... 

<<Date: Tue, 04 May 1999 18:55:19 -0500
To: List Server <futurebasic@...>
From: "Terrald J. Smith, M.D." <tjsmith@...>
Subject: STR#
Message-Id: <199905042355.SAA22562@...>

I am still having problems with STR# resources....

My access is:  AZ$=STR#(_procedureslistSTR,PROCEDURE)

If I key the resource as purgeable with ResEdit, the date will easily be
garbage after using for awhile, I assume the memory manager tosses it and
then the above will not load the information.  If the resource is coded to
not be purgeable, then I do not have the garbage data but the program will
crash if used for hours generally with a type -39 error.

This has been frustrating for over a year now.  I have used deBug II and
checked the constants etc....can't get a reason.

Has anyone else had this frustration and hopefully a fix?

I don't understand why the nonpurgable version gets trash. Are you changing 
the str# resource, if so are you using the pGreplaceRes function. Is the 
resource in an external file, if so you may need to set the current resource 
file to access, then reset back to what ir was prior.

Don't scare me like this, I am starting to use a lot of str# resources!