I have this recurring (read annoying) problem with Turbo C++. I've a program which uses graphics, and for some reason, the minute I run the program, it exits TC with a dialog box saying:
"This program has performed an illegal operation and has to exit."
The illegal operation on inspection was a general protection fault.
But the frustrating part is, initially when I ran the program, it gave me no problems. When I tried running it the next day, it would keep exiting giving me the error I mentioned above and since then just doesn't work. I tried running it on a friend's PC, doesn't work there either. But it works fine in my college laboratory, and I've no clue how.
I can't figure out if this has to do with my OS or TC itself. Now, basic graphics programs of drawing a line won't work either.
Can someone please help me out here. My program's a standard c++ program which uses a plethora of basic graphics functions like line(), arc() etc.
broken_recode
0
Newbie Poster
Recommended Answers
Jump to PostIt sounds suspiciously like a memory problem such as a dangling pointer. They can be incredibly difficult to debug because sometimes everything works fine and sometimes it crashes miserably. Before you blame your system or the compiler, make sure your code is perfect. Otherwise you're showing nothing but arrogance in …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.