Page 1 of 1

program crash, minus sign alone entered in numeric text box

Posted: Fri Oct 05, 2012 1:33 am
by amc
I have an input screen with a number of text boxes defined as decimal 6,0
If a user enters a minus sign alone into one of the text boxes and hits enter, they are returned to the rpg program which crashes with the following error

Code: Select all

Message ID . . . . . . :   RNQ1299       Severity . . . . . . . :   99        
Message type . . . . . :   Inquiry                                            
Date sent  . . . . . . :   05/10/12      Time sent  . . . . . . :   14:40:28  
                                                                              
Message . . . . :   I/O error MCH1201 was detected in file CRNOTED (C G D F). 
Cause . . . . . :   The RPG procedure CRNOTELE in program WIL/CRNOTELE    
  received the message MCH1201 at statement 2512 while performing I/O         
  operation EXFMT on file CRNOTED. The actual file is *LIBL/CRNOTED.          
Recovery  . . . :   Check the job log for more information on the cause of the
  error and contact the person responsible for program maintenance.           
Possible choices for replying to message . . . . . . . . . . . . . . . :      
  D -- Obtain RPG formatted printout of system storage.                       
  S -- Obtain printout of system storage.                                     
  G -- Continue processing at *GETIN.                                         
  C -- Cancel.                                                                
                                                                       More...
Reply  . . . :   C
I would have expected this invalid input to be trapped at the screen level without being returned to the rpg program.

How can I prevent my program from crashing on this type of invalid input being returned ?

Tony C

Re: program crash, minus sign alone entered in numeric text box

Posted: Fri Oct 05, 2012 6:40 pm
by Scott Klement
I'm trying to reproduce this issue, but I get an error telling me that "-" is not a valid number. This shows up in a "tool tip" next to the field on the screen, and the screen does not submit.

Can you provide details of how you've set up this field?

Re: program crash, minus sign alone entered in numeric text box

Posted: Fri Oct 05, 2012 8:34 pm
by amc
i created a test display file with only one field as per the image attached

if i put a minus sign in the field & hit enter, it returns to the rpg program & crashes

Re: program crash, minus sign alone entered in numeric text box

Posted: Sun Oct 07, 2012 12:10 pm
by Scott Klement
Thanks! I've been able to reproduce the problem, but I haven't yet determined what's going on. I'll discuss this with the rest of the dev team on Monday.

Re: program crash, minus sign alone entered in numeric text box

Posted: Mon Oct 08, 2012 7:02 pm
by Scott Klement
I've fixed this problem on our development box. The fix will be in the next release of ProfoundUI.

Re: program crash, minus sign alone entered in numeric text box

Posted: Tue Oct 09, 2012 12:54 pm
by Scott Klement
Version 4.1.4 of ProfoundUI is now available for download. It fixes the crash when you put a minus sign in the text box, by itself.

After installing 4.1.4, please make sure you clear/refresh your browser cache so the old copy of the code isn't still in the computer's memory. (I just got bit by that one, myself! hehehe)

Re: program crash, minus sign alone entered in numeric text box

Posted: Tue Oct 09, 2012 6:35 pm
by amc
Thanks Scott, I can confirm the v414 has solved the problem

regards

Tony C