Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The process cannot access the file
Message
 
To
30/09/2008 18:27:51
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01351711
Message ID:
01351951
Views:
17
>>Hi Paul,
>>
>>>Also, I'd suggest putting the Close() in a Finally section of a Try/Catch.
>>
>>Why do I get a "Use of unassigned local variable "stream" in the finally section.
>>

It's because of this line:

FileStream stream;

You haven't assigned anything to it, so the compiler is complaining about it (it doesn't try to determine if it's assigned further down).

Change it to:

FileStream stream = null;
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform