NTVDM error need help

This is a discussion on NTVDM error need help within the C Programming forums, part of the General Programming Boards category; hai i m the new member of this forum i started c programming using turbo c now it gives a ...

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    3

    NTVDM error need help

    hai
    i m the new member of this forum
    i started c programming using turbo c
    now it gives a error like that

    NTVDM error

    please help me
    to solve this problem

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    Use another compiler rather than Turbo C.

    How many GB of memory do you have, because TC limits you to 640K
    How many cores in your processor, because TC only knows about 1
    How many etc etc etc do you have, because TC will use a hell of a lot less of each of them.

    Oh, and there's bugs in your code as well, so perhaps post your code.
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Welcome Shajib!

    The doctors are now ready to see the patient: you need to post your code (please use the code tags around the code).

    Salem hates Turbo C, but I still use it from time to time, and like it. It is not the most modern compiler/IDE, but it's quick with help, and does everything a beginner needs.

    Your code has a bug in it, and is probably over-writing memory outside it's allocated memory area.
    We'll have to see it before we can say what the problem is.

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Yes, NTVDM is "NT Virtual Dos Module", which is what handles a DOS-box running in real-mode (16-bit) in Windows. If you (attempt to) access memory you are not supposed to access, or do other bad things (e.g. access IO devices, etc), it will usually give some NTVDM error.

    Without your code, it's impossible to say what's wrong.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  5. #5
    Registered User
    Join Date
    Jan 2008
    Posts
    3
    i cant start tc
    before i start it show the error

  6. #6
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Your "tc" is probably bad then - perhaps re-installing somewhere else would fix the problem.

    Alternatively, get any of the other free compilers, such as Code::Blocks, Dev-C++, Microsoft Visual Studio Express. All of which are modern, good compilers, and they run fine on Windows.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

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