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.

Dark GDK / Weird Problem

Author
Message
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 23rd Oct 2008 05:32 Edited at: 24th Oct 2008 22:42


No errors, but it just crashes my whole computer.

When I try commenting out portions of this, MSVC goes apecrap on me and crashes.

Darkcoder won't help me. D:
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 23rd Oct 2008 06:27
Detail the errors, as that's a lot of pointer usage.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 24th Oct 2008 22:22 Edited at: 24th Oct 2008 22:22
Just a guess off the top of my head: changing this



to this?



Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 24th Oct 2008 22:38
Umm, that wouldn't work... It's pushing it before it's assigned, causing it to get the last piece.

It's not that part, anyway. It's the char * to std::string conversion.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 25th Oct 2008 00:12
The last push onto the Working vector is going to push a null pointer. That will probably cause the conversion of that null to a std::string to fail when you do that later - IIRC, it's undefined behaviour, which means that it can work, it can fail or it can do something completely unpredictable.

In your case, it's crashing, which is actually a good thing.

Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 25th Oct 2008 01:59 Edited at: 25th Oct 2008 02:16
Oh, so I should probably safeguard against that.

Now, the vector I used has an _Off of -1.

Login to post a reply

Server time is: 2024-09-30 09:29:38
Your offset time is: 2024-09-30 09:29:38