NTVDM CPU has encountered an illegal instruction

Please support our C++ advertiser: Intel Parallel Studio Home
Closed Thread

Join Date: Sep 2004
Posts: 12
Reputation: riturajraina is an unknown quantity at this point 
Solved Threads: 0
riturajraina riturajraina is offline Offline
Newbie Poster

NTVDM CPU has encountered an illegal instruction

 
0
  #1
Apr 15th, 2005
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
Quick reply to this message  
Join Date: Sep 2004
Posts: 7,605
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 713
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: NTVDM CPU has encountered an illegal instruction

 
0
  #2
Apr 15th, 2005
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?
I'm here to prove you wrong.
Quick reply to this message  
Closed Thread

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC