1. Tamas Polgar
  2. PowerBuilder
  3. Friday, 10 February 2023 11:59 AM UTC

Hi!

 

Windows 10, PowerBuilder 2019 R3 Build 2728, PowerBuilder 2022 Build 1892

 

If there are too many sheets opened, opening a new sheet is unsuccessfull.

 

Test case:

w_partner lw_partner

str_parms lstr_parms

lstr_parms.primary_key = 1000

ll_ret = OpenSheetWithParm(lw_partner, lstr_parms, "w_partner", gw_frame, 0, Original!)

 

w_partner is a window with lots of controls (tab, userobjects, datawindows, buttons ...)

w_partner opens twice successfully and ll_ret = 1.

The third attempt to open the window is unsuccessfull.

PB2019 R3: waiting with hourglass and nothing happens

PB2022: return value (ll_ret) is -1

 

Any idea?

 

Thanks

John Raghanti Accepted Answer Pending Moderation
  1. Friday, 10 February 2023 13:21 PM UTC
  2. PowerBuilder
  3. # 1

Hi. You could be running out of GDI objects on the operating system. We had that problem when we were creating a bunch of dynamic controls but were sloppy with destroying them when done with them. Check your window for CREATE statements without corresponding DESTROY statements.

https://learn.microsoft.com/en-us/windows/win32/sysinfo/gdi-objects

Comment
  1. Tamas Polgar
  2. Friday, 10 February 2023 15:54 PM UTC
Thank you for your help!
  1. Helpful
  1. Tamas Polgar
  2. Friday, 10 February 2023 15:56 PM UTC
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Friday, 10 February 2023 16:44 PM UTC
Thanks for sharing the solution!
  1. Helpful
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.