Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!wuarchive!zaphod.mps.ohio-state.edu!caen!news.cs.indiana.edu!noose.ecn.purdue.edu!gn.ecn.purdue.edu!pardue From: pardue@gn.ecn.purdue.edu (Jon Pardue) Newsgroups: comp.sys.mac.programmer Subject: Re: Hello, World #2 again Message-ID: <1991Feb26.161027.1524@gn.ecn.purdue.edu> Date: 26 Feb 91 16:10:27 GMT References: Organization: Purdue University Engineering Computer Network Lines: 33 In article jp48+@andrew.cmu.edu (Jonathan Pace) writes: > >While running my code, it gets a "bus error" on the line WindowInit() >below: > >main() >{ > ToolBoxInit(); > WindowInit(); > while ( !Button() ); >} > >Suggestions? > >Jon Pace I had this type of problem, too. I had two segments set up in the THINK C segment window (one was too small for my code + the ANSI library), one containing all of my source and one containing the ANSI stuff. I always got a bus error. I fixed it somehow by dragging the section(s) of my code that performed memory management down into the same segment with ANSI. That worked, although if anyone can explain it to me I will be grateful! :-) I don't know if this will help; please let me know. It does seem odd that something like that should matter, but then again I'm new to this platform too! - Jon -- ---------------------------------------------------------------------------- Jon Pardue "The plural of 'spouse' is 'SPICE'." pardue@gn.ecn.purdue.edu - me "Old musicians never die, they just go from bar to bar." - Anonymous