Ask a Question related to ASP.NET Web Services, Design and Development.
-
Mike #1
Disposed vs Finalize
Hi,
I am calling some unmanaged code from a WebService class and want to ensure
that the resources are released when the WebService class is disposed.
Should I put the cleanup code in the WebServices Disposed event or override
the Finalize method?
Thanks.
Mike Guest
-
Cannot access a disposed object named System.Net.TlsStream
Hello everybody i have the following code to access an application via https: ---------------------------------------------... -
Cannot access a disposed object named "System.Net.TlsStream"???
Hi, When I trying to do HTTP POST to HTTPS URL I am getting this error on first attempt: Cannot access a disposed object named... -
Martin Kulov #2
Re: Disposed vs Finalize
"Mike" <Mike@discussions.microsoft.com> wrote in message
news:C0DBA8D6-CA92-46B2-A77A-4BAE8CE95D85@microsoft.com...> Hi,
>
> I am calling some unmanaged code from a WebService class and want to
> ensure
> that the resources are released when the WebService class is disposed.
>
> Should I put the cleanup code in the WebServices Disposed event or
> override
> the Finalize method?
Hi Mike,
you should definitely use the Dispose method. This can be a long discussion
so please read something on Dispose pattern in .NET Framework.
Regards,
--
Martin Kulov
[url]http://www.codeattest.com/blogs/martin[/url]
MCAD Charter Member
MCSD.NET Early Achiever
MCSD
Martin Kulov Guest



Reply With Quote

