Win7, Visual Studio 2013 Pro, version 12.0.40629.00 Update 5, .NET Framework version 4.5.51209, Visual COBOL version 2.2.
Here is a simple managed console app:
program-id. Program1 as "cblConTest1.Program1".
05 TEST-1 PIC X(10) VALUE " ABCDEFGHI".
01 WorkString string.
01 CharArray1 character occurs any.
01 CharArray2 character occurs any.
Set WorkString = TEST-1.
Set CharArray1 = WorkString::ToArray.
Set CharArray2 = TEST-1::ToArray.
end program Program1.
The above builds/compiles with no errors or warnings.
When the last statement executes:
1) in step-thru Debug mode, you get a "FatalExecutionEngineError was detected".
2) in "Start Without Debugging" mode, you get a Windows pop-up message that the app has stopped working and you are asked if you want to send more information about the problem [to Microsoft].
Solved! Go to Solution.
I tested this with the latest product 2.3.2 and the problem still occurs.
Please open up a support incident with Customer Care for this and we will submit it to Development as a bug.