Click here to Skip to main content
15,910,277 members
Home / Discussions / C#
   

C#

 
AnswerRe: Empty strings with string.split Pin
Eddy Vluggen1-Nov-09 6:33
professionalEddy Vluggen1-Nov-09 6:33 
GeneralRe: Empty strings with string.split Pin
Not Active1-Nov-09 10:37
mentorNot Active1-Nov-09 10:37 
GeneralRe: Empty strings with string.split Pin
Eddy Vluggen3-Nov-09 2:42
professionalEddy Vluggen3-Nov-09 2:42 
AnswerRe: Empty strings with string.split Pin
Alan N1-Nov-09 6:35
Alan N1-Nov-09 6:35 
AnswerRe: Empty strings with string.split Pin
PIEBALDconsult1-Nov-09 16:29
mvePIEBALDconsult1-Nov-09 16:29 
Questionwhat is application configuration file? Pin
Chesnokov Yuriy1-Nov-09 5:42
professionalChesnokov Yuriy1-Nov-09 5:42 
AnswerRe: what is application configuration file? Pin
PIEBALDconsult1-Nov-09 16:52
mvePIEBALDconsult1-Nov-09 16:52 
QuestionCannot access file error Pin
g3ng1-Nov-09 4:31
g3ng1-Nov-09 4:31 
I am debugging a program that combines several wav files into one. This code always gives me an error message:

try
{
outFileStream = new FileStream(outputFile, FileMode.Create);
}
catch (Exception ex)
{
MessageBox.Show(ex.GetBaseException().ToString());
}

The error message is:

System.IO.IOException: The process cannot access the file 'C:\Documents and Settings\ .... \02.wav' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, FileShare share, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
at LiveDescribe.WavFile.writeAudioFileHeader(String outputFile, Boolean pStereo) in C:\Documents and Settings\ .... \WavFile.cs:line 503

note: line 503 is the line outFileStream = new FileStream(...)

How can I make it work?

Thanks.
AnswerRe: Cannot access file error Pin
Abhishek Sur1-Nov-09 4:45
professionalAbhishek Sur1-Nov-09 4:45 
AnswerRe: Cannot access file error Pin
OriginalGriff1-Nov-09 4:48
mveOriginalGriff1-Nov-09 4:48 
GeneralRe: Cannot access file error Pin
g3ng2-Nov-09 5:34
g3ng2-Nov-09 5:34 
GeneralRe: Cannot access file error Pin
OriginalGriff2-Nov-09 5:41
mveOriginalGriff2-Nov-09 5:41 
GeneralRe: Cannot access file error Pin
g3ng2-Nov-09 6:03
g3ng2-Nov-09 6:03 
GeneralRe: Cannot access file error Pin
OriginalGriff2-Nov-09 6:17
mveOriginalGriff2-Nov-09 6:17 
GeneralRe: Cannot access file error Pin
g3ng2-Nov-09 7:14
g3ng2-Nov-09 7:14 
AnswerRe: Cannot access file error Pin
g3ng1-Nov-09 5:17
g3ng1-Nov-09 5:17 
Questioncan not read data when Install VS2008 program on windows XP [modified] Pin
obarahmeh1-Nov-09 1:31
obarahmeh1-Nov-09 1:31 
AnswerRe: can not read data when Install VS2008 program on windows XP Pin
OriginalGriff1-Nov-09 4:49
mveOriginalGriff1-Nov-09 4:49 
GeneralRe: can not read data when Install VS2008 program on windows XP Pin
obarahmeh1-Nov-09 19:10
obarahmeh1-Nov-09 19:10 
QuestionTcpListener EndWrite() method, how to wait until client will recieve all data before closing it? [modified] Pin
Chesnokov Yuriy31-Oct-09 23:40
professionalChesnokov Yuriy31-Oct-09 23:40 
QuestionRe: TcpListener EndWrite() method, how to wait until client will recieve all data before closing it? Pin
Chesnokov Yuriy31-Oct-09 23:50
professionalChesnokov Yuriy31-Oct-09 23:50 
QuestionDirectX DirectInput simulating Keyboard Pin
chainerlt31-Oct-09 23:14
chainerlt31-Oct-09 23:14 
AnswerRe: DirectX DirectInput simulating Keyboard Pin
Randor 1-Nov-09 4:19
professional Randor 1-Nov-09 4:19 
GeneralRe: DirectX DirectInput simulating Keyboard Pin
chainerlt1-Nov-09 10:56
chainerlt1-Nov-09 10:56 
GeneralRe: DirectX DirectInput simulating Keyboard Pin
Randor 1-Nov-09 11:04
professional Randor 1-Nov-09 11:04 

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.