Runtime Errors
The application might
not run correctly when you select Design > Run Project in the Project
painter, when you run the executable file in the deployment folder,
or when a user runs the installed application.
runs the executable file, PowerBuilder creates a file called PBTrace.log in
the same directory as the executable. This file can help you trace
runtime errors. It can be configured by editing the appname.exe.config file,
where appname is the name of the executable
file:
1 2 3 4 5 6 7 8 9 10 11 |
<appSettings> <!-- The value could be "enabled" or "disabled"--> <add key ="PBTrace" value ="enabled"/> <!-- The target can be File, EventLog or File|EventLog --> <add key ="PBTraceTarget" value="File"/> <!-- If the Target is File, PBTraceFileName should also be specified.--> <add key ="PBTraceFileName" value ="PBTrace.log"/> <!-- EventLogId is optional(0 is default), and it only works when EventLog is enabled--> <add key ="PBEventLogID" value ="1101"/> |
1 |
... |
-
If
the application cannot be launched from another computer, make sure the
required PowerBuilder runtime files, pbshr120.dll and pbdwm120.dll, and
the Microsoft runtime files on which they depend, at71.dll, msvcp71.dll,
and msvcr71.dll, are available on the other
computer and in the application�s path.If the executable file is located on a network path, the .NET
Framework must be configured to have Full Trust permissions at runtime.
See Setting Full Trust Permissions. -
If the application cannot connect to a database,
make sure that the required PowerBuilder database interface, such
as pbodb120.dll, has been added to the Win32
dynamic library files section of the Library Files tab page and that
the required client software is available on the target computer.
If the application uses a configuration file, such as myapp.ini,
select it on the Resource Files tab page. For ODBC connections,
make sure that the DSN file is created on the client. -
If no data displays in DataWindow objects, select
the PBLs that contain them on the Library Files tab page. -
If graphics fail to display, select them on the
Resource Files tab page.