Thread: What cause NTVDM CPU error?

  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    7

    What cause NTVDM CPU error?

    When I run my program, NTVDM CPU encountered an illegal instruction, why does this happen? CS:8eb0 IP:fd9c OP:8c fd 8c fd 98

  2. #2
    Registered User
    Join Date
    Apr 2004
    Posts
    210
    What kind of programm? ntvdm.exe is a virtual machine for 16 bit processes. Are you using an ancient compiler?
    main() { int O[!0<<~-!0]; (!0<<!0)[O]+= ~0 +~(!0|!0<<!0); printf("a function calling "); }

  3. #3
    Registered User
    Join Date
    Jul 2009
    Posts
    7
    Yes, Borland C++ for DOS. Program of quicksort and there seem to be something wrong with the recursion.
    Last edited by xianjianwuhen; 09-04-2009 at 04:59 AM.

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Post it up. I happen to be very close friends with "someone" who frequently uses Turbo C/C++, from Borland.

    Coincidentally, I'm (er, I mean), that "friend" is a pretty big fan of Quicksort, as well.

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Why are you using an ancient compiler?

    It's not like there is a shortage of high quality and FREE compilers for your modern OS.
    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.

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. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  3. How to monitor process creation?
    By markiz in forum Windows Programming
    Replies: 31
    Last Post: 03-17-2008, 02:39 PM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM