Click here to Skip to main content
15,891,431 members
Home / Discussions / C#
   

C#

 
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 
Thanks so much for the replies. I just found out the whole program won't run on my netbook so I'll have to test it out tomorrow, but meanwhile I can provide a bit more details on the code.

The main program creates a WavFile object, which has the following code:

string destinationFile = *some path, due to spacing I left it out;
string originalFile = some path + Path.GetFileNameWithoutExtension(projSettings.SaveFileName) + "_audio.wav";

WavFile wf = new WavFile(originalFile, destinationFile, this);
...


And then the WavFile class has the following constructor:

public WavFile(string videoAudioFile, string desFileName, mainparentMain){
...
outfileName = desFileName;
videoAudioFileName = videoAudioFile;
...
writeAudioFileHeader(outfileName, true);
}


The method writeAudioFileHeader is the code I've posted in my original post.

I stepped through the code to see where outFileStream is declared or used elsewhere but I can't find it used before line 503 writeAudioFileHeader method, it is declared as a private FileStream variable in WavFile class and it's not initialized until line 503. I can't figure out what's using it before it's initialized Confused | :confused:

But thanks so much for the replies.
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 
GeneralRe: DirectX DirectInput simulating Keyboard Pin
chainerlt1-Nov-09 13:41
chainerlt1-Nov-09 13:41 
GeneralRe: DirectX DirectInput simulating Keyboard Pin
Randor 1-Nov-09 23:11
professional Randor 1-Nov-09 23:11 
GeneralRe: DirectX DirectInput simulating Keyboard Pin
mariejane25-Nov-09 14:36
mariejane25-Nov-09 14:36 
QuestionI need caculatore source c# Pin
karol.b31-Oct-09 21:11
karol.b31-Oct-09 21:11 
AnswerRe: I need caculatore source c# Pin
dan!sh 31-Oct-09 21:17
professional dan!sh 31-Oct-09 21:17 
AnswerRe: I need caculatore source c# Pin
khosnur31-Oct-09 21:46
khosnur31-Oct-09 21:46 
AnswerRe: I need caculatore source c# Pin
Abhishek Sur31-Oct-09 21:50
professionalAbhishek Sur31-Oct-09 21:50 
GeneralRe: I need caculatore source c# Pin
Mycroft Holmes31-Oct-09 21:56
professionalMycroft Holmes31-Oct-09 21:56 

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.