asynchronous write file problem
-
I tried to write a file asynchronously but I can not do it. Could you help me on this issue ? any recommendations are strongly appreciated :)
What is the error you are getting?
-
I tried to write a file asynchronously but I can not do it. Could you help me on this issue ? any recommendations are strongly appreciated :)
Not without seeing your code and getting an explanation of the problem you're having.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
Not without seeing your code and getting an explanation of the problem you're having.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...sorry for unclear explanation of my problem. the code that I have try is below: delegateGetInputReportData getInputReportDelegate = null; getInputReportDelegate = new delegateGetInputReportData(myAccessForm); base.Invoke(getInputReportDelegate,/*args*/value); a new delegate method is created on each data receive event. in myccessForm I try TextWriter tx = new StreamWriter("Data.txt"); tx.WriteLine(index +" " + s1.ToString() + "0" + s2.ToString() + "\t\t" + str + "\t\t" + p.ToString()); but it causes an exception that file is used by another program I tried to solve problem by using mutex but It does not work.