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 Crash

Author
Message
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 5th Oct 2008 05:33
Quote: "The program '[27188] Kaos.exe: Native' has exited with code -1073740777 (0xc0000417)."


I have absolutely no clue what's going on. Ian?
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 5th Oct 2008 16:53
Orienting... locked on. Zooming... zooming... darn!

Even with my ability to look around corners, I'm afraid your source code is just outside my range.

Perhaps you could post some of it here, along with any media needed to run it?

Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 5th Oct 2008 21:46
Either

a) Post source code (preferred).

or

b) Post disassembly from debug (particularly near 0xC0000417; would be good along with source code).

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: 5th Oct 2008 23:07
I rewrote it, now getting "std::out_of_range at memory location..."
SushiBox
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Ohio
Posted: 5th Oct 2008 23:17
"In addition to operator [], vector defines the member function at(). This function does the same thing as the operator [], but checks the index. If the index is invalid, it will throw an object of class std::out_of_range."

Source: http://www.codeguru.com/cpp/cpp/cpp_mfc/stl/article.php/c4027/

Try replacing


with



www.Helios-Online.net
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 5th Oct 2008 23:20 Edited at: 5th Oct 2008 23:29
Try sifting through this. D:

KaosScript.h


KaosScript.cpp
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 6th Oct 2008 15:51
Underflow on an empty string or vector, causing possible infinite loops in each of these lines:


If the VC++ STL under debug is a checking STL, then that would be causing it to throw those out_of_range exceptions.

Get rid of all of those '- 1' bits - they are simply wrong and don't need to be there.

Login to post a reply

Server time is: 2024-11-25 03:25:16
Your offset time is: 2024-11-25 03:25:16