Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bobber205

macrumors 68020
Original poster
Nov 15, 2005
2,182
1
Oregon
Suddenly, I got a mysterious breakpoint in my code (didn't put it there.)

I went ahead and stepped into the next line and my code suddently died. Some error about "receiving ARTH something or crap like that". :rolleyes:

Anyway. After a while, I found out that if I take out any code related to math, such as % and dividing it runs. With % and / in there, I get a "executable path is nil".

WTF?!
 

lazydog

macrumors 6502a
Sep 3, 2005
709
6
Cramlington, UK
Sounds very strange and I don't know if I can help but perhaps you have a problem with static member initialisation?

I'm thinking that maybe you have some static variables that are not being initialised in the order that you think they should be. For example you may have a static variable in a file (.m, .c or .cpp) whose value you are using in another file, either in the initialisation of another static variable or in a calculation inside a function/method call.

hope this helps

b e n
 

bobber205

macrumors 68020
Original poster
Nov 15, 2005
2,182
1
Oregon
Was dividing by zero. Thanks Xcode for so not pointing that out. :mad: Visual Studio 2005 did. ;)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.