Board index » cppbuilder » Invalid floating point exception
Dave Vermeersc
![]() CBuilder Developer |
Mon, 12 Apr 2004 20:15:11 GMT
Invalid floating point exceptionI'm porting an application from C to CBuilder Professional, version 5.0, update pack 1. The application has been running fine for several months, but now I'm trying to parse a new file, and the program crashes with a pop-up Error box. The relevant lines of code from a .c file: fptr = &PDATA->XFF[i]; On the second line, the crash occurs. I've tried setting a breakpoint and looking at the CPU window; the assembler window shows: move edx,[ebp-0x08] The crash is on the second assembler instruction. The edx register contains 4509DC; when I display that address, its contents are 4A349BF0, or 2959100 in floating point. The processor simply refuses to load data from that address, though, and I'm stumped. Similar code is working OK elsewhere in the application. I'm running Windows 98 on a Compaq notebook. |