What is the error?

I don't think it's a null pointer reference, that should happen on 7 too.
Just my guess: it crashes on XP 32bit? if so looks like a memory leak, on 64 bit OS a process can "leak" more memory before crash (or not leak, but just don't delete as soon as it should) so check memory allocations/deallocations.