Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2004-10

Strange exception

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alan Mead

I compiled a program using -gl with FPC 1.9.4 on Linux and I get this run-time-error when running the program:

An unhandled exception occurred at 0x080742B2 :
ERangeError : Range check error
$080742B2 SVDCMP2, line 337 of lsa2.pas
$BFFFF924 P$LSA2_finalize_implicit, line 692 of lsa2.pas

What makes it strange is that line 337 is the final end statement of the procedure SVDCMP2 and line 692 is the final end statement of the program lsa2. Any ideas what might cause this or what to do?

-Alan

Alan Mead
to Alan Mead

I have 1.9.5 installed on a second computer. When I compile using the newer version, I get a slightly different error message:

An unhandled exception occurred at 0x0807498D :
ERangeError : Range check error
$0807498D SVDCMP2, line 337 of lsa2.pas
$00000001

-Alan

--- Alan Mead wrote 21 lines
I compiled a program using -gl with FPC 1.9.4 on Linux and I get this run-time-error when running the program: An unhandled exception occurred at 0x080742B2 : ERangeError : Range check error $080742B2 SVDCMP2, line 337 of lsa2.pas $BFFFF924 P$LSA2_finalize_implicit, line 692 of lsa2.pas What makes it strange is that line 337 is the final end statement of the procedure SVDCMP2 and line 692 is the final end statement of the program lsa2. Any ideas what might cause this or what to do? -Alan _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Peter Vreman
to Alan Mead
Show quoted text 22 lines
I have 1.9.5 installed on a second computer. When I compile using the newer version, I get a slightly different error message: An unhandled exception occurred at 0x0807498D : ERangeError : Range check error $0807498D SVDCMP2, line 337 of lsa2.pas $00000001 > I compiled a program using -gl with FPC 1.9.4 on Linux and I get > this > run-time-error when running the program: > > An unhandled exception occurred at 0x080742B2 : > ERangeError : Range check error > $080742B2 SVDCMP2, line 337 of lsa2.pas > $BFFFF924 P$LSA2_finalize_implicit, line 692 of lsa2.pas > > What makes it strange is that line 337 is the final end statement > of > the procedure SVDCMP2 and line 692 is the final end statement of > the > program lsa2. Any ideas what might cause this or what to do?

There is a variable that needs to be finalized since it contains refcounted types.

What the reason is is impossible to tell without the source code.

Peter

Alan Mead
to Peter Vreman
--- Peter Vreman wrote 14 lines
>> An unhandled exception occurred at 0x080742B2 : >> ERangeError : Range check error >> $080742B2 SVDCMP2, line 337 of lsa2.pas >> $BFFFF924 P$LSA2_finalize_implicit, line 692 of lsa2.pas >> >> What makes it strange is that line 337 is the final end statement >> of >> the procedure SVDCMP2 and line 692 is the final end statement of >> the >> program lsa2. Any ideas what might cause this or what to do? There is a variable that needs to be finalized since it contains refcounted types.

Peter,

Thanks!

I don't understand what you mean by "finalize".. how do I find out which variable isn't being finalized and finalize it? Is that something I do or that the compiler adds code to do?

I've narrowed down where the error occurs and I think it's just a 201 error that occurs on line 250 (line 249 executes, then I get the exception and line 251 does not execute)... so I don't know why line 337 or" finalization" is involved.

-Alan