[comp.sys.amiga.programmer] ==> Need help with Gadgets <==

greenwoode@merrimack.edu (Ed Greenwood) (05/29/91)

     I am writing a small applications program that uses string and boolean
gadgets on some of the screens.  Everything in my program is working nicely, 
but when I quit the program crashes.  I've tried many different things, but 
I always get errors such as 00000003 (addressing error) or 00000004 
(illegal instruction) when my program ends.  The AMIGA ROM KERNEL manual
says that this type of error might be caused by freeing memory twice or
by initializing a pointer incorrectly.  

     All of the string and boolean gadgets in my program are initialized 
in a separate procedure, then passed to procedures that use them.  What are
some ways a program could free up memory twice?  How should a string or
boolean gadget be initialized?  Any comments or suggestions would be greatly
appreciated.
 
                                                         Thanks,
                  
                                                         Ed Greenwood