1. Christopher Craft
  2. PowerBuilder
  3. Monday, 10 April 2023 15:59 PM UTC

We have always compiled our resources into the EXE but as more images get added it just keeps expanding the size of it.  I started compiling them into a PBD but before I decide to change our deployment I wanted to know if anyone had any opinions on the pros/cons.  It seems much better to use a resource.pbd file but I could be missing something.

Thanks,

Chris Craft

mike S Accepted Answer Pending Moderation
  1. Monday, 10 April 2023 18:57 PM UTC
  2. PowerBuilder
  3. # 1

PBD rather than EXE:

cons: 

my understanding is that the app will run faster if the images are the exe rather than a pbd.   

 

pros:

If you need to simply change out an image, then you only need to recompile the pbd.

 

Comment
  1. Chris Pollach @Appeon
  2. Monday, 10 April 2023 19:15 PM UTC
FWIW: Actually, once the PBD/DLL is "cached" there should not be any performance difference. The key tip here too is to make the image PBD the 1st in the library list. HTH. ;-)
  1. Helpful
  1. Christopher Craft
  2. Monday, 10 April 2023 20:51 PM UTC
Good to note - thanks guys.
  1. Helpful
  1. Roland Smith
  2. Monday, 10 April 2023 21:12 PM UTC
You could have an empty PBL and assign a PBR to that when compiling the app. That would give you a PBD that contained only images.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 10 April 2023 16:12 PM UTC
  2. PowerBuilder
  3. # 2

Hi Chris;

  FWIW: I've been placing all my image resources in PBD's for decades with no issues. HTH

Regards ... Chris 

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 11 April 2023 18:55 PM UTC
Me too ... only one PBR but - that is pointing to one "empty" PBL that in turn produces one PBD or DLL for app that has all the images.. ;-)
  1. Helpful
There are no comments made yet.
Bruce Armstrong Accepted Answer Pending Moderation
  1. Tuesday, 11 April 2023 18:41 PM UTC
  2. PowerBuilder
  3. # 3

Hey Chris.

I've always have put them in the EXE, but purely because I found it was easier to do that.  Only one PBR to maintain.

Also, FWIW, the other thing to note is that I don't generally have anything except the application object in the PBL that the EXE is based off of.  So the exe is just the application object stub and the images.

 

Comment
  1. Christopher Craft
  2. Wednesday, 3 May 2023 18:04 PM UTC
Sorry Bruce - I totally missed your comment from the 14th! That Comcast is not valid anymore. Use Chris with FamousSoftware.com
  1. Helpful
  1. Bruce Armstrong
  2. Wednesday, 3 May 2023 18:21 PM UTC
Chris, I found that one as well on the 22nd and sent you an email. You might need to check spam. Otherwise, you can reach me using Bruce and BruceArmstrong.org.
  1. Helpful
  1. Christopher Craft
  2. Thursday, 4 May 2023 16:24 PM UTC
Found it in junk. I sent you an email.
  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.