Message-ID: <000101c31178$42f7f540$6ff2193e@oemcomputer> From: "Adrian Greeman" To: Subject: Only get errors when opening saved prog file Date: Sat, 3 May 2003 14:28:45 +0100 Organization: Pix and Words MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 I have just started learning C++. (Some knowledge of PHP and Javascript) I downloaded the DJGPP files which were current on 28-04-03 (UK format date) to my PC running Windows ME and successfully got it running with the path configured as C:\DJGPP\bin etc. (Done with the msconfig - environment box). The list immediately helped me out with problems on my first prgramme (due to an old format header I discovered - I am obviously using an old book! Weekend Crash Course by Stephen R Davis). I changed the header and cin operator to >> it and the programme compiled without errors and ran nicely. It converts temperature.saved as a CPP file in a directory called MyCPLUS OK. However I get a stream of DOS errors after closing the file and closing Rhide etc. Too quick to catch but they repeat when i reopen. The whole opens again (simply by slicking a shortcut which has mysteriously appeared) but when I try to open the saved file I just get a string of DOS error messages. I have checked these on the forum and there is some discussion of a possible bug - but I am not skilled enough to know if my errors are the same even - and whether I might perhaps have missed doing something. Anyway this is the error stream - Exiting due to signal SIGABRT Division by Zero at eip=0000b2d1, x87 status=0000 eax=000000c8 ebx=003918d4 ecx=00000000 edx=0000000a esi=003918b8 edi=00391930 ebp=00391850 esp=00391828 program=C:\DJGPP\BIN\RHIDE.EXE cs: sel=00af base=846a9000 limit=ff965fff ds: sel=00b7 base=846a9000 limit=ff965fff es: sel=00b7 base=846a9000 limit=ff965fff fs: sel=00c7 base=00000000 limit=0010ffff gs: sel=00c7 base=00000000 limit=0010ffff ss: sel=00b7 base=846a9000 limit=ff965fff App stack: [00391db0..00311db0] Exceptn stack: [003114e0..0030f5a0] Call frame traceback EIPs: 0x0000b2d1 0x0023d6e7 0x0023d085 0x0004c179 0x0002aa49 0x0000bc12 0x00008ba7 0x00226d94 0x002264e0 0x0000ba5e 0x00289d58 Please can someone help me work this out? Regards Adrian Greeman