Re: using serialization to serialize my objects to hard drive
- From: "J" <jeremy.clough@xxxxxxxxx>
- Date: 29 Apr 2005 05:09:12 -0700
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.
.
- References:
- using serialization to serialize my objects to hard drive
- From: Alexandre (www.pointnetsolutions.com)
- Re: using serialization to serialize my objects to hard drive
- From: Alexandre (www.pointnetsolutions.com)
- Re: using serialization to serialize my objects to hard drive
- From: Rob
- Re: using serialization to serialize my objects to hard drive
- From: Alexandre (www.pointnetsolutions.com)
- using serialization to serialize my objects to hard drive
- Prev by Date: Re: using serialization to serialize my objects to hard drive
- Next by Date: Using C# COM object in UnManaged C++
- Previous by thread: Re: using serialization to serialize my objects to hard drive
- Next by thread: Array.Find<> example please
- Index(es):
Relevant Pages
|