Jump to content

Why does compiler crach window?

- - - - -

  • Please log in to reply
No replies to this topic

#1
Actor

Actor

    Newbie

  • Members
  • PipPip
  • 24 posts
I doing a lot of programming on a Windows XP machine. I use the "command prompt" window. Every now and then I have a problem with the Turbo Pascal compiler unexpectedly closing the window.

  • I create a new file, for example "newprog.pas"
  • I invoke the compiler "tpc newprog"
  • The command prompt window closes and I find myself back at the disktop.
  • I reopen the command prompt window and navigate back to the same directory (a pain).
  • If the compile was successful I find that the .exe file exists and I can run it. If the compile was not successful any error message from the compiler was lost when the window closed.
  • Of course the command stack was also lost when the window closed (a pain).
  • The problem seems connected to specific source files. Existing source files which have compiled successfully before can be modified and compiled without the problem.
  • I have tried renaming the file, no change. I have tried copying the file to a different name file, no change.
  • Manually copying the code to another file seems to cure the problem for that particular program. This involves getting a printiout of the code and re-entering it under another file name (a pain).
Does anyone have any idea why this is happening and how it can be cured?

Edited by Actor, 12 July 2010 - 03:41 PM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users