1. Gunnar Gisleberg
  2. PowerBuilder
  3. Tuesday, 15 August 2023 09:11 AM UTC

A am developing powerbuilder applications using PowerBuilder 2019 and has a problem running the application/.exe file after deploy:

- when I start the application using Run i Powerbuilder it runs ok

- starting the exe file on disk crashes with a message: cannot find datatype n_pbui_theme_CLASSIs

This is datatype in one of the sub projects in the application.

My question is :

- when running using PowerBuilder Run comman how is the pbl files/other files loaded during startup  ?

- the application - exe file is not located in the same folder as the libraries som powerbuilder has some mecanism to load all the resources outside the foler

I try to start the exe file generated using explorer but i fails som starting from Run in powerbuilder is different.



Gunnar Gisleberg

Locus Solutions


Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 15 August 2023 12:46 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Gunnar;

  The "n_pbui_theme_CLASSIs" object is not PB runtime related but a class that you created. I suspect that either you forgot to compile your App's PBL's into PBD's or if you did, you forgot to copy these PBDs along with your App's EXE.

Regards... Chris 

There are no comments made yet.
Gunnar Gisleberg Accepted Answer Pending Moderation
  1. Wednesday, 16 August 2023 06:48 AM UTC
  2. PowerBuilder
  3. # 1

Hi Chris

Thank you.

I have not been able to solve this issue by copying the pbls yet

A work around is to skip generating separate pbls - it work ok.  Then it should be possible to test which pbls causes the problem sub selecting dlls in the LIbraries project menu 

  1. Markus Eckert
  2. Wednesday, 16 August 2023 09:46 AM UTC
Did you copy the PBLs or the PBDs?

The compiled exe needs the PBDs to be present, the PBLs only work from within the IDE

Regards, Markus
  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.