Computer differences causing error?

This is a discussion on Computer differences causing error? within the Windows Programming forums, part of the Platform Specific Boards category; Hi, well this is a really funny thing. The tetris I wrote works *perfectly* well on my computer, the one ...

  1. #1
    Registered User
    Join Date
    Dec 2002
    Posts
    25

    Computer differences causing error?

    Hi, well this is a really funny thing. The tetris I wrote works *perfectly* well on my computer, the one I developed it on. However, when I copy the exe over to my other computer, the program runs fine, but as soon as I make a line to clear, the program just quits!

    I can't explain it. Another friend of mine tried it on his computer and he says the program doesn't even let him play correctly, it just shows the pieces dropping and they disapper as soon as they reach the bottom. Is there anything that could be causing this different behavior with different computers running the same exe file?

    I am using the Windows GDI and Dev-C++. Before you ask, All three of these people have Windows XP running on their computers. So it probably isn't that.

    I don't understand whats up, can someone help?

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Well, without seeing your code, I feel a wild shot in the dark coming on and here it is:

    There is a bug in your program.

    I know it's a guess but, on the basis of the information so far given, I feel reasonably confident that it's as precise an answer as is currently possible.
    Last edited by Ken Fitlike; 01-05-2003 at 05:37 AM.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    What happens if you compile your code, (unchanged), on your other machine?
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  4. #4
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    ....maybe a resource leak?

  5. #5
    Registered User
    Join Date
    Dec 2002
    Posts
    25
    Originally posted by adrianxw
    What happens if you compile your code, (unchanged), on your other machine?
    I just tried this, and it just gives some compiler error (not syntax), and doesn't compile. I'm using the same IDE and compiler.

    This is really baffling me. I mean...its windows, how could it work for one machine and not for another? Could it matter that one is Intel and the other is AMD?

  6. #6
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    Originally posted by conright
    Could it matter that one is Intel and the other is AMD?
    For C++ - No...as long as there isnt a massive gap between them being created...Even for assembler you need to focus on a specific aspect of one chip that another chip doesnt support to fall foul.....

    Run the program through a debugger on the misbehaving pc to see at what point you are having problems....

    If you are just using GDI, you shouldnt have a problem usually....

  7. #7
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,138
    >it just gives some compiler error (not syntax)

    >Could it matter that one is Intel and the other is AMD?

    No. You should look at that error. Probably it went unnoticed due to special circumstances on your first machine and breaks the code on any other computer.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  8. #8
    Registered User
    Join Date
    Dec 2002
    Posts
    25
    Hmm, okay I've been working on this for a while. Maybe its just my computer, so I've put up this game online, and if some of you could downlaod it and just tell me whether it works.

    Specifically test to see if:
    1) It opens fine, and everything is colorful
    2) that it works even after clearing a line because this is where my main problem is.

    I've attached a zip file with the exe in it, or you can download it from here.

    Thank you much!

    PS: if it does work for you, here are the KEYS for the game:
    C or UP to flip pieces
    Arrow Keys to move it left and right
    SPACE to drop piece
    DOWN to accelerate down
    P to pause

    thats it
    Last edited by conright; 01-06-2003 at 04:39 AM.

  9. #9
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    You'll find there aren't many people who will download and run an unknown .exe from whatever source, there is simply to much malicious code around.

    What compiler error are you getting? If you want more help, post your code, with any resource script and headers necessary to compile it and run it with a decent debugger.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  10. #10
    Registered User
    Join Date
    Dec 2002
    Posts
    25
    Hmm, yeah you're right. I'm sorry for posting an exe file then.

    Is there someone who would be nice enough to take a look at all my code? Its kind of a lot, so I'll have to email it to you. I'd appreciate it. Thanks.

    PS- it would have to be like today if possible, becuase I have to go to chicago for a week starting tomorrow evening.

    Just email me at nmaru((at))uiuc.edu or send me an IM on aol instant messenger at "nimit maru"

    I'd really appreciate whatever help people can give me, thank you!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 02:07 AM
  3. how do you resolve this error?
    By -EquinoX- in forum C Programming
    Replies: 32
    Last Post: 11-05-2008, 03:35 PM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 09:33 AM
  5. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 09:43 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21