Thread: Is it supposed to do this?

  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    8

    Is it supposed to do this?

    Ok, this is perhaps not to do with the code. I've been experiencing some difficulties and I've now come to find a way around it. But it doesn't seem right.

    Open I have two identical source files. One will run as it should, one just displays a blank screen. As I said, they are absolutely identical (I have spent the last ten minutes trying to spot a difference) appart from the file name. The one that works, I had to take it slowly. I would write little bits of the code, compile & run, write a bit more, c & r, write a bit more, etc. For the second that doesn't work, I just wrote the code in one go, then c & r.

    Does anybody else have to do this? Is it normal, or should I be concerned? It's really beginning to annoy me.

  2. #2
    Sanity is for the weak! beene's Avatar
    Join Date
    Jul 2006
    Posts
    321
    Are your scource files in a project?

    EDIT:
    Sorry, they probably arn't, because of the fact that you can execute them seperately at the same time.
    Last edited by beene; 01-01-2007 at 05:53 AM.

  3. #3
    The larch
    Join Date
    May 2006
    Posts
    3,573
    I think you have provided too little information. Like what compiler, IDE etc.

    You could well have some undefined behaviour in your code, such as stepping over array bounds, which doesn't reveal itself in the first program but crashes the second. But that's just a guess without any source code.

  4. #4
    Registered User
    Join Date
    Jan 2006
    Location
    North Yorkshire, England
    Posts
    147
    i have had this before, for instance when i move calling functions about n that every now and again it will just give me a blank screen, then ill remove it, compile, replace and all is well. my computing teacher didnt know what it was either, just a glitch or sommin, it happens though.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How am I supposed to do this without a structure?
    By drty2 in forum C Programming
    Replies: 8
    Last Post: 01-21-2009, 06:57 PM
  2. Anybody know the # in PA if you didn't get a stimulous check but were supposed to?
    By gucci_shoes in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 07-29-2008, 07:13 AM
  3. Subclassed edit not doing what it's supposed to
    By tyouk in forum Windows Programming
    Replies: 8
    Last Post: 01-21-2005, 10:25 PM
  4. Replies: 1
    Last Post: 04-02-2003, 07:50 PM
  5. My program is not doing what it's supposed to do, help!!
    By TrazPFloyd in forum C++ Programming
    Replies: 5
    Last Post: 11-08-2002, 11:25 PM