DDhelp and GDI crash...

Everything else that doesn't fall into one of the other PB categories.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Hi @ all

My game is running in Fullscreen mode... 640x480x16 - I have very often trouble while coding/fixing/testing my project... It will very often crash and i dont know why... Debugger enable/disable tested... First start works in most way fine but when starting and exit again sometimes... (2-3 times) my system will complete crash... "DDHelp - DGI.exe" systemfailure... I tested my complete source sometimes step by step and it looks ok... Does someone have the same problem??? running system Win98 2nd Ed...

greetz


MrVainSCL!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Shagwana.

I think this is the same problem i am getting, I am using a window'd screen and updating the graphics eery time the mouse moves over the screen (thats in a window). It will run fine for a short while, then after a few runs the program acts very strange . Any chance of having a look into the GDI -> DirectX code there Fred?, something looks like its going a bit strange!.

http://www.sublimegames.com

EDIT: Im gona try and whip up a little test proggy to show you the problem . When/If i can do it i will post to the bug section!

Edited by - Shagwana on 18 December 2001 00:16:57
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Hi Shawanga!

In PB2.80 i still have some of the old problems with my game project and i am still searching for some hidden bugs... (/me is BugSpyAgent :wink: Btw some questions... When you have the GDI and DDHelp bugs too or system crash when starting you project some times - what libs/commands are you using in that project?

* 2D-DrawLib
* SpriteLib
* ImageLib
* FontLib (seems that i found a hidden bug!? in this lib but i have to find the reason)

Please tell me... thanks in advance...





PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win98SE + Updates...

greetz
MrVainSCL! aka Thorsten
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Shagwana.

The libs I am using are ...

* 2D-DrawLib
* SpriteLib

What I am doing is drawing some lines(2d-DrawingLib) to a screen in a window(SpriteLib). This is what causes the strange behavour. Its not a instant crash either, but only happens after repeated execution of the code. If I took a guess at what the problem could be; it would that something is not getting free'd up correctly - it could be leaving a odd byte behind? or maybe a stray pointer - pointing at something that no longer exists??. Heh, just guesses ... Any news on it yet Fred?

http://www.sublimegames.com
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

thanks for your help shagwana... I think too, that something will not getting free'd up correctly..!? Btw. since the use of PB2.80 i have get two times until now a strange message... "Not enough memory" ... strange, because i have 256 MB ram and there was only WinCmd and PB running... nothing else... It seems that PB will allocate some memory but will not free this...!?

At the moment i am a bit demotivated by the following problems:


sometimes when starting/compiling the source 2nd time - the game (scrolling) slows very down ;( - After some time the full system will hang on

sometimes the game crash when exit.. screen will not close... mousepointer looks like whem the debugger window is active but not to see.. !? ;( (when moving mousepointer it will also change like when the debug window is shown)

Sometimes pb will not display the defined fontnumber... It could be that the font
will be change after some seconds or minutes... Note: Its all the time the same innerloop,
but then it could be that the font will changed to the correct one... crazy...


Hope that Fred can find/fix our GDI/Help problem when fixing the reported Bug "PB 2.80 for Windows - 2D Drawing Bug" :wink:

Now i will go to bed and continue to find the bug tomorrow... anyway thanks for ya support..

PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win98SE + Updates...

greetz
MrVainSCL! aka Thorsten
Post Reply