1. Craig Simonian
  2. PowerBuilder
  3. Monday, 21 December 2020 21:45 PM UTC

Hi Appeon (Chris Pollach),

 

At my company we are upgrading from SAP PowerBuilder 12.6 Build 4098 to Appeon PowerBuilder 2019 R2.  We have a window that calls another window through the OpenSheetWithParm function.  In my testing our application goes into a loop after the 6th double-click and transfer from the 1st window to the 2nd window.  It as if the environment can’t handle the application load and it flashes and the message not responding is displayed. 

 

If I wait a little bit it will come back but then after a 7th double-click from the 1st window to the 2nd window the application is no longer responding and I have to disconnect and then I receive an abort message.

 

This is the same way that the SAP PowerBuilder worked on a VDI and that is why we are upgrading.  Any help or assistance would be appreciated.

 

Thanks,

Craig

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 25 December 2020 18:36 PM UTC
  2. PowerBuilder
  3. # 1

Hi Craig,

You talk about "after the 6th double-click and transfer from the 1st window to the 2nd window", but on what are you double clicking ? What does the code do on the double click? What do you mean exactly with "transfer from the 1st window to the 2nd"?

Are you doing an OpenSheet of an already opened window? If that's the case, then be aware that the window's Open() event will still be executed.

Maybe there's some things being CREATEd which haven' been previously destroyed?

regards.

Comment
There are no comments made yet.
Craig Simonian Accepted Answer Pending Moderation
  1. Thursday, 24 December 2020 19:21 PM UTC
  2. PowerBuilder
  3. # 2

Hi Appeon,

It is as if the memory is not being released after each iteration of the OpenSheetWithParm to the 2nd window from the 1st window.  I know that there is still a connection between the two windows.  Is there a maximum amount of times that the OpenSheetWithParm function can be called from the same two windows?  As I said earlier the 2nd window has at least 100 to 200 data windows being executed including drop down data windows.  I double click from the 1st window to the 2nd window and after 5 or 6 interactions the application flicker and "hangs".  Could it be a timer or resize event?  This application uses PFC and I have migrated those pbl's.  This happened with SAP PowerBuilder and now Appeon.  It doesn't matter if I run it in the IDE or from the VDI using the runtime libraries.  I am attempting to debug the code to see where the problem is but we have a lot going on in the 2nd window. These are two main windows within a MDI Frame.  Any help would be appreciated.  Can we have a Skype call next week to discuss.  Thanks, Craig

Comment
  1. Armeen Mazda @Appeon
  2. Thursday, 24 December 2020 19:31 PM UTC
Hi Craig, You should open a support ticket for something that you suspect is a potential bug. The Q&A is a community-driven technical forum, even though Appeon staff does help out from time to time. But just to set expectations, for this type of potential bug we will need a reproducible test case, which you can attach to your support ticket.
  1. Helpful
There are no comments made yet.
Craig Simonian Accepted Answer Pending Moderation
  1. Tuesday, 22 December 2020 18:49 PM UTC
  2. PowerBuilder
  3. # 3

Hi Chris,

This application uses the PFC.

This is strange and even stranger still that eventually, the PB App comes back from it's "frozen" state. That sounds like a long running script that finally completes and then returns control to the main application after its completion. Depending on parameters because it is passing a structure there could be 100 data window retrievals (Including drop down data windows) going on in sequence in the second window.

  Can you tell us ....

When you open WindowB from WindowA, does is disable the object that performs the OpenWithParm (ie CB) until WindowB closes?  Yes. What types of Windows are "A" and "B" in my example above in your PB App? Main windows Does this issue happen in the IDE, an EXE or both?  Both. What types of processing is occurring in the two windows you describe? Enabling tabs and Data Window Retrievals

Thanks,

Craig

 

Hi John,

Greetings, Craig -

Others may disagree, but I don't believe you've supplied us with enough information for us to offer much in the way of practical advice.

What, in general, do these secondary windows do? Are they data entry windows? Reports? Long-running, data-intensive processes? 100 rows of data, 100,000?  They are data retrievals of up to 40 rows but most are one row.  Has each window been closed when you open the next one? No. If they're open, are they idle? Yes. Have you tried monitoring CPU usage, Virtual Memory, Disk Activity (i.e., Task Manager, Resource Monitor) simultaneously to gain any insights? Yes. The CPU Usage goes up.  What O/S are you running the PB app under? Windows 7. Is the application memory constrained? Is the app performing a lot of disk I/O? Yes. Is the app waiting on the database? No. What DBMS does it use? Sybase 15.0. Is it running on Citrix? Virtual Desktop? Does the app interface with 3rd-party software? No third party software and the same issue happens in the IDE or on Citrix.

These are all things that can impact performance. I'm not saying we need answers to all of these questions... but it's nearly impossible to offer useful advice on the limited information you've given us so far.

Regards, John

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 22 December 2020 19:04 PM UTC
Hi John;

When you upgraded to PB 2019 R2 - did you also update the PFC libraries (not PFE's) to the same level?

FYI: https://github.com/OpenSourcePFCLibraries

Regards ... Chris
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 22 December 2020 14:29 PM UTC
  2. PowerBuilder
  3. # 4

Hi Craig;

  This is strange and even stranger still that eventually, the PB App comes back from it's "frozen" state. That sounds like a long running script that finally completes and then returns control to the the main application after its completion.

  Can you tell us ....

  1. When you open WindowB from WindowA, does is disable the object that performs the OpenWithParm (ie CB) until WindowB closes?
  2. What types of Windows are "A" and "B" in my example above in your PB App?
  3. Does this issue happen in the IDE, an EXE or both?
  4. What types of processing is occurring in the two windows you describe?
  5. Where & when does the 2nd Window grab the Parm information?

Regards .... Chris

 

Comment
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Monday, 21 December 2020 22:50 PM UTC
  2. PowerBuilder
  3. # 5

Greetings, Craig -

Others may disagree, but I don't believe you've supplied us with enough information for us to offer much in the way of practical advice.

What, in general, do these secondary windows do? Are they data entry windows? Reports? Long-running, data-intensive processes? 100 rows of data, 100,000? Has each window been closed when you open the next one? If they're open, are they idle? Have you tried monitoring CPU usage, Virtual Memory, Disk Activity (i.e., Task Manager, Resource Monitor) simultaneously to gain any insights? What O/S are you running the PB app under? Is the application memory constrained? Is the app performing a lot of disk I/O? Is the app waiting on the database? What DBMS does it use? Is it running on Citrix? Virtual Desktop? Does the app interface with 3rd-party software?

These are all things that can impact performance. I'm not saying we need answers to all of these questions... but it's nearly impossible to offer useful advice on the limited information you've given us so far.

Regards, John

Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Monday, 21 December 2020 22:16 PM UTC
  2. PowerBuilder
  3. # 6

This problem also happens with PowerBuilder 12.6 version?

This problem only happens on VDI?

If your answer is yes to both of my questions, then I recommend you consider using PowerClient to replace VDI or modify your code to workaround the issue.

 

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.