The latest snag in our COBOL <--> Excel saga.
All of a sudden, yesterday, I couldn’t execute RAW-STAFFCOMP.cbl. Error:
Execution error : file 'RAW-STAFFCOMP'
error code: 240, pc=0, call=1, seg=0
240 Object reference not valid
The error was at this statement: invoke WorkSheet "finalize" returning WorkSheet.
Thinking I might have somehow clobbered the program, I compiled an earlier version which had previously executed perfectly. Exactly the same error occurred.
Is there something I can tweak, maybe in the Project Properties? Or maybe I need to re-install Visual COBOL?
I would try rebooting before reinstalling but when you debug this is the Worksheet object a valid object reference that was instantiated and used earlier in the program? Have you maybe already finalized it?
The latest snag in our COBOL <--> Excel saga.
All of a sudden, yesterday, I couldn’t execute RAW-STAFFCOMP.cbl. Error:
Execution error : file 'RAW-STAFFCOMP'
error code: 240, pc=0, call=1, seg=0
240 Object reference not valid
The error was at this statement: invoke WorkSheet "finalize" returning WorkSheet.
Thinking I might have somehow clobbered the program, I compiled an earlier version which had previously executed perfectly. Exactly the same error occurred.
Is there something I can tweak, maybe in the Project Properties? Or maybe I need to re-install Visual COBOL?
Tried and checked out your alternatives. Nope. Must reinstall cobol. Two questions:
1. How do I do that? (I've got maintenance contract).
2. My existing cobol is in c:\\Program Files(x86)\\Micro Focus, in subfolders ..\\COBOL 2010 Runtime and ..\\Visual COBOL.
Will the reinstallation simply overwrite, or will I have to go through an uninstall first?
The latest snag in our COBOL <--> Excel saga.
All of a sudden, yesterday, I couldn’t execute RAW-STAFFCOMP.cbl. Error:
Execution error : file 'RAW-STAFFCOMP'
error code: 240, pc=0, call=1, seg=0
240 Object reference not valid
The error was at this statement: invoke WorkSheet "finalize" returning WorkSheet.
Thinking I might have somehow clobbered the program, I compiled an earlier version which had previously executed perfectly. Exactly the same error occurred.
Is there something I can tweak, maybe in the Project Properties? Or maybe I need to re-install Visual COBOL?
You should try to Repair the install before reinstalling as it does basically the same thing but you do not have to uninstall the product first. You can Repair it from Control Panel--> Program and Features.
I don't understand the subfolder structure that you are reporting. The COBOL 2010 Runtime product should be installed on a different production server than the development machine. Are you having this problem in development or in production?
BTW, the COBOL 2010 Runtime is an extremely old product and is no longer supported. Have you looked at upgrading to the latest version which is Visual COBOL 3.0?
The latest snag in our COBOL <--> Excel saga.
All of a sudden, yesterday, I couldn’t execute RAW-STAFFCOMP.cbl. Error:
Execution error : file 'RAW-STAFFCOMP'
error code: 240, pc=0, call=1, seg=0
240 Object reference not valid
The error was at this statement: invoke WorkSheet "finalize" returning WorkSheet.
Thinking I might have somehow clobbered the program, I compiled an earlier version which had previously executed perfectly. Exactly the same error occurred.
Is there something I can tweak, maybe in the Project Properties? Or maybe I need to re-install Visual COBOL?
I tried "Repair". Micro Focus COBOL for Visual Studio 2010 setup said "vcvs2010_22.exe not found. Installer error code 2202. Fatal Error."
I've got no "production server" or "development machine". Everything is on my personal PC in my home office.
With my maintenance license, can I upgrade to Visual COBOL 3.0 at no charge?
The latest snag in our COBOL <--> Excel saga.
All of a sudden, yesterday, I couldn’t execute RAW-STAFFCOMP.cbl. Error:
Execution error : file 'RAW-STAFFCOMP'
error code: 240, pc=0, call=1, seg=0
240 Object reference not valid
The error was at this statement: invoke WorkSheet "finalize" returning WorkSheet.
Thinking I might have somehow clobbered the program, I compiled an earlier version which had previously executed perfectly. Exactly the same error occurred.
Is there something I can tweak, maybe in the Project Properties? Or maybe I need to re-install Visual COBOL?
If you have both the Visual COBOL development and the COBOL 2010 Runtime installed on the same machine, then something is very wrong because you should not be able to install them both on the same machine.
You are most likely going to have a problem trying to uninstall the products too.
Yes, if you are on maintenance with us then you can upgrade to the current product level at anytime by simply downloading the latest products from our support site.
You can open up a support incident for the problem you are currently having also.
Thanks
The latest snag in our COBOL <--> Excel saga.
All of a sudden, yesterday, I couldn’t execute RAW-STAFFCOMP.cbl. Error:
Execution error : file 'RAW-STAFFCOMP'
error code: 240, pc=0, call=1, seg=0
240 Object reference not valid
The error was at this statement: invoke WorkSheet "finalize" returning WorkSheet.
Thinking I might have somehow clobbered the program, I compiled an earlier version which had previously executed perfectly. Exactly the same error occurred.
Is there something I can tweak, maybe in the Project Properties? Or maybe I need to re-install Visual COBOL?
In 2001 I switched from a Burroughs mainframe to Micro Focus, and ever since have simply been following <what I thought were> Micro Focus instructions.
Is there some kind soul there who could take over my machine (say, with Team Viewer) and get me set up right with all the current products? My eyes glaze over at the thought of trying to do it myself.
The latest snag in our COBOL <--> Excel saga.
All of a sudden, yesterday, I couldn’t execute RAW-STAFFCOMP.cbl. Error:
Execution error : file 'RAW-STAFFCOMP'
error code: 240, pc=0, call=1, seg=0
240 Object reference not valid
The error was at this statement: invoke WorkSheet "finalize" returning WorkSheet.
Thinking I might have somehow clobbered the program, I compiled an earlier version which had previously executed perfectly. Exactly the same error occurred.
Is there something I can tweak, maybe in the Project Properties? Or maybe I need to re-install Visual COBOL?
Open up a support incident and we will assign somebody to your cause.
Thanks
The latest snag in our COBOL <--> Excel saga.
All of a sudden, yesterday, I couldn’t execute RAW-STAFFCOMP.cbl. Error:
Execution error : file 'RAW-STAFFCOMP'
error code: 240, pc=0, call=1, seg=0
240 Object reference not valid
The error was at this statement: invoke WorkSheet "finalize" returning WorkSheet.
Thinking I might have somehow clobbered the program, I compiled an earlier version which had previously executed perfectly. Exactly the same error occurred.
Is there something I can tweak, maybe in the Project Properties? Or maybe I need to re-install Visual COBOL?
Clicked on support to open an incident and saw this:
Welcome to SupportLine, Timothy Carr.
The maintenance for the following serial numbers registered to your id has expired or will expire in the next 30 days.
Serial Number Product Expires on
110000236769 Net Express version 3.0 2003-10-11
600000450696 Visual COBOL for Visual Studio version 2.0 2012-08-15
Please contact SupportLine Sales to renew your Support Agreement
Chris, I paid $4,157.59 on August 23rd, 2017 for ongoing maintenance and support.
$3,779.17 in June 2016
$3,872.07 in July 2015
and so on, all the way back to 2001.
Lordy, lordy. So, how can I open a support incident?
The latest snag in our COBOL <--> Excel saga.
All of a sudden, yesterday, I couldn’t execute RAW-STAFFCOMP.cbl. Error:
Execution error : file 'RAW-STAFFCOMP'
error code: 240, pc=0, call=1, seg=0
240 Object reference not valid
The error was at this statement: invoke WorkSheet "finalize" returning WorkSheet.
Thinking I might have somehow clobbered the program, I compiled an earlier version which had previously executed perfectly. Exactly the same error occurred.
Is there something I can tweak, maybe in the Project Properties? Or maybe I need to re-install Visual COBOL?
Please don't post details like this to the community site.
Those serial numbers have expired but they have been replaced by new ones that are under maintenance.
I will open up an incident for you and assign it to an engineer.
You will receive an email with the incident details.