- Tomas Beran
- PowerBuilder
- Tuesday, 5 April 2022 05:52 PM UTC
Hello
I'm not sure if this is a bug or not but it looks strange to me.
I use PowerClient for deploying my application.
What's going on:
If I start the application from the generated desktop link then it works fine. The link targets this:
C:\ProgramData\Eclipse\PBApps\Applications\optima_optima-test\Optima-Test.exe
Next I add a parameter to the link:
C:\ProgramData\Eclipse\PBApps\Applications\optima_optima-test\Optima-Test.exe "param1"
The application starts with parameter 'param'. This is still OK.
Then I remove the parameter
C:\ProgramData\Eclipse\PBApps\Applications\optima_optima-test\Optima-Test.exe
What I'd expect was the app starting with no parameter.
But the app started with parameter "param1" again. The reason is startParam row in pbapp.ini which always contains the last used parameter regardless the parameter has been deleted. The workaround is simple - Using a weblink or just add a random parameter to .lnk works. But the behavior is strange. Plus there's a bonus there: If I use a question mark as a parameter in the .lnk file then pbapp.ini multiplies these '?' and never deletes them. The questionmarks queue only grows. This is my current startparam row:
startParam=-multi "https://optima/optima-test/?????"
Windows 10, PB2021 build 1506 with this patch https://www.appeon.com/developers/get-help/knowledgebase/powerclientpowerserver-applications-crash-when-multiple-instances-are-run-powerbuilder-2021-build-1506.html applied.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.