Thread: ERROR messages

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    30

    ERROR messages

    hi

    I'm new to C programming and I have noticed that the C compiler do not help you a lot when it comes to run time errors. btw I use visual C++.... I've been trying some FILE I/O testing and I keep on getting windows error messages.
    for example:

    fileIO.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
    Please tell Microsoft about this problem.
    debug
    send error report
    don't send


    I was wondering if this kind of error is normal or does it have to do with my computer..

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Normally, run the debug build, not the release build, and use the debugger to start the program.
    That way at least, when it does fail, it is caught by the debugger and you're shown where in the code the problem is.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Feb 2005
    Posts
    30
    i see
    thanks

Popular pages Recent additions subscribe to a feed