| | |
"Error Message - tried to execute invalid instruction"
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Sep 2004
Posts: 1
Reputation:
Solved Threads: 0
Hello !
I am using Turbo C++ compiler and I am trying to implement Dictionary using arrays. All my menu options work perfectly but finally when I give exit option the program comes out of Turbo C++ and gives a window saying
"The program tried to execute an invalid instruction "
"Fault Location : 6172 : 74E6"
and the MS-DOS window closes.
Can you help me trouble shoot this problem ?
Sandra John
I am using Turbo C++ compiler and I am trying to implement Dictionary using arrays. All my menu options work perfectly but finally when I give exit option the program comes out of Turbo C++ and gives a window saying
"The program tried to execute an invalid instruction "
"Fault Location : 6172 : 74E6"
and the MS-DOS window closes.
Can you help me trouble shoot this problem ?
Sandra John
It looks like you used to 'break' but now just return 1. I take it that the break failed as well?
I'd look more closely at the dictionary destructor. It sure looks simple, but maybe something there has gone astray.
There's no return from main, and main doesn't have the argv[], argc parameters; is that ok in turbo C?
Doesn't turbo C have a debugger you could set a breakpoint at the case for 6 and step line by line (step IN) to see where it fails?
I'd look more closely at the dictionary destructor. It sure looks simple, but maybe something there has gone astray.
There's no return from main, and main doesn't have the argv[], argc parameters; is that ok in turbo C?
Doesn't turbo C have a debugger you could set a breakpoint at the case for 6 and step line by line (step IN) to see where it fails?
![]() |
Similar Threads
- error message (IT Professionals' Lounge)
- Error message! (C)
- "Error message when starting Microsoft Word" (Viruses, Spyware and other Nasties)
- "Error message 580 when debugging a web page" (ASP.NET)
- "Run a DLL as an APP" error message on startup (Viruses, Spyware and other Nasties)
Other Threads in the C++ Forum
- Previous Thread: im buying a book tommorow onm C++
- Next Thread: C++ Program Help
| Thread Tools | Search this Thread |
api array based beginner bitmap c++ c/c++ calculator char class classes code coding compile compiler console conversion count database delete deploy desktop developer directshow dll download dynamic email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream int integer java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news node number output parameter pointer problem program programming project proxy python random read recursion recursive return sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





