Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


DeliciousThaiCosine

Member Since 15 Jun 2013
Offline Last Active Oct 22 2013 11:51 AM

Posts I've Made

In Topic: Basic Game Loop Crash

24 September 2013 - 11:41 AM

Sounds like your fans are clogged or you've got a lot of dust (or the temperature gauge is malfunctioning and reading as hot when it's not).  Did your computer feel pretty hot to the touch when it shut down?

 

It probably would have happened no matter what program you were running - doing something CPU intensive like watching a movie will also accelerate the heatup/shutdown.

I didn't try touching it so I can't say. 

My CPU was pretty high during the time though, so yeah.

I'll also try cleaning the inside later when I my family stops using it just to be extra safe.

 

I'm more interested in seeing what's wrong with my code though, assuming it doesn't work properly for anyone else.


In Topic: Basic Game Loop Crash

24 September 2013 - 03:39 AM

Your entire computer crashed? It should not be possible for user mode code to crash the entire machine. It is certainly either an operating system bug, or a hardware/driver issue.

 

Are all your drivers up to date? Are your computer's fan vents clear of dust?

 

By crashed I meant my computer shut down. It still works perfectly fine.

Yeah all my drivers are up to date and everything.

 

I assume it was the program that did it because that's when it shut down.

Also my computer hasn't really had any problems before that I know of.


In Topic: Error is illogical

15 June 2013 - 07:02 PM

Is the

 

i = 10;

 

line outside of a function? Because you can't assign a variable like that in global (file) scope, it must be inside a function. It also won't work inside a class or struct definition if you put it on a different line (i.e. outside of a member function). You have to do the declaration and the initialisation in a single line of code.

 

Thank you!

I never knew you couldn't assign things globally, I just assumed it was bad practice, not knowing why.


PARTNERS