Login  
Search All Forums
Dart Home | PowerTCP Emulation for .NET | Custom Development Reply | PowerTCP Emulation for .NET Topics | Forums   
AuthorForum: PowerTCP Emulation for .NET
Topic: Delay during dispose of Vt
kwschantz

From: Summerland, CA USA
Posts: 4
Member Since: 02/11/06
posted February 23, 2006 12:04 PM

I'm encountering a significant delay when I dispose the Dart.PowerTCP.Emulation.Vt object. On the LAN it's about 2 secs, when I use VPN it has gone as high as 29 sec. I close any network connection prior to calling the dispose, but this seems to be network related. Any ideas?

protected override void Dispose( bool disposing )
{
if( disposing )
{
_connection.DataAvailable -= new DataAvailableEventHandler(OnDataAvailable);
if ( _connection.Connected ) _connection.Disconnect();

if ( _term != null )
{
// delay caused when calling dispose, call on a non ui thread
DateTime start = DateTime.Now;
_term.Dispose();
DateTime stop = DateTime.Now;
Console.WriteLine("Termin dispose elapsed time = {0}",new TimeSpan(stop.Ticks - start.Ticks).ToString());
_term = null;
}

if(components != null)
{
components.Dispose();
}

}

base.Dispose( disposing );
}
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted February 24, 2006 4:11 PM

It's unclear to me exactly what is going on in your sample code. Please create a very simple demo app that duplicates the problem, then zip it up and email it to support@dart.com so that I can take a look.

macguisupport

From: Villach, Austria
Posts: 12
Member Since: 12/15/05
posted September 13, 2006 10:17 AM

I'm experiencing a similar behavior. On one of my computers (W2K SP4), when closing the Telnet Client sample application (either Internal or External), without even connecting to a host, it takes a significant amount of time to close the application and terminate the executable (sometimes up to 8 minutes). The system is pretty much idling during this time (0% CPU usage, no I/O).

Any idea what the cause could be - kind of sounds like a dispose problem, too.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted September 13, 2006 2:56 PM

No one was ever able to determine the root cause or produce a way for us to duplicate the problem. However kwschantz responded to the notification email stating the following:

"I never determined the root cause, but the workaround (kludge) that I used to eliminate the problem was to create a static instance of a terminal that I never used and was never disposed.

private static Dart.PowerTCP.Emulation.Vt _phantomTerminal = new Dart.PowerTCP.Emulation.Vt();"

kwschantz: If you have further details, please reply on the forum instead of replying to the email that notifies you. Thanks!
Reply | PowerTCP Emulation for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX