GeoMedia Discussions

Search for an answer, post a question, or answer other users' questions in our GeoMedia support discussions. This discussion board is a great way to collaborate with industry peers around the world. It is intended for discussion and support of the GeoMedia Desktop and Add-on applications.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Occasional Contributor
Posts: 18
Registered: ‎11-03-2016

Decrease OriginatingPipe count

Hi!

Can somebody tell me, how to reduce the OriginatingPipe count of a connection?
I want to close a connection, but it's OriginatingPipeCount is 2.

I have to close all the Grecordsets connecting to this Pipe, or what?
Thanks!

Chris

Technical Evangelist
Posts: 535
Registered: ‎09-11-2015

Re: Decrease OriginatingPipe count

You should also release all references to that pipe object. In .NET it means using Marshal.ReleaseComObject method.

Occasional Contributor
Posts: 18
Registered: ‎11-03-2016

Re: Decrease OriginatingPipe count

Thank You, pkrejcir,

but could You be more specific? With a little example maybe? :$
I tested my custom command, it used 4 originatingpipe, but when i check the pipecount, it says 2...
What operations make originatingpipes to a connection?

The Disconnect method (in Help) warn me about pipecount, but doesn't say anything about reducing them...

Technical Evangelist
Posts: 535
Registered: ‎09-11-2015

Re: Decrease OriginatingPipe count

Hi Chris,

 

it is difficult to give more details without seeing the source code, gws etc. The problem is that there are many pleces where a pipe can be referenced, for example Legend, Data Window, Query folders etc.

 

Pavel