program crash, minus sign alone entered in numeric text box

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
amc
Profound User
Posts: 67
Joined: Thu Jul 29, 2010 1:25 am
First Name: Tony
Last Name: Cusack
Company Name: Welding Industries
City: Adelaide
State / Province: Outside Canada/USA
Zip / Postal Code: 5139
Country: Australia
Location: Adelaide, South Australia
Contact:

program crash, minus sign alone entered in numeric text box

Post 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
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

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

Post 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?
amc
Profound User
Posts: 67
Joined: Thu Jul 29, 2010 1:25 am
First Name: Tony
Last Name: Cusack
Company Name: Welding Industries
City: Adelaide
State / Province: Outside Canada/USA
Zip / Postal Code: 5139
Country: Australia
Location: Adelaide, South Australia
Contact:

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

Post 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
Attachments
2012-10-06_1001.png
2012-10-06_1001.png (19.03 KiB) Viewed 1475 times
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

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

Post 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.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

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

Post by Scott Klement »

I've fixed this problem on our development box. The fix will be in the next release of ProfoundUI.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

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

Post 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)
amc
Profound User
Posts: 67
Joined: Thu Jul 29, 2010 1:25 am
First Name: Tony
Last Name: Cusack
Company Name: Welding Industries
City: Adelaide
State / Province: Outside Canada/USA
Zip / Postal Code: 5139
Country: Australia
Location: Adelaide, South Australia
Contact:

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

Post by amc »

Thanks Scott, I can confirm the v414 has solved the problem

regards

Tony C
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest