Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Bug found with screen invalid

Author
Message
SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 24th May 2011 03:20 Edited at: 24th May 2011 03:21
using dbpro release 1.075 with windows 7

This bug crashes the application regardless when screen goes invalid





it looks like this will only happen if you have a matrix that exists. i pulled it out of my main application and it works fine.

the bug is directly related to having a matrix exist as well as possibly running windows 7 with it...

can anyone confirm

SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 24th May 2011 03:28 Edited at: 24th May 2011 03:30
to test it.....run the application code provided and hit ctrl+alt+del then hit cancel/return to windows.... the program should crash!

ignore the first screen invalid message......and you will never get it again...just crash

=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 24th May 2011 11:09
Hitting ctrl-alt-delete causes windows to change resolution and flush the graphics buffer, causing all graphics stuff created/loaded in already to be deleted.

It crashes because you don't re-create the matrix after it's been deleted.

SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 25th May 2011 02:28 Edited at: 25th May 2011 02:36
Quote: "Hitting ctrl-alt-delete causes windows to change resolution and flush the graphics buffer, causing all graphics stuff created/loaded in already to be deleted.

It crashes because you don't re-create the matrix after it's been deleted."


well if you actualy tested the code this would have worked fine.... it would only crash if i try to do something with the matrix that nolonger existed.... use this modified code and it will still crash for me.




can someone actualy test the code and confirm this

thanks...

again im running windows 7 with dbpro 1.075

SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 25th May 2011 02:38
If i was just using objects it seems to work fine without crashing.... only crashes if a matrix exists

=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 25th May 2011 02:42
I also get the same crash when I run your code on my windows 7 PC.

Weird, I was sure it was the buffer flush problem.

SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 25th May 2011 02:53 Edited at: 25th May 2011 04:46
Thanks! i should have put the extra code in there to show i at least tried.

again thanks for confirming

people will now ask.... why am i using the matrix commands....
for me im using a matrix for my grid on my drawing app.


edit: can a mod move this to the correct forum... i just realized there is a forum for posting bugs...

SoftMotion3D
AGK Developer
20
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 27th May 2011 21:33
any mods around?

Login to post a reply

Server time is: 2026-07-11 06:07:09
Your offset time is: 2026-07-11 06:07:09