[Pythonmac-SIG] Abnormal program termination
Just van Rossum
just@letterror.com
Tue, 15 Aug 2000 20:57:08 +0100
At 11:44 AM -0700 15-08-2000, Jared Updike wrote:
>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?
It means it cand find a 'STR ' resource with a name of whatever
PREFFILENAME_NAME says.. You might need to include some of the MacPython
resource files in your project.
Just