Skip to main content

[Migrated content. Thread originally posted on 29 November 2011]

Hi

My application is an Cobol EXE calling many entry procedure
of an external Cobol DLL, when running in the IDE (animate)
works well. Outside the IDE fails when repeatedly calls the same
entry procedure, approximately 30 or more times.
Cobol reports:

Execution error: file 'gadget'
error code 114, pc=0, call=1, seg=0
114 Attempt to access item beyond bouns of memory (Signal 11)


And mfdebug.log

NetExpress Exception Handler - 29/11/2011 17:00:06

C:\\PfCont\\PF901M.exe caused an exception at address : 0x58C44784
Exception type - EXCEPTION_ACCESS_VIOLATION on Read. Address 0x0409B000

Registers:

EAX 0409AFFF EBX 001625D8
ECX 000002A3 EDX 024E8D01
DS 0023 ESI 0409AFF8
ES 0023 EDI 00000008
FS 003B GS 0000
CS 001B EIP 58C44784
SS 0023 ESP 0012DD70 EBP 0012DDD0
Flags 00010246

Error occurred in : C:\\WINDOWS\\system32\\comctl32.dll, loaded at 0x58C30000

CompanyName Microsoft Corporation
FileDescription Common Controls Library
FileVersion 5.82 (xpsp.080413-2105)
LegalCopyright © Microsoft Corporation. All rights reserved.
OriginalFileName COMCTL32.DLL
ProductName Microsoft® Windows® Operating System
ProductVersion 6.00.2900.5512

COBOL call stack:

gadget (obj program)
awindow (obj program)
win32api (obj program)
toolbar (obj program)
tbbutton (obj program)
toolbar (obj program)
guibase (obj program)
awindow (obj program)
awindow (obj program)
PFLIB (obj program)
PfBusLib (obj program)
PfBusLib (obj program)
PF252C (obj program)
PF901M (obj program)

Run-time : C:\\PfCont\\cblrtss.dll, loaded at 0x60080000

CompanyName MERANT International Limited
FileDescription Micro Focus 32-bit RTS
FileVersion 3.724, 3.504
LegalCopyright Copyright (C) 1984-2000 MERANT International Ltd.
OriginalFileName cblrtss.dll
ProductName Micro Focus Net Express
ProductVersion 3.0.14
SpecialBuild RTS Websync 1.0.007

OS Information:

Windows NT 5.1 (Build 2600: Service Pack 3)

CPU: Intel Pentium Model 28 step 10, 4 processors
Available memory - 2087020 KB

I would appreciate indicate Which is why this error.

Thanks in advance
Pedro Frongillo.

[Migrated content. Thread originally posted on 29 November 2011]

Hi

My application is an Cobol EXE calling many entry procedure
of an external Cobol DLL, when running in the IDE (animate)
works well. Outside the IDE fails when repeatedly calls the same
entry procedure, approximately 30 or more times.
Cobol reports:

Execution error: file 'gadget'
error code 114, pc=0, call=1, seg=0
114 Attempt to access item beyond bouns of memory (Signal 11)


And mfdebug.log

NetExpress Exception Handler - 29/11/2011 17:00:06

C:\\PfCont\\PF901M.exe caused an exception at address : 0x58C44784
Exception type - EXCEPTION_ACCESS_VIOLATION on Read. Address 0x0409B000

Registers:

EAX 0409AFFF EBX 001625D8
ECX 000002A3 EDX 024E8D01
DS 0023 ESI 0409AFF8
ES 0023 EDI 00000008
FS 003B GS 0000
CS 001B EIP 58C44784
SS 0023 ESP 0012DD70 EBP 0012DDD0
Flags 00010246

Error occurred in : C:\\WINDOWS\\system32\\comctl32.dll, loaded at 0x58C30000

CompanyName Microsoft Corporation
FileDescription Common Controls Library
FileVersion 5.82 (xpsp.080413-2105)
LegalCopyright © Microsoft Corporation. All rights reserved.
OriginalFileName COMCTL32.DLL
ProductName Microsoft® Windows® Operating System
ProductVersion 6.00.2900.5512

COBOL call stack:

gadget (obj program)
awindow (obj program)
win32api (obj program)
toolbar (obj program)
tbbutton (obj program)
toolbar (obj program)
guibase (obj program)
awindow (obj program)
awindow (obj program)
PFLIB (obj program)
PfBusLib (obj program)
PfBusLib (obj program)
PF252C (obj program)
PF901M (obj program)

Run-time : C:\\PfCont\\cblrtss.dll, loaded at 0x60080000

CompanyName MERANT International Limited
FileDescription Micro Focus 32-bit RTS
FileVersion 3.724, 3.504
LegalCopyright Copyright (C) 1984-2000 MERANT International Ltd.
OriginalFileName cblrtss.dll
ProductName Micro Focus Net Express
ProductVersion 3.0.14
SpecialBuild RTS Websync 1.0.007

OS Information:

