1. Dan Cooperstock
  2. PowerBuilder
  3. Monday, 2 September 2024 18:07 PM UTC

I'm upgrading from PB 2021 to PB 2022 R3. One of my applications uses the TX Text Control. It runs fine from the IDE.

I included all of the files stated as being needed in the "List of Runtime Files" help page in my installer, and made sure that tx4ole31.ocx was registered as a control. I also checked that in the application object's Advanced properties, under RichTextEdit, it shows Built-in TX Text Control ActiveX for 32-bit (which is what I build).

However, when the installed program starts, I get the error message in the Subject of this post, appearing within the RTE control. pbtctext.dll was a file from the TE Edit Control in PB2021 (though not one I was installing in that version - I was using TX!). I also deleted all of the PB 2021 RTE files from the install directory. And I rebooted and tried again, same result.

Any bright ideas?

Accepted Answer
Dan Cooperstock Accepted Answer Pending Moderation
  1. Tuesday, 3 September 2024 13:39 PM UTC
  2. PowerBuilder
  3. # Permalink

OK, problem solved (though I don't understand why).

I uninstalled the app, then re-ran the installer, and it's fine now. 

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 3 September 2024 19:59 PM UTC
That is great news Dan! I suspect that an older runtime DLL was the culprit. ;-)
  1. Helpful
  1. Dan Cooperstock
  2. Tuesday, 3 September 2024 20:14 PM UTC
That would make sense, Chris, except I had carefully checked what DLLs were present and it was only the new ones. And in fact the installer even purposely deleted the old ones from PB2021. But whatever, it's resolved.

Thanks, though!
  1. Helpful 1
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 2 September 2024 19:16 PM UTC
  2. PowerBuilder
  3. # 1

Hi Dan;

 In the PB 2023 R3 IDE, did you set the runtime to the latest build 3356 in the System Options dialogue? Also, did you do the same in the build project?

Regards ... Chris 

Comment
  1. Chris Pollach @Appeon
  2. Monday, 2 September 2024 21:18 PM UTC
Also, I would try using the PB Packager utility for the runtime folder deployment & then maybe sure the your <AppName>.XML file is pointing to that RT folder.
  1. Helpful
  1. Dan Cooperstock
  2. Tuesday, 3 September 2024 01:15 AM UTC
I really need to use my own installer because there's a lot of code in it doing specialized things. All the DLLs go into the same application folder with the EXE and PBDs etc.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 3 September 2024 01:35 AM UTC
Suggestion: use the PB Packager to install the runtime as a test. If that solves the problem, then compare the deployed DLLs there to your installer to see where the differences might be. Food for thought. HTH
  1. Helpful
There are no comments made yet.
Dan Cooperstock Accepted Answer Pending Moderation
  1. Monday, 2 September 2024 20:58 PM UTC
  2. PowerBuilder
  3. # 2

In case this is helpful, these are the RichText-related settings in the View Source of the application object:

richtexteditkey string = ""
richtextedittype long = 5
richtexteditversion long = 3
richtexteditx64type long = 5

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.