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

ipaq 4155 datatype misalignment error


oops

Postby ramses » Sep 14, 2004 @ 8:47pm

ramses
pm Member
 
Posts: 18
Joined: Sep 5, 2004 @ 8:06am


new finds

Postby ramses » Sep 16, 2004 @ 7:12pm

The author of the game book actually wrote me back on this issue (Jonathan Harbour) and mentioned to me that the code actually works fine on the pocket pc 2002 OS? and it is a Casseopia pocket pc that he developed these things on.

I've noticed one thing on my project. If I load two separate bitmap images I get the memory alignment error and I'm out of luck. If I combine everything into 1 BIG bitmap image, then I have no problems.
In order to put ALL of the images onto 1 bitmap will increase the size of the game drastically and in a way I do not want because that is very inefficient.

I ran the programs on a Dell Axim X3 and had the same results. The Arm processors with pocket pc 2003 actually have problems with data misalignment and are not handled by the hardware. So, I'm still stuck where I need to fix the code, however, at least I think I have narrowed it down.
ramses
pm Member
 
Posts: 18
Joined: Sep 5, 2004 @ 8:06am


hp fix

Postby ramses » Sep 20, 2004 @ 11:31pm

ramses
pm Member
 
Posts: 18
Joined: Sep 5, 2004 @ 8:06am


a final end!

Postby ramses » Sep 25, 2004 @ 7:41am

After just a little bit more searching, I finally found a page that helped me solve the problem.



I love the internet! I have been able to finally repair my library to a state that is useable and with the memory leaks solved. The final problem I believe is that there was an error in the equasions being used to calculate and reserve memory for the bitmap. The bitmaps in memory were also being freed right on top of one another causing the first chance exception. I hope to never have a problem like this ever again! I won't post the code up again since the site above pretty much walks you through the entire process of loading a bit map on CE the right way!

Thanks to all that have posted code and helped.
ramses
pm Member
 
Posts: 18
Joined: Sep 5, 2004 @ 8:06am


Previous

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

cron