Windows NT 5.1 (Build 2600: Service Pack 3)

CPU: Intel Pentium Model 28 step 10, 4 processors
Available memory - 2087020 KB

I would appreciate indicate Which is why this error.

Thanks in advance
Pedro Frongillo.

You are using a very old version of Net Express which is 3.0 and this product hasn't been supported in 10 years so there is really no telling what is causing the error to occur.

When you animate the program and it works OK are you animating the same .EXE that you are running in production or are you animating the .int version instead?

Is the run-time version that you are running in production the same as the version of Net Express that you are compiling with?

Does this error occur if you run the .EXE on the same development machine on which Net Express is installed?

My recommendation would be to upgrade to a newer version of Net Express which is still supported, i.e. Net Express 5.1.

[Migrated content. Thread originally posted on 29 November 2011]

Hi

My application is an Cobol EXE calling many entry procedure
of an external Cobol DLL, when running in the IDE (animate)
works well. Outside the IDE fails when repeatedly calls the same
entry procedure, approximately 30 or more times.
Cobol reports:

Execution error: file 'gadget'
error code 114, pc=0, call=1, seg=0
114 Attempt to access item beyond bouns of memory (Signal 11)


And mfdebug.log

NetExpress Exception Handler - 29/11/2011 17:00:06

C:\\PfCont\\PF901M.exe caused an exception at address : 0x58C44784
Exception type - EXCEPTION_ACCESS_VIOLATION on Read. Address 0x0409B000

Registers:

EAX 0409AFFF EBX 001625D8
ECX 000002A3 EDX 024E8D01
DS 0023 ESI 0409AFF8
ES 0023 EDI 00000008
FS 003B GS 0000
CS 001B EIP 58C44784
SS 0023 ESP 0012DD70 EBP 0012DDD0
Flags 00010246

Error occurred in : C:\\WINDOWS\\system32\\comctl32.dll, loaded at 0x58C30000

CompanyName Microsoft Corporation
FileDescription Common Controls Library
FileVersion 5.82 (xpsp.080413-2105)
LegalCopyright © Microsoft Corporation. All rights reserved.
OriginalFileName COMCTL32.DLL
ProductName Microsoft® Windows® Operating System
ProductVersion 6.00.2900.5512

COBOL call stack:

gadget (obj program)
awindow (obj program)
win32api (obj program)
toolbar (obj program)
tbbutton (obj program)
toolbar (obj program)
guibase (obj program)
awindow (obj program)
awindow (obj program)
PFLIB (obj program)
PfBusLib (obj program)
PfBusLib (obj program)
PF252C (obj program)
PF901M (obj program)

Run-time : C:\\PfCont\\cblrtss.dll, loaded at 0x60080000

CompanyName MERANT International Limited
FileDescription Micro Focus 32-bit RTS
FileVersion 3.724, 3.504
LegalCopyright Copyright (C) 1984-2000 MERANT International Ltd.
OriginalFileName cblrtss.dll
ProductName Micro Focus Net Express
ProductVersion 3.0.14
SpecialBuild RTS Websync 1.0.007

OS Information:

Windows NT 5.1 (Build 2600: Service Pack 3)

CPU: Intel Pentium Model 28 step 10, 4 processors
Available memory - 2087020 KB

I would appreciate indicate Which is why this error.

Thanks in advance
Pedro Frongillo.

Hi Chris - thanks for replying.
This is an old application which modify the visual appearance.

When you animate the program and it works OK are you animating the same .EXE that you are running in production or are you animating the .int version instead?

I am animating the same .EXE
Is the run-time version that you are running in production the same as the version of Net Express that you are compiling with?

Yes
Does this error occur if you run the .EXE on the same development machine on which Net Express is installed?

On the same development machine and on which Net Express is installed.

I managed to isolate the fault, this occurs when repeatedly call an Entry of an DLL
........
invoke buttonImageList "addDefaultMaskedBitmap" using aBitmap
returning wsIndex
......
and
invoke bToolBar "setImageList" using buttonImageList

Thanks and Regards.
Pedro Frongillo.



[Migrated content. Thread originally posted on 29 November 2011]

Hi

My application is an Cobol EXE calling many entry procedure
of an external Cobol DLL, when running in the IDE (animate)
works well. Outside the IDE fails when repeatedly calls the same
entry procedure, approximately 30 or more times.
Cobol reports:

Execution error: file 'gadget'
error code 114, pc=0, call=1, seg=0
114 Attempt to access item beyond bouns of memory (Signal 11)


And mfdebug.log

NetExpress Exception Handler - 29/11/2011 17:00:06

C:\\PfCont\\PF901M.exe caused an exception at address : 0x58C44784
Exception type - EXCEPTION_ACCESS_VIOLATION on Read. Address 0x0409B000

Registers:

