hi evereyone, i have some problem related to graphics in c++ that is when i include graphics.h in my program and use graphic command like draw line etc..then suddenly windows has been closed and messages appears that "NTVDM CPU HAS ENCOUNTERED AN ILLEGAL INSTRUCTION", and some error code and two options ignore and cancel apperes when i presss cancel turbo c++ windows closed. i have reinstalled my windows xp but problem still there. i m using intel core2 duo processor. and also same problem apperar in my laptop which has vista installed in it. but problem not happend in my university and in my friend computer. please tell me what should i final project is totally graphics based...i m waiting 4 reply thanks


  • [color=Blue]
    You reinstalled XP after "NTVDM encountered invalid instruction"??!!

    That error means that your DOS code, which is built by Turbo C, is not proper - a simply saying it has a bug - XP was not an issue there.

    Now, without your code, I can't tell you what is happening, but I may be able to help with your project if you send me the code - I have Turbo C, so I can test it.

    Usually, that error means float point exception (like dividing by zero), but some other issues also possible, like corrupted code segment and then CPU meets the instruction unavailable for NTVDM program.

    My mail is - if I have some spare time I will help. And, I hope your project is not due tomorrow. :-)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion