views:

132

answers:

2

I have a problem, though it might be virus. In my school, when i compile pascal programms and IF there is readln on the end - the computer restarts. The OS is windows XP.

Does anyone here know something about dealing this issue ? Thanks in advance.

+1  A: 

Very cool! It's not easy for a user application (including a compiler) to do that.

Yes, it sounds a lot like your Pascal compiler is broken - either by a virus or just a disk copying error or such. Virus scan your PC and replace the compiler.

Carl Smotricz
either that or some virus hijacked a few win32 dll that the compiled program uses...
Earlz
+1  A: 

For this we need some information about the situation:

  • Compiler,
  • compiler version,
  • compiler target?
  • What does the source look like?
  • What components or other libraries/techniques does the source use?

Does the application - do graphics? (dos lowlevel graphics could be a problem, and via the videodriver touch ring 0) - is it very low on memory and diskspace? Maybe gets out of memory and can't allocate diskspace?

Marco van de Voort
This should have been a comment to the original question, since you didn't provide an answer, but asked for additional information.
Ken White
Comments are unformatted and space limited for multiple questions.
Marco van de Voort