Raised This Month: $ Target: $400
 0% 

C++ Issue --resolved -.-


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jheshka
Senior Member
Join Date: Dec 2005
Old 02-26-2009 , 13:27   C++ Issue --resolved -.-
Reply With Quote #1

Code:
gheshka0177@C588R32678ZN001 ~/C/Chapter8/Chapter8_6
$ ./a
You have [5], and [2](TOTAL: 7)
The computer has: [X] and [3] (SHOWING: 3)
Do you want to (H)it or (S)tay?: H
You have chosen to HIT!
You were dealt 3
Your new total is: 10
The computer reavealed his cards, and he had: 12
You beat the computer!      //Noted in source code, no one make fun.. lol
Do you want to play again? Y/N Y
Segmentation fault (core dumped)

What causes the Segmentation fault (core dumped) error?


Edit: Removed source to avoid mockery.


Here's the stack dump, if that helps anybody...
Code:
Exception: STATUS_ACCESS_VIOLATION at eip=610DDE9B
eax=006B0278 ebx=00000002 ecx=00000001 edx=00000001 esi=006B0278 edi=00000000
ebp=0022B638 esp=0022B62C program=h:\C\Chapter8\Chapter8_6\a.exe, pid 1540, thread main
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame     Function  Args
0022B638  610DDE9B  (00000000, 006B0278, 00000001, 610F84DB)
0022B678  610EE88D  (0022D008, 00000000, 00000001, 00000001)
0022B698  610EEA2F  (00000000, 00000001, 00000001, 61103080)
0022CC68  610EB6B2  (0022D008, 61103080, 00443182, 0022CC98)
0022CC88  610E7935  (00443182, 00000000, 00000006, 00000001)
0022CCE8  610935A8  (00000001, 6116CEE8, 006A0090, 0022CC70)
0022CD98  610060D8  (00000000, 0022CDD0, 61005450, 0022CDD0)
61005450  61004416  (0000009C, A02404C7, E8611021, FFFFFF48)
     12 [main] a 1540 _cygtls::handle_exceptions: Error while dumping state (probably corrupted stack)

Stupidest error ever...
-.-
__________________
James

Last edited by Jheshka; 02-26-2009 at 13:41. Reason: Wow nvm...
Jheshka is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode