Working Program crashes when run on different windows machine

I use computers, windows 7 desktop, and windows XP laptop, for coding. Just transfer using dropbox and have done this for a few months.

I had a functional program on my desktop. I sent the code and all to my laptop, compiled and ran, but halfway through the program it just crashed, windows error popped up saying it stopped working and needed to close.

I've tried to find the source of the error, but I can't seem to find it =[
I've checked for infinite loops, arrays out of bounds, invalid pointers etc.
BUT IT WORKS AT HOME!!!

**Before I post all the code and go through it line by line, anything really simple that I am overlooking or should know? I feel like this should be an easy fix**
Did you use the same compiler ?
Ya Dev C++ 4.9.9.2
I tried just transferring the .exe but it still crashes, I clicked on more info and it says this

Error Signature-
AppName: blackjack.exe AppVer: 0.0.0.0 ModName: ntdll.dll
ModVer: 5.1.2600.5755 Offset: 00028c0b
I updated Microsoft Visual C++ 2010 Redistributable Package but it still doesn't work
The simple error would be if you use a system call that was introduced in windows 7, that xp does not have, but that should give a more detailed message.
Then it would say that an import has not been found in some dll file.
The answer is simple: there's a bug in your program that causes undefined behavior.
I cleaned up a lot of my code for the blackjack program and it works flawlessly on both of my windows 7 machines, it still crashes on vista and windows xp machines though, Is there something I should try? The only thing i can think of is that I included the windows.h file?

I am using same version of Dev C++ 4.9.9.2 on all machines, have tried recompiling on each as well as just copying the .exe
Topic archived. No new replies allowed.