Click here to Skip to main content
16,007,126 members
Home / Discussions / C#
   

C#

 
AnswerRe: A property or indexer may not be passed as an out or ref parameter Pin
Pete O'Hanlon22-Jun-07 9:11
mvePete O'Hanlon22-Jun-07 9:11 
QuestionFileStreams Pin
RussBus22-Jun-07 5:08
RussBus22-Jun-07 5:08 
AnswerRe: FileStreams Pin
RussBus22-Jun-07 5:14
RussBus22-Jun-07 5:14 
GeneralRe: FileStreams Pin
Luc Pattyn22-Jun-07 5:28
sitebuilderLuc Pattyn22-Jun-07 5:28 
GeneralRe: FileStreams Pin
RussBus22-Jun-07 5:36
RussBus22-Jun-07 5:36 
GeneralRe: FileStreams Pin
Luc Pattyn22-Jun-07 5:38
sitebuilderLuc Pattyn22-Jun-07 5:38 
GeneralRe: FileStreams Pin
RussBus22-Jun-07 5:41
RussBus22-Jun-07 5:41 
GeneralRe: FileStreams Pin
Luc Pattyn22-Jun-07 6:53
sitebuilderLuc Pattyn22-Jun-07 6:53 
These are some of the questions that need answered in order to debug:

What is ZipFile ?
if your class, show code; at the least the constructor, the Close method and any methods they may call. Provide proof that Close run up to its end.
if ZipFile is not your class, where did you get it ?

Does the problem exist outside your app:
- can you rename the file with Windows Explorer ?
- Can you delete the file ?

Try another file name. Does it work the first time ? and the second time ?

Any chance your previous EXE is still running (e.g. because one of the threads
is still running while not declared a background thread) ?

Any chance your app has another stream open on the same file ?

Why do you use FileMode.Open instead of Create ??
And why FileAccess.ReadWrite ? are you first reading then writing (hence
multiple streams...) ?? if so did you close all streams before closing the file ?

And why FileShare.ReadWrite ???? I must strongly advice against it. If you do
not absolutely need this, use None !

Smile | :)


GeneralRe: FileStreams Pin
Scott Dorman22-Jun-07 7:17
professionalScott Dorman22-Jun-07 7:17 
AnswerRe: FileStreams Pin
Scott Dorman22-Jun-07 7:19
professionalScott Dorman22-Jun-07 7:19 
QuestionDatabase Architecture:Record Locking Pin
xbiplav22-Jun-07 5:05
xbiplav22-Jun-07 5:05 
AnswerRe: Database Architecture:Record Locking Pin
originSH22-Jun-07 5:14
originSH22-Jun-07 5:14 
QuestionI would like to have an extra algorithm about slide puzzle game [modified] Pin
john84vn22-Jun-07 4:45
john84vn22-Jun-07 4:45 
QuestionRead entire data in data base table Pin
kaushal65422-Jun-07 3:04
kaushal65422-Jun-07 3:04 
AnswerRe: Read entire data in data base table Pin
Colin Angus Mackay22-Jun-07 3:11
Colin Angus Mackay22-Jun-07 3:11 
AnswerI thought this was "so urgent" Pin
Colin Angus Mackay22-Jun-07 4:21
Colin Angus Mackay22-Jun-07 4:21 
GeneralRe: I thought this was "so urgent" Pin
Pete O'Hanlon22-Jun-07 9:14
mvePete O'Hanlon22-Jun-07 9:14 
GeneralRe: I thought this was "so urgent" Pin
Martin#22-Jun-07 9:18
Martin#22-Jun-07 9:18 
GeneralRe: I thought this was "so urgent" Pin
Not Active22-Jun-07 9:28
mentorNot Active22-Jun-07 9:28 
GeneralRe: I thought this was "so urgent" Pin
Pete O'Hanlon22-Jun-07 9:31
mvePete O'Hanlon22-Jun-07 9:31 
GeneralRe: I thought this was "so urgent" Pin
Colin Angus Mackay22-Jun-07 9:37
Colin Angus Mackay22-Jun-07 9:37 
GeneralRe: I thought this was "so urgent" Pin
Pete O'Hanlon22-Jun-07 9:44
mvePete O'Hanlon22-Jun-07 9:44 
Questiondrag and dropdown on a datagrid Pin
topcatalpha22-Jun-07 2:57
topcatalpha22-Jun-07 2:57 
QuestionXmlDataSource Pin
razanabanu22-Jun-07 2:23
razanabanu22-Jun-07 2:23 
AnswerRe: XmlDataSource Pin
Colin Angus Mackay22-Jun-07 3:14
Colin Angus Mackay22-Jun-07 3:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.