A
Al Christoph
I have a console application in vb 2003. The essence of it is
dim xla as microsoft.office.interop.excell.application
function main(arg() as string) as integer
try
xla = new microsoft.office.interop.excell.application
' make a living doing this
catch ex as exception
' exception processing goes here
finally
xla.quit
xla = nothing ' can't hurt
end try
console.readline()
return 0
end
All is happy except for one thing. If i use the X on the console window to
terminate the application (a no - no I know), Excel continues to run. If I
quit by doing the readln() then Excel shuts down.
Why is this so????
What can I do to further goose Excel so that it ir really dead and buried by
the time the program gets to the readline?
Regards,
Al
dim xla as microsoft.office.interop.excell.application
function main(arg() as string) as integer
try
xla = new microsoft.office.interop.excell.application
' make a living doing this
catch ex as exception
' exception processing goes here
finally
xla.quit
xla = nothing ' can't hurt
end try
console.readline()
return 0
end
All is happy except for one thing. If i use the X on the console window to
terminate the application (a no - no I know), Excel continues to run. If I
quit by doing the readln() then Excel shuts down.
Why is this so????
What can I do to further goose Excel so that it ir really dead and buried by
the time the program gets to the readline?
Regards,
Al