Re: Comet 32 behavior differences (re-posted from messages 16041 and 16994.htm)


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Robert G Laurin on September 28, 2011 at 11:30:57:

Message 16041 Posted March 4, 2011

I am trying to switch over to Comet 32...

The new Error Window makes it very hard to find problem in the code.

Beside beeing rather cryptic, it shows onlythe one last instruction address. Makes it hard to trace when we use 'ERRORTO'

In any case, I found this bizarre behavior:

if I write code that does this:

...
Let XKEY$ = '' ! Clear old key field
Let XKEY$ = Key(Lun,Excpsub=ExcpRet)
...

If the EXCP was an End-Of-File (2) then the result of XKEY$ is unpredictable. So the question is: WHY is the value of XKEY$ altered if the function failed ?

This worked beautifully in Comet 16. Anyone want to take a guess on how many programs I'd have to change to go to Comet 32 ??


Message 16994 Posted Sept 23, 2011

I encountered this error AGAIN today!

Was in Comet32.443 (CometSrv 11.04)

Ran a program that crashed on an un-expected Excp 2 (EOF)

My Trace shows the offending code to be:

DO
Let XKey$ = ''
Let XKey$ = Key(Lun,ExcpSub=ExcpRET)
If Xkey$ = '' BREAK
Inquire (Lun,myFormat) ! <- Program Crashed HERE
...
...
ExcpRet:
Return

I added a trace and found that XKey$ was full of Junk after the Failed Key( ) - Looked like a PSTAT.

Also Tried a clear buffer (Print (#) '') before the failed key - Same result.

I already modified nearly 200+ sources for the Comet32 Accumulator difference of the Sub(Str(a+b),n,n) back in August 2011.

Can this be properly fixed? If the Key( ) has an EXCP or EXCPSUB, shouldn't the value be unchanged ?



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]