DJGPP violations...

This is a discussion on DJGPP violations... within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Computer is a determinist machine, everybody knows that. When you install Windows, it's a bit less, but it was a ...

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    129

    DJGPP violations...

    Computer is a determinist machine, everybody knows that. When you install Windows, it's a bit less, but it was a surprise to me that DJGPP makes the same! But what the hell is going on while my program crashes like this. Here's how it went (all crashes were right before mains return 0, except that first one):

    compile: non-modified source
    run: all ok
    run: all ok
    ...

    compile: modified source 1
    run: all ok
    run: all ok
    ...
    run: computer crashed (after back to dos-shell)

    compile: modified source 1
    run: program crash
    run: program crash
    ...

    compile: modified source 2 (stripped some from 1)
    run: program crash
    run: program crash
    ...

    compile: modified source 3 (-> stripped non-modified source)
    run: all ok

    compile: non-modified source:
    run: all ok

    compile: modified source 1
    run: all ok
    run: all ok
    ...

    What I have:
    G:\source>gxx --version
    2.953
    &
    Allegro 3.12

    I didn't post the source because it's a bit long and this problem isn't repeatable and it has happened before with some other code I've made. I always compile with -Wall and didn't have any warnings (well, unused `pal' in one point but that was first to go when the bug appeared but didn't make any difference).
    kooma - t.h@iki.fi

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    375
    Sounds like a memory problem one way or another. Either your program has some pointer troubles, or you have some bad physical memory hiding somewhere in RAM. Does this happen with many applications? If it only happens to your program, it's probably a memory coding problem.
    Allegro precompiled Installer for Dev-C++, MSVC, and Borland: http://galileo.spaceports.com/~springs/

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Wav edit programmation for dos with DJGPP
    By sprudhom in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 07-17-2003, 08:35 AM
  2. DJGPP project problems
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 06-08-2002, 08:16 PM
  3. DJGPP V2.03 Refresh Beta (Win2k)
    By dune911 in forum C Programming
    Replies: 1
    Last Post: 12-27-2001, 06:04 AM
  4. DJGPP assembly syntax ills...
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 11-11-2001, 02:54 AM
  5. DJGPP help needed
    By dune911 in forum C++ Programming
    Replies: 6
    Last Post: 09-15-2001, 05:56 PM

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