This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Exception 0x80000002


Exception 0x80000002

Postby j.edwards » Mar 24, 2004 @ 5:54am

I am having troubles with my game running on Dell Axim X5 devices, getting access violations like 0x80000002 address:0002042c. The address changes. Done some research, and it seems the error is related to dword boundaries or stack sizes. Has anyone delt with this before?

My stack settings are currently:
Reserve: 0x10000, Commit: 0x1000
I don't really understand what they mean, but the above address may indicate that the stack is too small, although I'm not convinced about that because I would expect to get a stack error instead. What if I just double to 0x20000 etc?

If the problem is dword boundary related where do I start looking in my code for the problem? For instance, only dword data types? Does signed/unsigned make a difference? Is it only certain types of memory access?

One thing that may be related is my generic list class that I inherit from to build list objects uses HeapAlloc() - could that have something to do with it?

I don't have an X5 to test on.
User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby rcp » Mar 24, 2004 @ 7:00am

User avatar
rcp
pm Member
 
Posts: 184
Joined: Jul 18, 2003 @ 2:12am
Location: Duluth, GA. (Southeast US)


Postby Conan » Mar 24, 2004 @ 7:13am

What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby refractor » Mar 24, 2004 @ 7:33am

User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby j.edwards » Mar 24, 2004 @ 10:00am

User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby refractor » Mar 24, 2004 @ 10:30am

User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby j.edwards » Mar 24, 2004 @ 11:12am

Thanks refractor. So, it doesn't just apply to dwords - when making structures it's important to have the items aligned on the same boundary as the length of the item - ie. short aligned to 2 bytes, char to 1 byte (although doesn't matter), int to 4 bytes?

The reason why I wanted everything bunched up is because I wanted the file size as small as possible, but given the above that doesn't seem possible (unless the items naturally lend themselves to a re-arrangement suiting correct boundaries as in your example).

I'll update my game and see if that works. Thanks everyone for your help.
User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby Dan East » Mar 24, 2004 @ 1:58pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby j.edwards » Mar 24, 2004 @ 11:56pm

User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby j.edwards » Mar 25, 2004 @ 12:01am

User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby Kzinti » Mar 25, 2004 @ 12:13am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby j.edwards » Mar 25, 2004 @ 1:25am

User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum