Discussion:
Error TbColumn
(too old to reply)
m***@gmail.com
2017-10-05 09:52:39 UTC
Permalink
Hi All,

Can someone can help to find out my error:
o:addColumn(TBColumnNew( 'N', {||o:rowPos}))
At runtime I have an Unrecov Error 650 ( Processor stack fault. )

Best Regards.

Med
lohen
2017-10-05 10:04:19 UTC
Permalink
Hello,

A shot in the dark: after your line of code o most likely changes, and
inside the Block o is a detached local, which at evaluation time doesn't
anymore refer to your initial o value

Perhaps this works:

o:addColumn(TBColumnNew( 'N', makeblock( o )))

FUNCTION makeblock ( param )
RETURN {||param:rowPos}

Now your Block contains param as detached local, which doesn't change after
the call

Hope this helps,

lohen
Post by m***@gmail.com
Hi All,
o:addColumn(TBColumnNew( 'N', {||o:rowPos}))
At runtime I have an Unrecov Error 650 ( Processor stack fault. )
Best Regards.
Med
m***@gmail.com
2017-10-05 12:59:49 UTC
Permalink
Post by lohen
Hello,
A shot in the dark: after your line of code o most likely changes, and
inside the Block o is a detached local, which at evaluation time doesn't
anymore refer to your initial o value
o:addColumn(TBColumnNew( 'N', makeblock( o )))
FUNCTION makeblock ( param )
RETURN {||param:rowPos}
Now your Block contains param as detached local, which doesn't change after
the call
Hope this helps,
lohen
Post by m***@gmail.com
Hi All,
o:addColumn(TBColumnNew( 'N', {||o:rowPos}))
At runtime I have an Unrecov Error 650 ( Processor stack fault. )
Best Regards.
Med
Hi again,

I have the same problem !!

there is also an infinite loop when I run with debuger (cld.exe)

Regards.

Med

Loading...