| View previous topic :: View next topic |
| Author |
Message |
ShurikeN Advanced Cheater
Reputation: 0
Joined: 09 Jan 2008 Posts: 84
|
Posted: Fri Dec 05, 2008 11:00 pm Post subject: Help me solve this!! pls! |
|
|
im currently creating my first win32 gdi game but im having a problem with it. When i run the game it runs well but after a while (3min or 4) it then crashes.
pls help me solve this problem..
btw, some parts of the codes are taken from my old CD GameTutorials, particularly the TransparentBlit() function, fmod source and sound, and ofcourse the win32 template is from codeblocks IDE . Other than those are mine. This is still unfinished and i got a lot more to add.
_________________
| Code: | XXXXXX XXXXXX
XXXXX XXXXX
XXXXXXXX
D I R E C T
XXXXXXXX
XXXXX XXXXX
XXXXXX XXXXXX
GameDev
|
Last edited by ShurikeN on Sat Dec 06, 2008 8:00 am; edited 4 times in total |
|
| Back to top |
|
 |
AlbanainRetard Master Cheater
Reputation: 0
Joined: 02 Nov 2008 Posts: 494 Location: Canada eh?
|
Posted: Fri Dec 05, 2008 11:26 pm Post subject: |
|
|
Sorry cant see source, thanks to rapidshare
_________________
|
|
| Back to top |
|
 |
ShurikeN Advanced Cheater
Reputation: 0
Joined: 09 Jan 2008 Posts: 84
|
Posted: Sat Dec 06, 2008 7:57 am Post subject: |
|
|
there you go, i uploaded it here. in my first post.
_________________
| Code: | XXXXXX XXXXXX
XXXXX XXXXX
XXXXXXXX
D I R E C T
XXXXXXXX
XXXXX XXXXX
XXXXXX XXXXXX
GameDev
|
|
|
| Back to top |
|
 |
DoomsDay Grandmaster Cheater
Reputation: 0
Joined: 06 Jan 2007 Posts: 768 Location: %HomePath%
|
Posted: Sat Dec 06, 2008 8:35 am Post subject: |
|
|
First things first: you have a memory leak (run the application and monitor the memory usege on the task manager).
-EDIT-
Found a crash cause: | Code: | File: CEngine.cpp
Line: 140
Invalid pointer: pBackBits(0x00000000) |
|
|
| Back to top |
|
 |
AlbanainRetard Master Cheater
Reputation: 0
Joined: 02 Nov 2008 Posts: 494 Location: Canada eh?
|
Posted: Sat Dec 06, 2008 12:16 pm Post subject: |
|
|
Time to make a dev c++ project and see whats wrong, will update my post when I am done.
_________________
|
|
| Back to top |
|
 |
ShurikeN Advanced Cheater
Reputation: 0
Joined: 09 Jan 2008 Posts: 84
|
Posted: Sat Dec 06, 2008 10:09 pm Post subject: |
|
|
wtf! CPU usage is really high! why is that?
_________________
| Code: | XXXXXX XXXXXX
XXXXX XXXXX
XXXXXXXX
D I R E C T
XXXXXXXX
XXXXX XXXXX
XXXXXX XXXXXX
GameDev
|
|
|
| Back to top |
|
 |
Sora Grandmaster Cheater Supreme
Reputation: 0
Joined: 14 May 2008 Posts: 1471
|
Posted: Sat Dec 06, 2008 11:11 pm Post subject: |
|
|
| ShurikeN wrote: | | wtf! CPU usage is really high! why is that? |
Include the sleep(seconds) function?
|
|
| Back to top |
|
 |
|