[comp.sys.mac] LSC Modeless Dialog Nightmare

mike@artsvax.UUCP (Michael Czeiszperger) (10/22/87)

I'm having a terrible problem trying to implement modless dialog boxes
in LSC on a MacII.  I send a pointer to WindowRecord to the GetNewDialog
command to avoid fragmenting the heap, but it bombs in many instances.

There are two main modeless dialog boxes.  One is very small, and the other
is very large, containing over twenty buttons.  If I call the small one
first, and then the second, everything is fine.  If however, I call the
larger dialog box first, the system always crashes on error #1, which is
supposed to be a bus error.

Has anyone had any problems with modeless dialog boxes in LSC?  If so,
please share any advice you may have gained through experience.

Thankyou in advance,

(ARRRGHHHH SCREEEEEAAAAAAM)


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Michael S. Czeiszperger      | Disclaimer: "Sorry, I'm all out of pith" 
  Systems Programmer I	      | Smail: Room 406 Baker      (614)
   College of the Arts        |        1971 Neil Avenue      292-
     Computer Lab             |        Columbus, OH 43210     0895
The Ohio State University     | UUCP: {decvax,ucbvax}!cbosgd!osupyr!artsvax!mike
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

dwb@apple.UUCP (David W. Berry) (10/23/87)

In article <157@artsvax.UUCP> mike@artsvax.UUCP (Michael Czeiszperger) writes:
>I'm having a terrible problem trying to implement modless dialog boxes
>in LSC on a MacII.  I send a pointer to WindowRecord to the GetNewDialog
>command to avoid fragmenting the heap, but it bombs in many instances.
	Pass in a pointer to a DialogRecord instead of the WindowRecord.
	A dialog has extra things beyond what a window does, you are thus
	trashing whatever comes after your WindowRecord.
-- 
	David W. Berry
	dwb@well.uucp                   dwb@Delphi
	dwb@apple.com                   973-5168@408.MaBell
Disclaimer: Apple doesn't even know I have an opinion and certainly
	wouldn't want if they did.