Wrox Programmer Forums
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 5th, 2006, 01:35 PM
Authorized User
 
Join Date: Sep 2003
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to prabodh_mishra
Default com object

Hi All,

I'm creating an object using createobject statement in word macro. The object, written in vb6, opens a form window. When I close the word it closes down the form window but it doesn't look like releiving the instance of that object. I've tried killing it by putting set nothing statement in AutoExit procedure but without result.

The noticeable thing is that with word 2000 the approach works perfectly but the movement we switch to office xp or 2003 it just holds it and after, say some 10 mts of closing the window, it releives it automatically.

My guess is that newer office components are doing some kind of pooling.
Any idea to come out of this messy situation will be greatly appreciated....

Thanks in advance
Prabodh

__________________
Prabodh
 
Old August 7th, 2006, 11:22 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Have you tried putting a method in the VB6 code that will run the End statement? Then you could call this method from Word, and the object would commit suicide (so to speak).





Similar Threads
Thread Thread Starter Forum Replies Last Post
object reference not set to instant of an object shahidrasul ASP.NET 2.0 Basics 1 September 5th, 2008 02:01 PM
Serializing Object Graph - Assigning Object to Jag venkat.kl C# 0 August 28th, 2006 10:39 AM
create a Line object ,Box object in CR at Runtime? thanhnt Pro VB 6 1 May 16th, 2005 06:51 AM
Error Occurred creating Report Object: Object does sa_moizatyahoo Classic ASP Professional 0 February 1st, 2005 10:29 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.