It 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 assuming that you can code no wrong.
Well, I guess I should get a bit verbose about the problem exactly.
Like I said my program worked fine. It had numerous calls to line(), arc(), circle() and a couple of other graphics functions. I started to code a new function and when I ran it, it exited. So I used breakpoints to figure out where
the problem occurred. I realised it exited at a call to arc() in my new function.
The sequence of calls being:
line();
arc();
arc();
arc();
It exited at the very first arc() call.
So I commented all the arc() calls following the line() call. The program worked fine. I couldn't figure out what the problem was, so I sent it to a friend to see if he could. But the program didn't work on his PC even if he commented the arc() calls. That was strange, but after some poking around with the program, we decided to leave it at it.
The next day when I try to run my program again, it doesn't run. Whether I comment the arc() calls, comment the whole new function or just use a few line() functions to draw a couple of lines. Nothing works. But other programs in TC not involving graphics, work just fine.
So then I take it to my college laboratory and what do you know, it works-just fine! No crashes at all.
I reinstalled TC, it still didn't solve the problem. Which is why, I was moved to wonder, if it was just TC or my OS. If I don't figure out the problem, I'd have stick to working in college, which can be cumbersome.
I'm sorry for the verbiage, but hope it explains my situation better.