1. Pepe Cuenca
  2. PowerBuilder
  3. Friday, 14 December 2018 08:31 AM UTC

Good Morning, 

I've migrated "successfully" an application from PB6 to PB2017. I've done some new windows and everything works OK with this. 

The problem comes when i Execute some old windows and it crashes all the app with an Unknown object type error. 

The thing is that when I run the app in the PB IDE, it works fine.

Do I have to do something else in the deployment?

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 14 December 2018 16:53 PM UTC
  2. PowerBuilder
  3. # 1

Hi Pepe;

  Since you are coming from a very old PB version, here are some things to consider ...

1) PB 6 was ANSI and PB2017 is Unicode, so check areas in your App that might be ANSI sensitive. For example, calling external DLL's or MS-Windows SDK functions.

2) If your using the PFC. Make sure that you download the PB2017 PFC version and replace your old one.

3) Some firing order changes for Events were introduced a few times ... PB8.0, PB12.0, PB12.5 for example. Recheck your logic on Open and Constructor events - even on ancestors. These events may now be firing earlier in the Instantiation sequence where other resources are not ready. Remember that this happens faster too in an EXE vs running from the IDE.

    A quick "litmus" test would be to run your EXE with the " /debug" option. This will slow down the App's execution and thus the event firing order / timing. If the App runs OK there (but slower of course) - then event firing order / timing could definitely be the issue.

HTH

Regards ... Chris

Comment
There are no comments made yet.
Sivaprakash BKR Accepted Answer Pending Moderation
  1. Friday, 14 December 2018 13:39 PM UTC
  2. PowerBuilder
  3. # 2

Try 

Optimize the library
Full Build 

Happiness Always
BKR Sivaprakash

 

Comment
  1. Pepe Cuenca
  2. Friday, 14 December 2018 14:13 PM UTC
I've done it now, with the same results.
  1. Helpful
There are no comments made yet.
David Peace (Powersoft) Accepted Answer Pending Moderation
  1. Friday, 14 December 2018 12:47 PM UTC
  2. PowerBuilder
  3. # 3

I think we will need some more information to give you any ideas.

How are you building the application?

Comment
  1. David Peace (Powersoft)
  2. Friday, 14 December 2018 16:15 PM UTC
ok, it must be something in the code.



What is in the open event of the window that does not work, including any inherited code?
  1. Helpful
  1. Pepe Cuenca
  2. Friday, 14 December 2018 16:39 PM UTC
Hi David, It's working now.

Ticked all the libraries and made a deploy before Full Build.

Everything is fine now.



Thank you very much for your help!!!!
  1. Helpful
  1. David Peace (Powersoft)
  2. Friday, 14 December 2018 17:00 PM UTC
That's great news. Any-time :)
  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.