1. JOHN THOMAS
  2. PowerBuilder
  3. Wednesday, 11 March 2020 22:05 PM UTC

Folks - we are suddenly (last few months) having a mysterious issue whereby PB refuses to make pcode-setting executables, though it will make machine exe's that work fine. This started with PB17 after awhile (but not initially that I remember) and I can reproduce this over and over. I have a whole screenshot sequence if it would help. Things I've tried:

- checkbox for pbd on/off on the app pbl. Makes all pbd's fine but won't make exe. When "Incremental" checked, it makes a shadow exe file, which disappears when you click on it, very weird

- both incremental and full build, same result

- deploy from either workspace or project itself (single project only in deploy preview), same result

- tried doing all of the above from both a network location and local drive, same diff

 

Are there any other issues filed describing this? This is a tiny 3-pbl app that has been in use forever and rebuilt many times, under PB17 and earlier PB12.x.  Any input appreciated.

 

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 11 March 2020 23:27 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi John;

   Have you tried ...

1) Optimizing all your PBL's

2) Then perform a Full Build

3) Restart the IDE & try a P-Code deploy.

Regards ... Chris

Comment
  1. JOHN THOMAS
  2. Thursday, 12 March 2020 13:38 PM UTC
thanks Chris, see my reply to all
  1. Helpful
  1. Olan Knight
  2. Thursday, 12 March 2020 15:22 PM UTC
I don't see your REPLY TO ALL, but I'm glad you got it working!
  1. Helpful
  1. Michael Kramer
  2. Friday, 13 March 2020 09:46 AM UTC
"Above" is "Below" -- depends on when you refresh your browser window while answering.
  1. Helpful
There are no comments made yet.
JOHN THOMAS Accepted Answer Pending Moderation
  1. Thursday, 12 March 2020 15:30 PM UTC
  2. PowerBuilder
  3. # 1

Thanks very much all. re: Chris' answer item to Optimize pbl's, this has exposed something and it's pretty nonsensical. Sequence:

- optimize app object pbl. 

- I get a message "found source for <object> but didn't find object for it. Would you like to export it?"

This is pretty psycho because a) this object isn't in any of the pbl's  and b)  isn't even referred to anywhere in the entire app that I can find by string searches.  (I always verify the string search is working by making it find something, which it does).  So I export this object for the hell of it. 

Every object in this pbl regens fine.  Both of the other pbl's optimize ok with no bizarre messages. I tried Edit Source on the main app object of above pbl to search it, etc, it opens fine but my mystery export object is not to be found.

 

Some retries:

- build pbd's of all three pbl's individually (at pbl level)  - all fine

- deleted project, ran Deploy from workspace level, creates all pbd's fine but still no exe

- ran Full Build from workspace, did not create any pbd's...I thought Full Build was supposed to do that

- deleted above project, ran Deploy from workspace, created new project, left "Build Dynamic Libraries (.PBD)" setting OFF, left Platform setting at 64-bit (though we have been building/running more successfully at 32-bit). This created an exe.   Edited project and set platform to 32bit, reran deploy from workspace, created exe ok.

 

So in summary, when I 

1- run Deploy with project setting Build Dynamic Libraries (.PBD) to OFF I get an exe but no pbd's created (makes sense I suppose )

2- run Deploy with all 'pbd' checkboxes checked in Libraries tab I get pbd's but no exe

3- the only way I can get an exe plus needed pbd's is to create pbd's manually one by one and then make exe with pbd options all off in project

Strange. Should I report this as a possible bug?  Thanks again!

 

 

Comment
  1. Chris Pollach @Appeon
  2. Thursday, 12 March 2020 18:38 PM UTC
Hi John .... Awesome , I am super glad that the "optimize" step did the trick for you! :-)
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 12 March 2020 18:44 PM UTC
PS: The Psycho object could have been within the "Project" object. Yes, weird I know but, I have had to rebuild the odd PJ object to get around this type of anomaly. The Optimize will get rid of "ghost" object classes that again can cause havoc on your build, re-gen and/or deployment steps.
  1. Helpful
  1. Ricardo Jasso
  2. Friday, 13 March 2020 01:13 AM UTC
Actually, the Rebuild options are used "to indicate whether you want PowerBuilder to regenerate all objects in the application libraries before it creates the executable and dynamic libraries"... "As a precaution, regenerate all objects before rebuilding your project".



So, that step does not build the exe and pbd's, it just regenerates the pb libraries.



  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 11 March 2020 22:24 PM UTC
  2. PowerBuilder
  3. # 2

Have you tried installing PowerBuilder on a new machine to see if there is some issue with the PBLs or something corrupted about your installation of PowerBuilder?

Comment
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Wednesday, 11 March 2020 22:23 PM UTC
  2. PowerBuilder
  3. # 3

This will sound stupid, but when I start getting bizarre errors that make no sense, I just stop and reboot the VM/PC.  Nine times out of ten this corrects whatever issue I was having. Next:

1) Ensure all the correct PBLs are is on the local C drive
2) Ensure that the library list is correct
3) Open the project file and ensure that all the PBD checkboxes are checked
4) Delete the old EXE
5) Do a FULL BUILD
6) Do a DEPLOY


That ought to resolve the issue. Just remember: "If it's stupid but it works, it's not stupid".  :)


Later -

Olan

Comment
  1. JOHN THOMAS
  2. Thursday, 12 March 2020 13:40 PM UTC
hi Olan, thanks. Yes, did all your suggestions in various order. See my reply to all please.
  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.
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.