K538915@CZHRZU1A.BITNET.UUCP (05/05/87)
While working on my latest program, I had a tiny bit of trouble with the call windset(0,WFNEWDESK,tree,0,0) call described in Tim Oren's PRO-GEM and Abacus ST-Internals book. Now and then a program would just suddenly bomb out (NOT the program I was working on), then I relised what was even after a appl_exit and rsrc_free, AES was still trying to the draw the desktop with the (non-existant) object tree. This will only be noticeable if you start the program from a shell and not from the desktop, as the desktop (as the name says:-)) uses it own desktop..... The solution is to do a windset(0,WFNEWDESK,0,0,0,0) (I didn't find this documented anywhere!) call before stoping the program, this will restore the default grey desktop. A wide spread program that has this bug is K-Resource v1.0, so DON'T use it from a shell! Simon Poole K538915@CZHRZU1A.BITNET