Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!sunybcs!boulder!tramp!hartkopf From: hartkopf@tramp.Colorado.EDU (Jeff Hartkopf) Newsgroups: comp.sys.apple Subject: resource manager error problem Message-ID: <15328@boulder.Colorado.EDU> Date: 4 Jan 90 06:44:33 GMT Sender: news@boulder.Colorado.EDU Reply-To: hartkopf@tramp.Colorado.EDU (Jeff Hartkopf) Organization: University of Colorado, Boulder Lines: 50 I'm having a problem with a resource manager error (along with a system crash) in an NDA I'm writing which doesn't use resources! My DAOpen routine is something like GrafPortPtr Open(void) { wind = NewWindow(&wParms); SetSysWindow(wind); NewControl2(wind, 3, ctlTemp); } where wParms is a valid structure and ctlTemp is a pointer to a NULL- terminated list of pointers to new style control templates (and the NewControl2 call works properly). Now, when I boot the computer, then run any GS/OS application, the desk accessory opens fine, displays the controls from NewControl2 fine, etc., etc. Or, if I run a ProDOS 8 program, then return to the Finder, and then run any GS/OS program that (it seems) *starts up the resource manager* the DA still opens fine. However, if, after running the P8 program, I run a program that doesn't start up the resource manager, and from it try to open the DA, when it gets to the NewControl2 line, I get a system crash to the sliding apple text screen with the error message: Could not load/unload resource. Type = 800c ID = 07FF0001 Error 1E06 The reason I say it *seems* like it doesn't crash if I run a program that starts the resource manager is because it works properly with programs like the Finder and AWGS 1.1, but not with older programs from before system 5.0. Again, the DA works with *all* GS/OS programs *before* running a P8 program, but not with those that don't start the RM *after* running a P8 program. I hope this is clear :-) Also, if I simply remove the NewControl2 line, there are not problems whatsoever. So it's got to be some problem there. If anyone has any idea what might be causing this problem, or if I need to do something else to figure out what's the problem, please let me know! Thanks. Jeff Hartkopf Internet: hartkopf@tramp.Colorado.EDU