> 
> I also have a Word declare for PrefSize.
> Word PrefSize;
> 
> PrefGetAppPreferences(CREATORID, 0, &Prefs, &PrefsSize, 0) from within the
> StartApplication() function and the cooresponding Set within the
> StopApplication() function.

You need to initialize PrefSize. To wit:

PrefSize = sizeof(Prefs);
PrefGetAppPreferences(CREATORID, 0, &Prefs, &PrefsSize, 0)

You set the initial size so that PrefGetAppPreferences won't overwrite past
the end of the buffer you pass.

>From the docs:
prefs Pointer to a buffer to hold preferences.
prefsSize Pointer to size the buffer passed.

Reply via email to