Converted a PB 12.5 application to PB 2021 build 1506.
Conversion went fine. The program can be started with the IDE.
The exe that is created does not start. When the exe is started with /pbdebug the last lines in the file are:
Executing object function +CREATE for class N_CST_GNV_LANGUAGE, lib entry N_CST_GNV_LANGUAGE
Executing instruction at line 2
Executing object function +CREATE for class N_CST_GNV_BASIS, lib entry N_CST_GNV_BASIS
Executing instruction at line 2
Executing object function +CREATE for class NONVISUALOBJECT, lib entry _TYPEDEF
End object function +CREATE for class NONVISUALOBJECT, lib entry _TYPEDEF
Executing instruction at line 3
Executing object function TRIGGEREVENT for class N_CST_GNV_LANGUAGE, lib entry N_CST_GNV_LANGUAGE
Executing system dll function
Executing event +CONSTRUCTOR for class N_CST_GNV_LANGUAGE, lib entry N_CST_GNV_LANGUAGE
Executing instruction at line 1
Executing object function +CONSTRUCTOR for class N_CST_GNV_BASIS, lib entry N_CST_GNV_BASIS
End object function +CONSTRUCTOR for class N_CST_GNV_BASIS, lib entry N_CST_GNV_BASIS
Executing object function +CREATE for class DATASTORE, lib entry _TYPEDEF
Executing instruction at line 5089
Executing object function DATASTORECREATE for class DATASTORE, lib entry _TYPEDEF
Executing system dll function
End class function DATASTORECREATE for class DATASTORE, lib entry _TYPEDEF
Executing instruction at line 5090
End class function +CREATE for class DATASTORE, lib entry _TYPEDEF
Executing instruction at line 1
Executing instruction at line 2
I suppose the last two lines (executing instruction at line 1 / line 2) refer to the constructor event of N_CST_GNV_LANGUAGE. The two lines are:
ids_language = create datastore
ids_language.dataobject = 'dw_language'
What can we try to find out why the exe stops here?
You are completely correct that it fails on line: ids_language.dataobject = 'dw_language'
In the windows event I see:
Naam van toepassing met fout: xxx.exe, versie: 2022.1.0.0, tijdstempel: 0x61e55e53
Naam van module met fout: pbdwe.dll, versie: 21.0.0.1506, tijdstempel: 0x61e55fbf
Uitzonderingscode: 0xc0000005
Foutmarge: 0x000b0101
Id van proces met fout: 0x520c
Starttijd van toepassing met fout: 0x01d83942ba9a7bed
Pad naar toepassing met fout: C:\xxx\Program\xxx.exe
Pad naar module met fout: C:\Program Files (x86)\Appeon\Common\PowerBuilder\Runtime 21.0.0.1506\pbdwe.dll
Rapport-id: 6e133190-a291-434f-9aee-2178312f5be0
Volledige pakketnaam met fout:
Relatieve toepassings-id van pakket met fout:
Thanks for the help.