Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!stevec From: stevec@Apple.COM (Steve Christensen) Newsgroups: comp.sys.mac.programmer Subject: Re: Why am I getting bus-error in think C debugger? Message-ID: <46696@apple.Apple.COM> Date: 19 Nov 90 17:46:05 GMT References: <7022@vax1.acs.udel.EDU> Organization: Apple Computer Inc., Cupertino, CA Lines: 19 bach@vax1.udel.edu (Baskaran Subramaniam) writes: >I am new to programming in Think C. Could someone tell me what a bus-error >means? When I try to step through a test program (which runs without >giving any error outside the debugger) I get a bus-error. Why? You get a bus error when a program references an "unused" address, i.e., one that doesn't contain RAM, ROM, or an I/O device. You may have an uninitialized pointer or handle somewhere. Or perhaps you're not checking that a returned handle or pointer is valid before you use it. just a guess... steve -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ whoami? Steve Christensen snail: Apple Computer, 20525 Mariani Ave, MS-81CS, Cupertino, CA 95035 internet: stevec@apple.com AppleLink: stevec CompuServe: 76174,1712