--- Quote Start ---
The Modelsim Reference Manual Lists all of the exit codes
Basically, Modelsim has crashed.
It is probably something in your code causing the crash (when it shouldnt).
I see you are compiling with the -2008 vhdl switch.
Any chance you can post all the code here so we can try?
Otherwise you'll need to raise a ticket with Mentor (and you wont see an update until altera issue a new version).
--- Quote End ---
Tricky thanks for the quick reply but I have tested files which I know worked before. I have zipped an example project to a zip folder but the attachments function will not let me load it.