Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,167 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,880 people online right now. Registration is fast and FREE... Join Now!




SDL throws out access violation on run

 
Reply to this topicStart new topic

SDL throws out access violation on run

MrIQ
18 Dec, 2007 - 06:15 AM
Post #1

New D.I.C Head
*

Joined: 18 Dec, 2007
Posts: 3


My Contributions
If I try to compile SDL code, then it gives me an "Access Violation" error.

If I hit break I see the following:
CODE
_main:
00402310  push        ebp  
00402311  mov         ebp,esp
00402313  push        ecx  
00402314  mov         eax,dword ptr [___security_cookie (428018h)]
00402319  xor         eax,ebp
0040231B  mov         dword ptr [ebp-4],eax
0040231E  push        ebx  
0040231F  mov         ebx,dword ptr [ebp+0Ch]
00402322  push        esi  
00402323  mov         esi,dword ptr [ebx]
00402325  push        edi  
00402326  mov         edi,dword ptr [__imp__strrchr (410100h)]

With
CODE
00402323  mov         esi,dword ptr [ebx]
highlighted.
It is not surprising because ebx is 0 (at least the debugger tells me so if I hover it).
But I don't know why.
Please help. Thanks in advance smile.gif
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/2/08 12:15AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month