Of all addresses...

Pyro Pilots Lounge. For all topics *not* covered in other DBB forums.

Moderators: fliptw, roid

Post Reply
User avatar
DCrazy
DBB Alumni
DBB Alumni
Posts: 8826
Joined: Wed Mar 15, 2000 3:01 am
Location: Seattle

Of all addresses...

Post by DCrazy »

Even you non-programmers will get a kick of out this.

I compiled a an application that worked in Visual C++ 6 in a new copy of Visual Studio 2003. Unfortunately, the program didn't work; it died with an access violation. Here's the error message:

Unhandled exception at 0x77d6d9b2 in InstallStream.exe: 0xC0000005: Access violation reading location 0xbaadf00d.

:lol:
User avatar
fliptw
DBB DemiGod
DBB DemiGod
Posts: 6459
Joined: Sat Oct 24, 1998 2:01 am
Location: Calgary Alberta Canada

Post by fliptw »

heh.
User avatar
Lothar
DBB Ghost Admin
DBB Ghost Admin
Posts: 12133
Joined: Thu Nov 05, 1998 12:01 pm
Location: I'm so glad to be home
Contact:

Post by Lothar »

I assume the baadf00d had been purged...
User avatar
DCrazy
DBB Alumni
DBB Alumni
Posts: 8826
Joined: Wed Mar 15, 2000 3:01 am
Location: Seattle

Post by DCrazy »

Apparently 0xbadf00d has some sort of significance on the heap after all. Figures, since I was passing a pointer to a struct on the heap to a WinAPI function. I must be doing something wrong. Pretty funny nonetheless.
User avatar
Drakona
DBB Captain
DBB Captain
Posts: 841
Joined: Thu Nov 05, 1998 12:01 pm
Location: Denver, CO, USA
Contact:

Post by Drakona »

Whoa! I heard the explanation for this from my data structures teacher a few years ago, but had never seen it actually happen. He had worked for Microsoft for 17 years and told us all that it's an internal practice to set uninitialized data to "BAADF00D"--making uninitialized variable errors easier to find. (Or was it dangling pointers? I can't now remember--ir's been a while.)
User avatar
DCrazy
DBB Alumni
DBB Alumni
Posts: 8826
Joined: Wed Mar 15, 2000 3:01 am
Location: Seattle

Post by DCrazy »

Hmm... something must have changed between VC6 and VS 2003 and I'm not setting a field of PROPSHEETHEADER that I need to. Thanks Drakona! :)
User avatar
Ferno
DBB Commie Anarchist Thug
DBB Commie Anarchist Thug
Posts: 15163
Joined: Fri Nov 20, 1998 3:01 am

Post by Ferno »

stop feeding it with taco hell code DC. :P
User avatar
DCrazy
DBB Alumni
DBB Alumni
Posts: 8826
Joined: Wed Mar 15, 2000 3:01 am
Location: Seattle

Post by DCrazy »

How ironic, I was eating Taco Bell while writing the code... damn gorditas, got my code sick.
Dedman
DBB Material Defender
DBB Material Defender
Posts: 4513
Joined: Tue Oct 15, 2002 2:01 am
Location: Atlanta

Post by Dedman »

Yeah, those little fat girls will do it to you every time.
User avatar
Zoop!
DBB Admiral
DBB Admiral
Posts: 1970
Joined: Thu Aug 05, 1999 2:01 am

Post by Zoop! »

Mmm...gorditas
User avatar
Sage
DBB Admiral
DBB Admiral
Posts: 1409
Joined: Thu Aug 01, 2002 2:01 am
Location: Sega Genesis
Contact:

Post by Sage »

are gorditas any good? never had them. anyways gl on you proggy. what is it anyways?
User avatar
DCrazy
DBB Alumni
DBB Alumni
Posts: 8826
Joined: Wed Mar 15, 2000 3:01 am
Location: Seattle

Post by DCrazy »

Gorditas literally translate as the feminine form of "little fatties". That's what they are, really; chock full o' beef (or chicken, which I prefer), lettuce, tomato, onion, cheese, and sour cream. They had actually taken them off the menu in the NY area for a while, but popular opinion forced them back. :)

My program is a custom installer for distributing a huge RAR file across my school's network. We need it to transfer data to play CS at LAN parties. :)
User avatar
Krom
DBB Database Master
DBB Database Master
Posts: 16138
Joined: Sun Nov 29, 1998 3:01 am
Location: Camping the energy center. BTW, did you know you can have up to 100 characters in this location box?
Contact:

Post by Krom »

mmmm sounds tastey, but CS? blah, play Descent, wouldnt take anywhere near as much data.
User avatar
Santrix
DBB Admiral
DBB Admiral
Posts: 1155
Joined: Thu Jul 05, 2001 2:01 am
Location: OH
Contact:

Post by Santrix »

mmm, fat little girls
Post Reply