944,188 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 47691
  • C++ RSS
Apr 15th, 2005
0

NTVDM CPU has encountered an illegal instruction

Expand Post »
Hi Friends,

Again i m here with my problem.

I m developing a very large project and i m using a huge memory model in my borland turboc++ 3.0 compiler.

What is happening is that when i m compiling my program,it is not generating any errors but when i m trying to execute it,the O.S. is giving the error "NTVDM CPU has encountered an illegal instruction : "source" .Choose close to close the program".

I get 2 options (i)Close & (ii)Ignore.

Clicking on Ignore does nothing and then i click on close,the i m just thrown out of the dos windows.

I have encountered this problem before also and i have handled it by changing the memory model from huge to large memory model and then i was able to execute my program but now that is not working.

I m using Win-2k,Win-XP and win-98 O.S. and i m getting the same problem in all the three o.s. while executing my program.

Please help.....

Thanks in advance.

Rituraj
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
riturajraina is offline Offline
12 posts
since Sep 2004
Apr 15th, 2005
0

Re: NTVDM CPU has encountered an illegal instruction

Which system are you compiling on, and which system are you compiling for? The error basically says that the virtual DOS machine is encountering errors with your 16-bit program on a 32-bit system. It could be something you're doing, or something you're not doing that you should be. Though I would recommend looking at the Microsoft solutions for that error message before trying to fiddle with your code. It could just be that the problem is your systems and not the software. That's somewhat unlikely, but why not go for the easy fix first?
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.
Previous Thread in C++ Forum Timeline: Creating and copying folders and files
Next Thread in C++ Forum Timeline: Why Data Structures???...QUESTIONS INSIDE





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC