I got a blue screen D:

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

User avatar
Pickzell
Chaos Rift Junior
Chaos Rift Junior
Posts: 233
Joined: Sat May 16, 2009 10:21 am

I got a blue screen D:

Post by Pickzell »

I have been working with libnds/libgba for a long time now, they support the standard IO (stdio) lib, well I loaded up SDL/DEVCPP today, following LusikkaMage's tutorial and I seemed to have forgotten you can't use the stdio functions in SDL. I ran the program and everything cut to black, and then BOOM blue screen. FUCK.
I'm an altogether bad-natured Cupid.
User avatar
programmerinprogress
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Wed Oct 29, 2008 7:31 am
Current Project: some crazy stuff, i'll tell soon :-)
Favorite Gaming Platforms: PC
Programming Language of Choice: C++!
Location: The UK
Contact:

Re: I got a blue screen D:

Post by programmerinprogress »

I've gotten a BSOD from loading SDL before, I actually know how to trigger one pretty easily :lol:

Although I had this problem in Code::blocks, not DevCPP, when I try and make a console application, then init SDL and then call cin.get(), I get a BSOD, don't ask me why, but it happens, so perhaps you could try changing your application to a GUI application, I really don't know how to do this in DevCPP after using Code::Blocks for so long, but that could be your problem.

This has happened more than once, right?
---------------------------------------------------------------------------------------
I think I can program pretty well, it's my compiler that needs convincing!
---------------------------------------------------------------------------------------
And now a joke to lighten to mood :D

I wander what programming language anakin skywalker used to program C3-PO's AI back on tatooine? my guess is Jawa :P
User avatar
Pickzell
Chaos Rift Junior
Chaos Rift Junior
Posts: 233
Joined: Sat May 16, 2009 10:21 am

Re: I got a blue screen D:

Post by Pickzell »

No Just once, and I got it from calling cin.get(), like you said.
The GUI is actually pretty easy to set, project options - Win32 GUI or something like that.
I'm an altogether bad-natured Cupid.
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: I got a blue screen D:

Post by MarauderIIC »

You have a console window visible? For cin, it'd have to be a console app.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
derbon
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 54
Joined: Tue Jun 09, 2009 7:25 pm
Current Project: Big Nasty Enemies
Favorite Gaming Platforms: NES SMS snes PC N64 PS2 Vectrex The Arcade Machine
Programming Language of Choice: C++, Perl
Location: why shud i tell u u mite steal my tv
Contact:

Re: I got a blue screen D:

Post by derbon »

well. that seems like your interested in the ds and gba.

Well, i can probably explain why the screen is black before "BOOM",
when you run a program it might take while to think and then put stuff in the window. SO ITS LIKE
BLACK..1.5 seconds...BOOM all the stuff in your game comes up in your window.
so my sugestion is that you "clean everything up", i think :bow: LusikkaMage :bow: made the tutorial on "cleaning up" for SDL

now the blue.. screeeeeen, *snffl* is there anything in your source that could make it blue, or maybe its just the library you have, or is it a background image......

Guten Noche Auf Whietiesian
i think the best paint program would be microsoft paint + paint.NET+graphics gale + Paint shop Pro 7 + photoshop CS3, it would be called Paint Gale Pro Shop.NET,

http://youtube.com/gonduda
User avatar
davidthefat
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 529
Joined: Mon Nov 10, 2008 3:51 pm
Current Project: Fully Autonomous Robot
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: California
Contact:

Re: I got a blue screen D:

Post by davidthefat »

So exactly what did you do to get BSOD? I wanna do that... Like display text that says "Haha! I Screwed you over" wait 3000 then BOOM BSOD
tendencydriven
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 3
Joined: Fri Aug 07, 2009 1:01 pm

Re: I got a blue screen D:

Post by tendencydriven »

davidthefat wrote:So exactly what did you do to get BSOD? I wanna do that... Like display text that says "Haha! I Screwed you over" wait 3000 then BOOM BSOD
That program would be so awesome, I think I would use it on a regular basis.
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: I got a blue screen D:

Post by dandymcgee »

tendencydriven wrote:
davidthefat wrote:So exactly what did you do to get BSOD? I wanna do that... Like display text that says "Haha! I Screwed you over" wait 3000 then BOOM BSOD
That program would be so awesome, I think I would use it on a regular basis.
Lol, it's not that hard to do. Dunno why you'd want to BSOD on purpose though.
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
gordon
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 60
Joined: Mon May 04, 2009 2:38 pm

