CSPRO crashes Exception Code c0000005
Posted: June 26th, 2021, 11:39 pm
Dear CSPRO users,
I have an entry applicaton and CSPRO is crashing with the Exception Code c0000005. This is the report of the crash:
Problem signature:
Problem Event Name: BEX
Application Name: CSEntry.exe
Application Version: 7.5.0.0
Application Timestamp: 5fdfd142
Fault Module Name: StackHash_0a9e
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 00000000
Exception Offset: a0458365
Exception Code: c0000005
Exception Data: 00000008
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 5130
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
I tested it with CSPRO 7.5 and 7.6 with the same results. After a review of the logic, I think is something related with the setfile or close of an external data inside a while loop. My application is long, so I decided to write a very small application just to reproduce the problem. This is the test application:
PROC GLOBAL
PROC APP1DICT_FF
PROC DATA0
while $ > 0 do
setfile(EXTERNAL_DICT, "DATATEST.DAT");
if loadcase(EXTERNAL_DICT,$) then
errmsg("Case found %s",data00);
delcase(EXTERNAL_DICT);
else
errmsg("Case does not exist");
endif;
close(EXTERNAL_DICT);
reenter;
enddo;
I am attaching this test applicaton for review.
Kind regards
Harry Hernandez
I have an entry applicaton and CSPRO is crashing with the Exception Code c0000005. This is the report of the crash:
Problem signature:
Problem Event Name: BEX
Application Name: CSEntry.exe
Application Version: 7.5.0.0
Application Timestamp: 5fdfd142
Fault Module Name: StackHash_0a9e
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 00000000
Exception Offset: a0458365
Exception Code: c0000005
Exception Data: 00000008
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 5130
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
I tested it with CSPRO 7.5 and 7.6 with the same results. After a review of the logic, I think is something related with the setfile or close of an external data inside a while loop. My application is long, so I decided to write a very small application just to reproduce the problem. This is the test application:
PROC GLOBAL
PROC APP1DICT_FF
PROC DATA0
while $ > 0 do
setfile(EXTERNAL_DICT, "DATATEST.DAT");
if loadcase(EXTERNAL_DICT,$) then
errmsg("Case found %s",data00);
delcase(EXTERNAL_DICT);
else
errmsg("Case does not exist");
endif;
close(EXTERNAL_DICT);
reenter;
enddo;
I am attaching this test applicaton for review.
Kind regards
Harry Hernandez