Subject: com object
Posted By: prabodh_mishra Post Date: 8/5/2006 1:35:37 PM
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

Reply By: BrianWren Reply Date: 8/7/2006 11:22:27 AM
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).

Go to topic 48063

Return to index page 469
Return to index page 468
Return to index page 467
Return to index page 466
Return to index page 465
Return to index page 464
Return to index page 463
Return to index page 462
Return to index page 461
Return to index page 460