BPB9204%TAMSTAR.BITNET@cornellc.cit.cornell.edu (12/11/88)
I'm trying to learn how to write different types of code such as appli- cations, INITs, and FKEYs(I'm working with Lightspeed Pascal, v 1.11). the few applications I have written for personal use have worked OK. Now I'm giving a shot at INITs. The INIT I'm working on now just draws to the desktop at startup. It calls GetWMgrPort then a setPort, draws the picture using basic QD procedures (lines, FrameOval, text), and then waits for the mouse button to be pressed so it can exit. But in reality, my Mac (Mac +, 1 meg, sys 3.2, find 5.3, no other inits) starts up, displays "Welcome...", then crashes with error ID = 02. My LSP Manual Supplement says the ID of 2 might be caused by uninitialized managers. I did not shut off auto-initialization with {$I-}, and so LSP is supposed to take care of the proper initializations. My init is a unit called main con- taining the primary procedure main, and two other procedures local to proce- dure main (got it?). This init project was compiled with no libraries in the project(this version bombed), and then compiled with a shortened version of MacPasLib (this version also bombed). Given the information here, does anyone know of a possible reason why this bombs? Any hints, tips or comments are appreciated! +-----------------------------------+ | Brent Burton | | BITnet: BPB9204@TAMVENUS | +-----------------------------------+