Re: using serialization to serialize my objects to hard drive

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You mention the use of threads, could one of your other threads be
attempting to read or write the file?

As for the using statement, I thought that implied a try/finally block
with a Dispose, but I could be mistaken.

Incidently, by re-throwing "e" in the save method you'll reset your
stack trace for the exception. You should either do away with the
try/catch, simply have the throw statement by itself to rethrow the
exception, or throw a new exception and pass in the caught one as the
inner exception.

J.

.



Relevant Pages

  • Re: Re-Throwing Exceptions
    ... that will rethrow the *outer* exception. ... exception and rethrow the inner exception? ... The TargetInvocationException should basically be ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Returning Errors in COM+ using Autocomplete
    ... I dont understand the last sentecen, How can i rethrow and throw a new ... exception, could you show me some code? ... Alfredo Barrientos ... Prev by Date: ...
    (microsoft.public.dotnet.framework.component_services)
  • Rethrowing an exception via JNI ?
    ... What's the proper way to rethrow an exception in JNI? ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: Rethrowing exceptions
    ... How can I rethrow the exception on the current thread while ... exception directly -- no need for an inner exception. ... to replace the stack trace with the original one? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Rethrowing exceptions
    ... "Coder Guy" wrote in message ... How can I rethrow the exception on the current thread while maintaining the stack trace? ... I would prefer to just rethrow the exception directly -- no need for an inner exception. ...
    (microsoft.public.dotnet.languages.csharp)