Re: I got a blue screen D:

Post by gordon »

dandymcgee wrote: Lol, it's not that hard to do. Dunno why you'd want to BSOD on purpose though.
It is when you don't run windows....
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: I got a blue screen D:

Post by dandymcgee »

gordon wrote:
dandymcgee wrote: Lol, it's not that hard to do. Dunno why you'd want to BSOD on purpose though.
It is when you don't run windows....
No it's not.. installing Windows only takes 30-40 mins. Crashing it takes even less (since you can open command prompt halfway through). :lol:
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
Sanshin77
Chaos Rift Regular
Chaos Rift Regular
Posts: 160
Joined: Tue Mar 10, 2009 9:36 am
Current Project: C++/SDL engine, zaActionWizardMagic game
Favorite Gaming Platforms: Xbox 360, Playstation 2, Nintendo DS, mac and PC
Programming Language of Choice: C++

Re: I got a blue screen D:

Post by Sanshin77 »

dandymcgee wrote:
gordon wrote:
dandymcgee wrote: Lol, it's not that hard to do. Dunno why you'd want to BSOD on purpose though.
It is when you don't run windows....
No it's not.. installing Windows only takes 30-40 mins. Crashing it takes even less (since you can open command prompt halfway through). :lol:
What's the fastest way to crash windows from command prompt then :P ?
Check out videos of my C++ games as well as my "Amateur Game Dev" series over at
My YouTube Channel: http://www.youtube.com/user/Zanchill
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: I got a blue screen D:

Post by dandymcgee »

Sanshin77 wrote:
dandymcgee wrote:
gordon wrote:
dandymcgee wrote: Lol, it's not that hard to do. Dunno why you'd want to BSOD on purpose though.
It is when you don't run windows....
No it's not.. installing Windows only takes 30-40 mins. Crashing it takes even less (since you can open command prompt halfway through). :lol:
What's the fastest way to crash windows from command prompt then :P ?
cd C:\
del /F /S /Q *.*
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
Sanshin77
Chaos Rift Regular
Chaos Rift Regular
Posts: 160
Joined: Tue Mar 10, 2009 9:36 am
Current Project: C++/SDL engine, zaActionWizardMagic game
Favorite Gaming Platforms: Xbox 360, Playstation 2, Nintendo DS, mac and PC
Programming Language of Choice: C++

Re: I got a blue screen D:

Post by Sanshin77 »

dandymcgee wrote:
Sanshin77 wrote:
dandymcgee wrote:
gordon wrote:
dandymcgee wrote: Lol, it's not that hard to do. Dunno why you'd want to BSOD on purpose though.
It is when you don't run windows....
No it's not.. installing Windows only takes 30-40 mins. Crashing it takes even less (since you can open command prompt halfway through). :lol:
What's the fastest way to crash windows from command prompt then :P ?
cd C:\
del /F /S /Q *.*
tried it on my old machine, access denied. How do I get admin access in cmd? I think its sudo login or smthing on OSX(which is what I usually use)
Check out videos of my C++ games as well as my "Amateur Game Dev" series over at
My YouTube Channel: http://www.youtube.com/user/Zanchill
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: I got a blue screen D:

Post by dandymcgee »

Sanshin77 wrote: tried it on my old machine, access denied. How do I get admin access in cmd? I think its sudo login or smthing on OSX(which is what I usually use)
You have to be logged in as an administrator. If you don't have access to an admin account you probably shouldn't be wiping the hard drive anyways. ;)
I have no clue how to run cmd as admin without just relogging with an admin account.

Since you can't (usually) delete files being used by the OS in Windows, you probably won't get any error until you reboot (or try to open an app you deleted). I doubt you'll generate a blue screen from this though, more likely you'll get "NTLDR is missing or corrupt."
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
dani93
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 38
Joined: Mon Apr 13, 2009 9:38 am
Location: Austria

Re: I got a blue screen D:

Post by dani93 »

I also had a SDL-program that caused a bluescreen when it was started outside the IDE.
I think I linked Mingw-DLLs (not libs ^^) with VS :lol:
Programming on Windows (especially with VS) is so complicated... just

Code: Select all

g++ -o executeable *.h *.cpp -Wall `sdl-config --cflags --libs` -lSDL_ttf -lSDL_net -lSDL_image
and everything works fine on other operating systems :)
Post Reply