1. Michael Krul
  2. PowerBuilder
  3. Tuesday, 9 January 2024 18:07 PM UTC

Hello,

We moved from PB17 to PB22.

There are problems with the pictures.
It's easier to show than to explain.

This is a window:

There are a lot of uo with buttons on the window.
After pressing any button, problems begin - the pictures disappear.

Every time different pictures disappear.

The program worked without problems from PB4 to PB17.
Problems are only in PB22 (R2 and R3).

Any thoughts on this?

Thanks.

Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 9 January 2024 19:22 PM UTC
  2. PowerBuilder
  3. # 1

Add an empty library to your target called images.pbl. Then in the build process assign a .pbr file to the images library. The .pbr would have a list of all image files in the application.

Make sure that all image references in your code are only the filename (no path info). Then put all the image files in one folder and add the folder to your system path.

When the target is deployed, all the images will be in images.pbd and the app will be able to load images without having to worry about current folders. You also won't have to deploy the image files to the client.

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 9 January 2024 19:14 PM UTC
  2. PowerBuilder
  3. # 2

Hi Michael;

  There have really been no changes to picture handling in Appeon PB 2021 / 2022 Rx releases other than a few improvements to render images a bit better but, that should be all transparent to your App code.

   Ronnie brings up a few good points to check. I have seen these type of things derail images but by no means a fault of the PB App EXE. Another possibility is that you are running out of a) App memory (ie 32 bit address space); c) running out of MS-Windows resource handles; or maybe c) Images have been improperly linked into a PBD / DLL.

   FYI: IN all of PB 2022 R1, R2 & now R3 - no other tickets were created referencing this type of problem.

Regards ... Chris

Comment
There are no comments made yet.
Michael Krul Accepted Answer Pending Moderation
  1. Tuesday, 9 January 2024 18:46 PM UTC
  2. PowerBuilder
  3. # 3

drag the window mostly off screen & uo_3.setRedraw(TRUE) - doesn't help.

The buttons work. The problems are with the pictures only.

Comment
There are no comments made yet.
Ronnie Po Accepted Answer Pending Moderation
  1. Tuesday, 9 January 2024 18:29 PM UTC
  2. PowerBuilder
  3. # 4

Do the button actions cause the current directory to be changed (which can break references to the image files)?

If not, there may be a refresh issue with PB22.

If you drag the window mostly off screen and then back, do the images reappear?

Do the images reappear if you script the following (for example)?

uo_3.setRedraw(TRUE)

 

Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 9 January 2024 18:27 PM UTC
  2. PowerBuilder
  3. # 5

Hi, For this particular issue I would suggest open a support ticket and provide a little test case that reproduces the problem.  https://www.appeon.com/standardsupport/newbug

Comment
  1. Michael Krul
  2. Tuesday, 9 January 2024 18:56 PM UTC
I've posted.

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