OpenTP1 Version 7 User's Guide

[Contents][Index][Back][Next]

3.3 Programming notes specific to OpenTP1 for Windows

This section presents information specific to OpenTP1 for Windows that we recommend you note before you begin programming.

Organization of this section
(1) Notes on stub creation
(2) Notes about UAP execution in a single-thread environment
(3) Notes about UAP termination
(4) Notes about using Visual Studio
(5) Notes about an environment that uses both Visual Studio and COBOL
(6) Notes about using Net Express

(1) Notes on stub creation

For the stub source file name that is specified in the stbmake command, make sure that you specify the suffix .def that indicates an RPC interface definition file.

Use the Shift JIS character encoding for the RPC interface definition file.

(2) Notes about UAP execution in a single-thread environment

When an OpenTP1 UAP is executed in a single-thread environment, it must not create threads other than the main thread. If the UAP creates a thread other than the main thread (multi-thread environment), it might malfunction and terminate abnormally. Note also that, because UAPs under OpenTP1 run in a multi-thread environment through use of a DLL, you must specify msvcrt.lib as a linked runtime library when you create a UAP.

If you use code such as JNI (Java Native Interface) that creates threads, program operation cannot be guaranteed.

(3) Notes about UAP termination

Do not issue a function or method that terminates a process or a thread within a service function (SPP) or service method (SPP.NET). Issuing such a function or method might result in the following:

(4) Notes about using Visual Studio

(5) Notes about an environment that uses both Visual Studio and COBOL

In an environment in which Visual Studio and COBOL are both used, make sure that the environment variables for the language used for compilation are specified before the environment variables for any other language. If the environment variables for another language are specified first, unexpected linkage might result.

(6) Notes about using Net Express