1. Louis Mancini
  2. PowerBuilder
  3. Friday, 27 March 2020 14:18 PM UTC

Hi,

 

I have a PB app with a data window with a date column drop down calendar edit type.  When the user clicks on the down arrow to show the calenbdar pop up the whole app crashes and closes.  No error message or anything, just the entire app closes.  It will let her enter the date manually  but clicking the drop down arrow causes the crash.

I checked they have all the necessary DLLs.   Has anyone seen this before?

Users laptop is windows 10 OS.

Using PB 2019 build 2082.

 

Thanks and stay safe everyone.

Lou

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 12 May 2020 18:54 PM UTC
  2. PowerBuilder
  3. # 1

Hi Louis;

1)   I would look at the DW Control and its ancestors for User Events mapped to low level keyboard activity and their associated code (including ancestors). Also, for code that processes keyboard activity on the OTHER event. Have a search too for the KeyDown() command. If found, check out what that code is doing as well.

2) For the DC, did you code its ERROR event?

3) FWIW: Have a look at my code in the STD Framework's "Application Controller" ( nc_app_controller_master ) NVUO and in particular, the "oe_systemerror" event. This code not only traps and logs any error but then allows the user to continue at the next PowerScript statement if they choose to do so. I wonder if that processing model would then allow the DDCalendar to work on a basically, a "retry"?   Food for thought.

Regards ... Chris

 

Comment
There are no comments made yet.
Louis Mancini Accepted Answer Pending Moderation
  1. Monday, 11 May 2020 21:21 PM UTC
  2. PowerBuilder
  3. # 2

Hi Chris,

 

This was only happening with one user but now another person is seeing the application close with no error on clicking the drop down arrow.

 

I put the following code in the SystemError event on the Application Object but it didnt capture anything.


string ls_logline = "SYSTEM ERROR 1: "
ls_logline += String(error.number) + " " + error.text

ls_logline += " occurred at line " + &
String(error.line) + " "
ls_logline += " in event " + error.objectevent
ls_logline += " of object " + error.object

if Messagebox("System Error 1", ls_logline + &
"~r~n~r~nDo you want to stop the program?", &
Question!, YesNo!) = 1 then
HALT CLOSE
end if

HALT CLOSE

 

Can you please post code that will capture the error?

 

Again the crash/close of the app happens when the user presses the down arrow on a calendar drop down on a data window.

 

Thanks,

Lou

Comment
There are no comments made yet.
Louis Mancini Accepted Answer Pending Moderation
  1. Friday, 27 March 2020 17:02 PM UTC
  2. PowerBuilder
  3. # 3

Hi Chris,

 

It works fine on other windows 10 laptops so I don't get whats going on here.  Plus the no error message, just  the app closes.  

 

Would I be able to put code somewhere to try and capture an error message?

 

Thanks for your help,

Lou

Comment
  1. Chris Pollach @Appeon
  2. Friday, 27 March 2020 17:43 PM UTC
Does your PB App have the SystemError event coded on the Application Object in order to trap & log any run-time errors?
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 27 March 2020 14:49 PM UTC
  2. PowerBuilder
  3. # 4

Hi Louis;

   I just tested my STD Framework's "Demo" app on my W10 test machines and its still working well in both calendar types ...

DW Object Edit Style

Calendar Control ...

Using the Drop + any keyboard keys to navigate and/or select dates, scroll, close, etc works 100%.

Note: Tested on W10.0.18363  using PB 2019 build 2170

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.