WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Errors

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

3130 OleTerminate Bad Ole Channel

Keywords: 3130 Bad Ole Channel

Question:

The error is 'Ole terminate: bad Ole channel'. It occurs on the 'Doc.Open' line. All attempts to get this to work have failed. I have tried loading Visual C 5.0 via this script and have tried it on 3 different machines. Same result on each.

Here is my code:

VC50 = ObjectOpen("MSDev.Application")
VC50.Visible = 1
Doc = VC50.Documents
Doc.Open("c:\Source\DevTool\example.dsw",,);visual c workpace file
ObjectClose(VC50)
Exit

Answer:

The problem is caused by WinBatch trying to handle a lot of the clean up for the user, if the line is not set to a variable. If you set a "junk" variable to this line WinBatch assumes the value should be saved for later use, and does not attempt to terminate the channel.

Try the following example (with variable set to the Doc.Open line):

VC50 = ObjectOpen("MSDev.Application")
VC50.Visible = 1
Doc = VC50.Documents
xxx=Doc.Open("c:\Source\DevTool\example.dsw",,);visual c workpace file
ObjectClose(VC50)
Exit

Article ID:   W13660
Filename:   3130 OleTerminate Bad Ole Channel.txt
File Created: 2001:01:22:15:08:50
Last Updated: 2001:01:22:15:08:50