[Pythonmac-SIG] Abnormal program termination
Jared Updike
jaredu@its.caltech.edu
Tue, 15 Aug 2000 11:44:21 -0700 (PDT)
So when I debug into PythonCore when my code calls PyMac_Initialize(); and
step through,
static int
getpreffilefss(FSSpec *fssp)
{
static int diditbefore=0;
static int rv = 1;
static FSSpec fss;
short prefdirRefNum;
long prefdirDirID;
long pyprefdirDirID;
Handle namehandle;
OSErr err;
if ( !diditbefore ) {
if ( (namehandle=GetNamedResource('STR ',
PREFFILENAME_NAME)) == NULL ) {
(void)StopAlert(NOPREFNAME_ID, NULL);
-->> exit(1);
}
it dies here __^ Is there an easy way to fix this (it looks trivial but I
don't know that much Mac stuff) What is the issue here?
--Jared
Web: http://waffles.caltech.edu
Phone: (626)395-1154
Campus Adress: Blacker Hovse, Room 31
Adress: MSC 935 Caltech
Pasadena, CA 91126-0935