[Tip] Test your app in Safe Mode

Share your advanced PureBasic knowledge/code with the community.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

[Tip] Test your app in Safe Mode

Post by PB »

One thing I just learned about the stability of my apps is to try running them
when Windows is booted in Safe Mode. You'd be amazed what can go wrong
when Windows thinks certain hardware is not installed, or isn't configured.

For example, my app was coded incorrectly and actually crashes when run
on a PC without a sound card. I had no idea until Safe Mode exposed it!
See here: http://www.purebasic.fr/english/viewtop ... =4&t=42882 ;)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
dige
Addict
Addict
Posts: 1410
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Re: [Tip] Test your app in Safe Mode

Post by dige »

Very good hint!
"Daddy, I'll run faster, then it is not so far..."
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: [Tip] Test your app in Safe Mode

Post by Rook Zimbabwe »

I always put in a sounndcard check at the start and if it fails I set a global SOUNDCARDFLAG to #False...

Then in any routine where a sound would play I just check if SOUNDCARDFLAG = #True beofre it plays something... EndIf

:mrgreen:
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Post Reply