View Single Post
06-17-05, 02:40 AM   #1
Sathanas
A Deviate Faerie Dragon
 
Sathanas's Avatar
AddOn Author - Click to view addons
Join Date: May 2005
Posts: 15
Tracking down a math crash

Ive been putting off working on what i consider my greatest work with the UI stuff ( http://www.wowinterface.com/download...php?s=&id=3968 ) because it has a bad tendancy to crash the game with c_math.cpp errors.

I understand that this is most often caused by divide by zero, but ive peppered so many "if (thisthing == 0) then thisthing = 1; end" in there that its overloaded.

I cant even pinpoint whats happening that causes these crashes. It will happen at completely random times when i have nothing targetted (which makes no sense, considering my mod is a target panel replacement and shouldnt be doing the main update function at all with no target), but i can confirm that it is my mod causing it. When i disable SathPanel, the crashes cease.

Anyone have any reccomendations on good techniques to narrow down what could be causing this? Im not even sure what all besides dividing by zero will cause math crashes at all
__________________
--Sathanas
  Reply With Quote