[comp.sys.mac.programmer] Bus Error?

idowell@bbn.com (Ian Dowell) (11/01/90)

Hi, sorry to ask such a stupid question but I'm new to
the Mac programming stuff.

What is a bus error?  What kinds of things cause one?

Mine occurs between the end of 'for' loop and it's next
iteration.

I'm using Think C 4.02

Any help would be appreciate.  Email please!

Thanks,
Ian Dowell
idowell@bbn.com

news@bbn.com (News system owner ID) (11/01/90)

From: idowell@bbn.com (Ian Dowell)
Path: bbn.com!idowell

Ian

bayes@hpislx.HP.COM (Scott Bayes) (11/06/90)

Bus error means that your code is referencing a memory address that has
no RAM or I/O device at the address.  It usually means a pointer is "off
in the weeds".  Check for pointer dereferences in your for loop.  Make
sure that the pointer actually points at what you think it does (usually
a data structure somewhere in RAM).  Print out the ord() of the pointer
to be sure, and make sure it's somewhere reasonable. I don't speak C, so
translate to C terminology where necessary.

May God have Mercy on your Soul.

Scott Bayes