Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!nuchat!jeffn From: jeffn@nuchat.UUCP (Jeff Noxon) Newsgroups: comp.sys.apple2 Subject: CDEV won't write to resource fork during boot! Arrgh! Message-ID: <28572@nuchat.UUCP> Date: 24 Sep 90 23:02:19 GMT Organization: South Coast Computing Services, Inc. - Houston, Tx Lines: 31 I'm writing a CDEV that -needs- to be able to modify a user resource during boot. I can read/write the resource fine when the control panel is active, however during the boot strange things happen: o A routine is called that reads two user resources, and it does this properly. o A routine is called that modifies one of the user resources if necessary. I've tried _MarkResourceChange and _WriteResource. Both of these return with no error but do NOTHING. I've traced through this with GSbugs by placing a brk in the beginning of the CDEV boot routine. The memory is modified properly, the calls claim to work okay, but don't do anything. I've tried fiddling around with other resource manager calls to force the fork to be written, but it's not happening. The exact same code works when later executed from the Control Panel. Is resource manager documentation available in release form yet? What book can I find it in? ISBN #? I'm trying to do this with E16 and M16 files as my only documentation. Ouch! Any ideas appreciated. Jeff -- Jeff Noxon | Stop complaining and do something about jeffn@nuchat.sccsi.com | it. Really! 713/721-6820 (CDT) Houston, TX |