Bug 6493

pb.ini: [datastore behavior] usehwnd=no - Sideeffects? 28 April, 2021

Tobias Roth
27 April, 2021
Product: PowerBuilder Category: Runtime
Version: 2019 R3 Build: 2703
Classification: Publishing: Public
Priority: P3
Status: Verifying Reason:
Communication Status: Waiting for Customer
Ken Guo @Appeon 28 April, 2021
#2
Hi Tobias,

About this usehwnd=no setting in pb.ini, we did previously get feedback from a customer (Bug 5708) that it causes random crashes. But we are not sure what exactly causes the crash yet since it might relate to other factors. 

But for the side effect, I haven’t received any feedback on this so far. I suggest that you can do a full test, including long time test, after setting this ini option and see if there’s any issue.

And it’s true that we don’t have sufficient documentation regarding pb.ini for the time being. Sybase once added some keys into pb.ini, including some hidden keys, and has no documentation for them, which is causing inconvenience for both developers and support. I will submit this as a requirement to the Product Team. But as you know, this won’t be a small amount of work for it would require our developers to check on the code of each key, find out why Sybase added these keys at that time, and find out the specific function and side effects of each key. Therefore, our company needs to evaluate this requirement and then decide how to act.

Regards,
Ken
Chris Pollach @Appeon 27 April, 2021
#1
Hi Tobias;

  The only negative side effect that I have heard of is printing / PDF generation from a DataStore when this setting is used.

  Yes, the documentation for the PB.ini could be better for sure!

  I will now transfer this ticket over to the main Support / Engineering Team to see if they have any further wisdom to add to the these INI setting(s).

Regards ... Chris
Tobias Roth 27 April, 2021
Hi,

we read in serveral community threads that the following pb.ini setting resolves a lot of problems/crashes.

[datastore behavior] 
usehwnd=no

https://community.appeon.com/index.php/qna/q-a/fix-for-random-crash-works-for-all-pb-versions-including-2019-r3
https://community.appeon.com/index.php/qna/q-a/powerbuilder-crash-due-to-user-object-limit
https://community.appeon.com/index.php/qna/q-a/any-changes-to-the-datastore-nonvisual-behavior

Are there really no side effects of that option that we should know?

Btw. the pb.ini settings should be better documented.

Thanks 

Regards Tobi
OS:
Windows 10
Platform:
64-bit
Database Type:
SAP SQL Anywhere
Database Version:
17.0.4.2100