Page 1 of 1

Exception C00000FD: Stack overflow on "format/.." predicate

Posted: 16 Oct 2013 7:01
by George
I'm getting the following error message during the run time..

========================================
Dump: 2013-10-11 09:12:22
----------------------------------------

Exception: systemException (runtime_exception)

System exception
Predicate name = format
Format = %-0.2f
error code = 1
ExtraInfo = Exception C00000FD: Stack overflow

continued() 2013-10-11 09:12:21

ThreadId: 3596

Class name: string

Predicate name: format
----------------------------------------

Exception: systemException (runtime_exception)
System exception

error code = 1

ExtraInfo = Exception C00000FD: Stack overflow

raised() 2013-10-11 09:12:21

ThreadId: 3596

Class name: runtime_exception

Predicate name: runtimeExceptionRaiser
The following is the code that I used on my Project

Code: Select all

RealVal = tryToTerm(real, SVal),   %SVal input number in string format FValue = string::format("%-0.2f", RealVal),

I'm not sure, when the format predicate will through "Stack overflow" exception during the run time.

Could you please advice me ??

Thanks in advance..

Posted: 16 Oct 2013 10:44
by Paul Cerkez
just out of curiosity, what happens if the Try fails? Are you sure the SVal is bound?

I get this kind of error In ASP/C# if I try to do something like this but the variable is unbound or is null.

try something like this to test it;

Code: Select all

RealVal = 0 + tryToTerm(real, SVal),   %SVal input number in string format FValue = string::format("%-0.2f", RealVal),
if you get a zero, or it throws another type of exception, the problem could be in the SVal.

P.

Posted: 16 Oct 2013 11:39
by George
just out of curiosity, what happens if the Try fails?
if the try fails, then I've written a trivial condition to return the value as "0".. I don't think, there will be an problem..

Are you sure the SVal is bound?

yes, It's always bound..


Any Thought's.. why this exception happened..??

Thanks in advance..

Posted: 16 Oct 2013 18:34
by Vitaly Markov

Code: Select all

RealVal = tryToTerm(real, SVal),   %SVal input number in string format FValue = string::format("%-.2f", RealVal),
It is correct Code, I think.
What is the string of SVal that call exception?

Posted: 16 Oct 2013 19:20
by Thomas Linder Puls
I have not been able to reproduce the problem.

Can you reproduce it yourself?
What value does SVal have?

Posted: 17 Oct 2013 6:25
by George
I'm still investigating on this issue.. It was happened during the run time.. I was not able to reproduce this issue when I had this in a separate test project.. I tried all possibilities(passing various inputs), but I'm not able to re-produce..

Any thought about this exception..

Since it is happening in the built-in predicate given by PDC.. I'm not sure, in which scenario this exception will thrown by this predicate..

I'm keep working on this.. Please suggest me what would be right way to investigate this issue.?


When the format/.. predicate will throw "Stack Overflow" exception..?

Thanks in advance..