HP OpenVMS Systemsask the wizard |
The Question is: I have a problem with a program where the main program is written in C++ and it calls code written in PL/I. I've narrowed the problem by having a C++ main program like this: int main() foo(); return 0; The procedure FOO is written in PL/I and looks like this: FOO: PROCEDURE; DECLARE I FIXED BINARY(31); DECLARE FD FILE; OPEN FILE(FD) TITLE('z.log') STREAM OUTPUT PRINT PAGESIZE(40); DO I=1 TO 400; PUT FILE(FD) SKIP LIST('FOO: World, Hello.', i); END; END FOO; When I run the program, I get an ENDPAGE exception and the program is terminated. If I write the whole program in PL/I, there is no problems at all, and the 'default' ENDPAGE handler is called when needed. It seems that the 'default' condition handlers disappears when using C++ as the language in the main program. Can you please help me here? It works fine on these platforms: HP-UX, Solaris, IBM AIX and Windows NT. Regards, /Thomas The Answer is :
|