If Runtime.InteropServices.Marshal.IsComObject(xxx) Then
System.Runtime.InteropServices.Marshal.ReleaseComObject(xxx)

On Mon, 1 Nov 2004 21:49:52 +0100
 "Clemens F. Vasters" <[EMAIL PROTECTED]> wrote:
> Do you have Just In Time Activation enabled? If not, do
> you Dispose()
> from the client?
>
>
> > -----Original Message-----
> > From: Unmoderated discussion of advanced .NET topics.
> [mailto:ADVANCED-
> > [EMAIL PROTECTED] On Behalf Of Ken Benoit
> > Sent: Monday, November 01, 2004 8:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: [ADVANCED-DOTNET] COM+ Instance Count Does Not
> Decrease When
> > Called from .NET Application
> >
> > I have a VB.NET Serviced Component running in COM+ that
> creates a
> > PowerPoint Application object, several slides and then
> saves the
> > Presentation to disk. From within the same VB.NET
> serviced component I
> > then open the saved Presentation to a FileStream object
> and read the
> > contents with a BinaryReader into a Byte array to be
> shipped over the
> wire
> > (function result  Public Function GetPPTPresentation()
> As Byte()
> > Implements IRemotePowerPoint.GetPPTPresentation). I
> then exported the
> COM+
> > package as an application proxy to be installed on a
> separate server.
> I
> > can get the calling server to call into the .NET
> Serviced component
> and
> > receive the Presentation no problem. I can even get
> PowerPoint to
> shutdown
> > but the problem I am having is that the COM+ Instance
> Count Does Not
> > Decrease When Called from .NET Application. FYI it is
> an ASP.NET
> (VB.NET
> > code behind) client calling a VB.NET serviced
> component. Can provide
> the
> > code if necessary!
> >
> > ===================================
> > This list is hosted by DevelopMentor(r)
>  http://www.develop.com
> > Some .NET courses you may be interested in:
> >
> > Essential .NET: building applications and components
> with C#
> > November 29 - December 3, in Los Angeles
> > http://www.develop.com/courses/edotnet
> >
> > View archives and manage your subscription(s) at
> > http://discuss.develop.com
>
> ===================================
> This list is hosted by DevelopMentor®
>  http://www.develop.com
> Some .NET courses you may be interested in:
>
> Essential .NET: building applications and components with
> C#
> November 29 - December 3, in Los Angeles
> http://www.develop.com/courses/edotnet
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com

---------------------------------------------------------------------
Web mail provided by NuNet, Inc. The Premier National provider.
http://www.nni.com/

===================================
This list is hosted by DevelopMentor®  http://www.develop.com
Some .NET courses you may be interested in:

Essential .NET: building applications and components with C#
November 29 - December 3, in Los Angeles
http://www.develop.com/courses/edotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to