1. Devang Modi
  2. PowerBuilder
  3. Wednesday, 28 November 2018

Hello Experts,

 

We are facing issue while opening multiple windows. As part of Opening multiple windows. System creates Datawindow objects. We noticed that when User Object reached 240 / 250 limit then system is started to crash. 

 

Do we have any limitation in system on User Object? 

 

Thanks & Regards,

Devang Modi.

Chris Pollach Accepted Answer Pending Moderation
0
Votes
Undo

Hi Devang;

   If your App uses Data-stores - try this ...

  1. Create a PB.INI file & save this in your App's EXE folder
  2. Add the following to your PB.INI

[DataStore Behavior]
; No = do NOT use MS-Window handles in DS processing (Default is yes). "No" gives much better performance and l;ower memory overhead!
UseHwnd=no

If that works for your App's EXE, try editing your PB IDE's PB.INI adding the same settings.

Regards ... Chris

 

Comment
It would be nice if the help listed all these secret pb.ini runtime settings. The only written documentation are in forum posts.

I think the whole idea of requiring a pb.ini file to be installed with the exe is stupid. Instead there should be a function that we can use. I would be in favor of a generic function called RuntimeSetting or similar.
  1. Roland Smith
  2. Thursday, 29 November 2018
Thanks a lot Chris. I will try and update about it.



Thanks a lot for your quick reply. Really appreciated it. Do we have documentation of all such values in PB.INI ? It will help a lot.



Due to such issues of PB, customers are getting fed up with Applications. We need to be innovative and document such issues for big applications.



Thanks & Regards,

Devang Modi.
  1. Devang Modi
  2. Thursday, 29 November 2018
Hi Devang;

By chance, is this a PFC based application?

Regards ... Chris
  1. Chris Pollach
  2. Thursday, 29 November 2018
There are no comments made yet.
  1. Wednesday, 28 November 2018
  2. PowerBuilder
  3. # 1
Roland Smith Accepted Answer Pending Moderation
1
Votes
Undo

Maybe you should ask yourself why you have 250 or more DataWindow objects available at one time. It sounds like a poor user interface design to me.

 

Comment
Hi Ronald,



We have application, where customer can open multiple account screen (screen for different customers). So for each Screen, we are presenting so much information about Customer. In this screen we have around 10-12 Datawindows & datastores as well. We can't restrict users that they should not open these number of screens in production.



Thanks & Regards,

Devang Modi.
  1. Devang Modi
  2. Thursday, 29 November 2018
The pb.ini change should reduce the memory requirements of your datastores but may prevent them from being printed, Chris would have to chime in on that.

Make sure the datastore objects are created only when needed and destroyed as soon as they are no longer needed. Never create a datastore within a loop. Also, you can create one datastore object and assign different datawindow objects to it as needed instead of creating multiples.
  1. Roland Smith
  2. Thursday, 29 November 2018
Tab objects have an option to only be created when the user clicks on it. Using that will reduce memory use as it is likely some tabs are rarely used.
  1. Roland Smith
  2. Thursday, 29 November 2018
There are no comments made yet.
  1. Wednesday, 28 November 2018
  2. PowerBuilder
  3. # 2
  • 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. Learn More