1. Tomas Beran
  2. PowerBuilder
  3. Tuesday, 5 April 2022 17: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.

 

 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 5 April 2022 18:10 PM UTC
  2. PowerBuilder
  3. # 1

Hi Tomas;

  That certainly sounds like a bug IMHO (also Design Flaw). Especially keeping EXE start-up parameters in an unprotected INI file. If sensitive password (as one example) information is used in the short-cut - one would never want that stored, let alone unencrypted!

  Please open a Support Ticket for this issue!

Regards ... Chris

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.
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.