EAX 0409AFFF EBX 001625D8
ECX 000002A3 EDX 024E8D01
DS 0023 ESI 0409AFF8
ES 0023 EDI 00000008
FS 003B GS 0000
CS 001B EIP 58C44784
SS 0023 ESP 0012DD70 EBP 0012DDD0
Flags 00010246

Error occurred in : C:\\WINDOWS\\system32\\comctl32.dll, loaded at 0x58C30000

CompanyName Microsoft Corporation
FileDescription Common Controls Library
FileVersion 5.82 (xpsp.080413-2105)
LegalCopyright © Microsoft Corporation. All rights reserved.
OriginalFileName COMCTL32.DLL
ProductName Microsoft® Windows® Operating System
ProductVersion 6.00.2900.5512

COBOL call stack:

gadget (obj program)
awindow (obj program)
win32api (obj program)
toolbar (obj program)
tbbutton (obj program)
toolbar (obj program)
guibase (obj program)
awindow (obj program)
awindow (obj program)
PFLIB (obj program)
PfBusLib (obj program)
PfBusLib (obj program)
PF252C (obj program)
PF901M (obj program)

Run-time : C:\\PfCont\\cblrtss.dll, loaded at 0x60080000

CompanyName MERANT International Limited
FileDescription Micro Focus 32-bit RTS
FileVersion 3.724, 3.504
LegalCopyright Copyright (C) 1984-2000 MERANT International Ltd.
OriginalFileName cblrtss.dll
ProductName Micro Focus Net Express
ProductVersion 3.0.14
SpecialBuild RTS Websync 1.0.007

OS Information:

Windows NT 5.1 (Build 2600: Service Pack 3)

CPU: Intel Pentium Model 28 step 10, 4 processors
Available memory - 2087020 KB

I would appreciate indicate Which is why this error.

Thanks in advance
Pedro Frongillo.

The code looks OK and I am assuming that this is in a control program for a Toolbar control.

Sounds like perhaps there is a memory leak somewhere.

Are you finalizing the bitmap objects when you are done with them?

INVOKE aBitmap "finalize" RETURNING aBitmap



[Migrated content. Thread originally posted on 29 November 2011]

Hi

My application is an Cobol EXE calling many entry procedure
of an external Cobol DLL, when running in the IDE (animate)
works well. Outside the IDE fails when repeatedly calls the same
entry procedure, approximately 30 or more times.
Cobol reports:

Execution error: file 'gadget'
error code 114, pc=0, call=1, seg=0
114 Attempt to access item beyond bouns of memory (Signal 11)


And mfdebug.log

NetExpress Exception Handler - 29/11/2011 17:00:06

C:\\PfCont\\PF901M.exe caused an exception at address : 0x58C44784
Exception type - EXCEPTION_ACCESS_VIOLATION on Read. Address 0x0409B000

Registers:

EAX 0409AFFF EBX 001625D8
ECX 000002A3 EDX 024E8D01
DS 0023 ESI 0409AFF8
ES 0023 EDI 00000008
FS 003B GS 0000
CS 001B EIP 58C44784
SS 0023 ESP 0012DD70 EBP 0012DDD0
Flags 00010246

Error occurred in : C:\\WINDOWS\\system32\\comctl32.dll, loaded at 0x58C30000

CompanyName Microsoft Corporation
FileDescription Common Controls Library
FileVersion 5.82 (xpsp.080413-2105)
LegalCopyright © Microsoft Corporation. All rights reserved.
OriginalFileName COMCTL32.DLL
ProductName Microsoft® Windows® Operating System
ProductVersion 6.00.2900.5512

COBOL call stack:

gadget (obj program)
awindow (obj program)
win32api (obj program)
toolbar (obj program)
tbbutton (obj program)
toolbar (obj program)
guibase (obj program)
awindow (obj program)
awindow (obj program)
PFLIB (obj program)
PfBusLib (obj program)
PfBusLib (obj program)
PF252C (obj program)
PF901M (obj program)

Run-time : C:\\PfCont\\cblrtss.dll, loaded at 0x60080000

CompanyName MERANT International Limited
FileDescription Micro Focus 32-bit RTS
FileVersion 3.724, 3.504
LegalCopyright Copyright (C) 1984-2000 MERANT International Ltd.
OriginalFileName cblrtss.dll
ProductName Micro Focus Net Express
ProductVersion 3.0.14
SpecialBuild RTS Websync 1.0.007

OS Information:

Windows NT 5.1 (Build 2600: Service Pack 3)

CPU: Intel Pentium Model 28 step 10, 4 processors
Available memory - 2087020 KB

I would appreciate indicate Which is why this error.

Thanks in advance
Pedro Frongillo.

Hi Chris,
Are you finalizing the bitmap objects when you are done with them?
Yes.

I finally got the error does not occur. This toolbar creates buttons with labels,

invoke bReference(wsIndex) "setLabelZ" using bLabel(wsIndex)

Not putting labels work well.

The strange thing is that by Animate in the IDE, this error does not occur.

I am very grateful for your cooperation and quick response.

Pedro Frongillo.