Be a Supporter!

c++ program keeps crashing

  • 546 Views
  • 8 Replies
New Topic Respond to this Topic
dELtaluca
dELtaluca
  • Member since: Apr. 16, 2004
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
c++ program keeps crashing 2005-07-18 15:11:13 Reply

ive made a program which draws a 4d fractal but whenever i make the screen size bigger therefore increasing the size of the loops then it crashes - if i use more complex calculations on the quaternions it crashes (if i do the same calculations on their own everything is fine) same as using a large screen with simple calculations

anyone got any idea what could be causing this?


using ShamelessPlug; NapePhysicsEngine.advertise();

BBS Signature
nXXt
nXXt
  • Member since: Oct. 11, 2002
  • Offline.
Forum Stats
Member
Level 18
Blank Slate
Response to c++ program keeps crashing 2005-07-18 17:14:01 Reply

Memory error perhaps?

Afro-Ninja
Afro-Ninja
  • Member since: Mar. 2, 2002
  • Offline.
Forum Stats
Moderator
Level 44
Game Developer
Response to c++ program keeps crashing 2005-07-18 17:25:55 Reply

The fact that you're trying to draw something in four dimensions? : /


BBS Signature
Ravens-Grin
Ravens-Grin
  • Member since: Jun. 3, 2003
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to c++ program keeps crashing 2005-07-18 23:55:35 Reply

At 7/18/05 05:25 PM, Afro_Ninja wrote: The fact that you're trying to draw something in four dimensions? : /

The image evolves over time.

But it's kinda hard to figure a problem out if we are not supplied some source code...

Ravens-Grin
Ravens-Grin
  • Member since: Jun. 3, 2003
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to c++ program keeps crashing 2005-07-19 00:04:28 Reply

At 7/18/05 05:25 PM, Afro_Ninja wrote: The fact that you're trying to draw something in four dimensions? : /

I'm mistaken about what I said earlier after I actually looked it up...

A quaternion deals with 4 dimensions in 3 directional vectors, and 1 scalar vector. There is no dealing with time in a quaternion.... sorry about that.

CronoMan
CronoMan
  • Member since: Jul. 19, 2004
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to c++ program keeps crashing 2005-07-19 05:13:01 Reply

At 7/19/05 12:04 AM, Ravens_Grin wrote: A quaternion deals with 4 dimensions in 3 directional vectors, and 1 scalar vector. There is no dealing with time in a quaternion.... sorry about that.

Damn, must you kill every opportunity to start flaming? >:(


"no sound in ass"

dELtaluca
dELtaluca
  • Member since: Apr. 16, 2004
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to c++ program keeps crashing 2005-07-19 11:32:44 Reply

well heres the source code for the program (the quat.h file contains the class decleration for the Quad class)

also if its any more help - in the Task Manager it always takes up 98% of the CPU with other things taking up the other 2% so im guessing that could be why it crashes with a bigger screen (bigger loops) and heavier calculations.


using ShamelessPlug; NapePhysicsEngine.advertise();

BBS Signature
dELtaluca
dELtaluca
  • Member since: Apr. 16, 2004
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to c++ program keeps crashing 2005-07-19 11:34:39 Reply

lol forgot to post the link ^^

http://www.delta.ecwhost.com/Quat.cpp


using ShamelessPlug; NapePhysicsEngine.advertise();

BBS Signature
dELtaluca
dELtaluca
  • Member since: Apr. 16, 2004
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to c++ program keeps crashing 2005-07-20 11:28:42 Reply

weee <<<


using ShamelessPlug; NapePhysicsEngine.advertise();

BBS Signature