Migrated app from PB 12.5 to PB 2017 Build 1681 and the project crashes when being deployed.

1
0
-1

We recently upgraded from PB 12.5 Classic to PB 2017.

We currently have four applications.  Two are less than 10 MB in size and two are greater than 50 MB in size.

There is no problem when we deploy the project for either of the two smaller applications.

We are able to do a full build of the larger application without any errors from the System Tree.

When we try to deploy the project for either large application, the build crashes right after the temp file is initially created in the output folder.  We also tried the deployment using PBDs and the build crashed right after the PBDs were created.

Question Tags: 

Answers

Chris Pollach answered Migrated app from PB 12.5 to PB 2017 Build 1681 and the project crashes when being deployed.

1
0
-1

Hi Rodney;

  Can you tell us ...

  1. What MS-Windows version & build you are using?
  2. What DBMS are you connected to and using what client interface?
  3. Have you tried optimizing all your PBL's first?
  4. Do your Apps use any 3rd party software products?
  5. Do the App's run OK from the PB2017 IDE?
  6. After a full build, do your Apps have any warnings?

Regards ... Chris

rross_20562's picture

Chris,

We have tried both Windows 7 and Windows 10 with PB 2017 Build 1681.

We are connected to MS SQL Server using the Native Client Driver.

We have optimized the pbls before deployment attempt.

We currently don't use any 3rd party software.

Haven't fully tested all parts of the app, but they do appear to run fine in the IDE.

Warnings after full build:

 ---------- Compiler: Warnings   (12:30:04 PM)
mcobj.pbl(w_toolbar).w_toolbar.ue_ok.1: Warning     C0209: Function or event 'ue_ok' must be declared before it can be compiled.
mcobj.pbl(w_toolbar).w_toolbar.open.1: Warning     C0209: Function or event 'ue_ok' must be declared before it can be compiled.
mcobj.pbl(w_toolbar).w_toolbar.ue_cancel.1: Warning     C0209: Function or event 'ue_ok' must be declared before it can be compiled.
mcobj.pbl(w_toolbar).w_toolbar.ue_cancel.1: Warning     C0209: Function or event 'ue_cancel' must be declared before it can be compiled.
mcobj.pbl(w_toolbar).w_toolbar.create.1: Warning     C0209: Function or event 'ue_ok' must be declared before it can be compiled.
mcobj.pbl(w_toolbar).w_toolbar.create.1: Warning     C0209: Function or event 'ue_cancel' must be declared before it can be compiled.
mcobj.pbl(w_toolbar).w_toolbar.destroy.1: Warning     C0209: Function or event 'ue_ok' must be declared before it can be compiled.
mcobj.pbl(w_toolbar).w_toolbar.destroy.1: Warning     C0209: Function or event 'ue_cancel' must be declared before it can be compiled.
pfcobjs.pbl(n_cst_dwsrv_resize).27: Warning     C0190: Instance variables of local structure type ('os_resize') will be implicitly private in the next release.
pfcobjs.pbl(n_cst_resize).37: Warning     C0190: Instance variables of local structure type ('os_resize') will be implicitly private in the next release.

 

However, these two exact same pbls are in the two small applications that deploy their projects without crashing.

Rod

Chris Pollach's picture

Hi Rod;

  The C0190 warnings are OK to ignore while the C-2019 warnings are not. However, the only trouble you should get into is after the compile if the User Events are trying to be executed.

  Have you tried ...

  • Making sure that the main application folder and all sub -folders * files are not marked as "Read Only"
  • Running the IDE as ADMIN
  • Using a short TEMP path and with no spaces in it?

Regards ... Chris

miguel@credica.co.uk's picture

I think this happened to me in 12.6: If I remember well the (for example) ue_ok event declaration will be missing above in the exported code (where prototypes of functions and events should be). If you don't want to play around with that (they have to be declared in the order of appearance later on in the code), just define an ue_ok2 new event. Edit the source code, copy the ue_ok's code and paste that in ue_ok2. After that, delete everything you can find referencing ue_ok in the edited code, Save and rename the ue_ok2 to ue_ok.

Roland Smith answered Migrated app from PB 12.5 to PB 2017 Build 1681 and the project crashes when being deployed.

1
0
-1

Do you have any PBD files in the library list? They are not portable between versions so they will have to be recreated in

rross_20562's picture

The program currently doesn't use any pbds.

We did try to deploy using pbds, and it created the pbds and then crashed.

Rod

Roland Smith answered Migrated app from PB 12.5 to PB 2017 Build 1681 and the project crashes when being deployed.

1
0
-1

A friend of mine reported the same sort of issue and he tells me that the latest release fixed it even though the release docs don't mention it.

Try updating to the latest release and try it again.

 

rross_20562's picture

I tried it with the latest release available to me (PowerBuilder Cloud MR#1681 (SHA256)).

Is this the version that your friend is using?