PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Compiling to x86 instead of to PPC2k2

So just the other day I discovered that I could use PocketFrog to compile to x86 and run the sample apps right on my desktop (not in the emulator) - that is totally sweet! So I tried compiling the game I was working on to run on my desktop, and it worked fine - but the game crashes early in the initialization state (the debugger always stops at the prototype for SetMask - saying it's an access violation) This makes no sense to me at all. I don't really know where to start on fixing this - what kind of things will run ok on a PPC but not on a desktop? My game doesn't use any other third party libs or STL or anything complicated.

I thought about the possibility that the bug exists in both the PPC and x86 compiled code, and only asserts itself on the x86 - but this seems very unlikely given that it crashes only five or six lines into my GameInit routine - which does nothing more than load some textures. I have an inkling it might have something to do with LoadImage - but I don't know. Any suggestions?
Hi, I've been through this quite recently. ( using x86 with VC6++ instead of eVC++ ) Everything works if you are set up correctly. You just have to understand the subject of TCHAR's properly + paths & everything else is a breeze.

Without seeing the code I cannot really help. DO you want to post the part which is failing?