Visual COBOL 2.1 .NET managed code application, EXIT PROGRAM is being ignored

0 Likes
over 8 years ago

Problem:

Customer has a .NET managed code application running under Visual COBOL 2.1 for Visual Studio 2010. At some points When debugging the application and an EXIT PROGRAM statement is encountered it appears to be ignored and the program just continues to run without exiting. Why is this occurring?

Resolution:

It has been determined that this is a bug in the compiler. In some cases when an EXIT PROGRAM statement is in a paragraph by itself the compiler would generate incorrect code which caused the statement to be ignored. This has been fixed in Visual COBOL 2.1 Update 1 hotfix 3.

As a workaround you could also add a CONTINUE statement to the paragraph prior to the EXIT PROGRAM and then the problem does not occur.

 

Comment List
Anonymous
Related Discussions
Recommended