64 bit good 32 bit bad?
BlitzMax Forums/BlitzMax Programming/64 bit good 32 bit bad?
| ||
The alpha version of my game (http://savethesillyearthlings.com) which I tested works fine on my 64bit Vista PC but a user reported the dreaded 'APPLICATION EXCEPTION' (AE) on Windows 7 (which I don't have) anyway tested it on my laptop (32bit Vista) and second turn boom AE! WTF? Why does a 32 bit game work fine in a 64bit version of windows and fall over in 32 bit? Any ideas? Or if you have a different flavour/bit size of windows, that you could test it on please download it from... http://www.savethesillyearthlings.com And let me know if it AE's on you, just play the game to about turn 5 as so far the AE has occured in the second turn when I test it. Kind Regards Al |
| ||
Just tried it on XP and it AEed a few years into turn 1 (after I prevented numerous disasters lol) Like the idea BTW but didn't fully understand what I was doing. A tutorial would be really helpful I think :) |
| ||
OK so just to confirm that's 32 bit? |
| ||
yeah sorry, its 32 bit |
| ||
Yep I'm thinking of doing an easter island tutorial but with wood instead of oil as the resource, hmm? |
| ||
Update I think it was an an address space issue, a large array was being indexed beyond it's size and was not appearing as a problem on the 64 bit system probably because of it's larger address space!? |
| ||
a large array was being indexed beyond it's size and was not appearing as a problem on the 64 bit system A bug is a bug is a bug. 64bit libs and code can sit in the higher address space, but your 32bit app will only ever be able to address upto 2gb. Of course, on a 64bit system, you are likely to have more 32bit RAM to play with before you run out. If you give it enough time, your game will crash on 64bit too. |
| ||
Did you by any chance rebuild the modules using a 64 bit version of MinGW or fasm? Try recompiling the program on a 32 bit machine or on a fresh install of BlitzMAX and see what happens. |
| ||
It's built with BlitzMax 1.41 MinGW 32 bit not sure which version? You can try the game here http://savethesillyearthlings.com/ It's the latest build and so far has not, in limited testing, generated an application exception. So far so good, fingers crossed! |