Click here to Skip to main content
15,912,897 members
Home / Discussions / C#
   

C#

 
Question"Danger meter" control? Pin
Domenic Denicola1-Jul-07 3:01
Domenic Denicola1-Jul-07 3:01 
AnswerRe: "Danger meter" control? Pin
Mark Greenwood1-Jul-07 3:09
Mark Greenwood1-Jul-07 3:09 
AnswerRe: "Danger meter" control? Pin
Tamimi - Code1-Jul-07 3:09
Tamimi - Code1-Jul-07 3:09 
AnswerRe: validation of a formula Pin
Mark Greenwood1-Jul-07 3:20
Mark Greenwood1-Jul-07 3:20 
GeneralRe: validation of a formula Pin
Mark Greenwood1-Jul-07 3:23
Mark Greenwood1-Jul-07 3:23 
GeneralRe: validation of a formula Pin
Bojja Lakshmi1-Jul-07 17:22
Bojja Lakshmi1-Jul-07 17:22 
QuestionUDP Multicast woes Pin
mav.northwind30-Jun-07 23:31
mav.northwind30-Jun-07 23:31 
QuestionGet file size - while inuse by another process Pin
liqnit30-Jun-07 22:54
liqnit30-Jun-07 22:54 
Hi I am trying to check if a file is being written by another process.
I am using teh FileInfo (size) to see if the size (it is a log file) is changing.
When another process is writing to the file my application is stuck.

string fPath = @"c:\temp\build.log";<br />
FileInfo FI = new FileInfo(fPath);<br />
while (1>0)<br />
{<br />
    if (lastvalue - FI.Length == 0)<br />
    {<br />
        iCounter++;<br />
        lastvalue = FI.Length;<br />
        if (iCounter > 20)<br />
        {<br />
            MessageBox.Show("times up");<br />
            break;<br />
        }<br />
        <br />
    }<br />
    else<br />
        iCounter = 0;<br />
    lastvalue = FI.Length;<br />
    <br />
    <br />
    Thread.Sleep(SleepTime);<br />
}


Any idea could help.Confused | :confused: Confused | :confused:

Have a nice Day

AnswerRe: Get file size - while inuse by another process Pin
mav.northwind30-Jun-07 23:37
mav.northwind30-Jun-07 23:37 
GeneralRe: Get file size - while inuse by another process Pin
liqnit30-Jun-07 23:46
liqnit30-Jun-07 23:46 
GeneralRe: Get file size - while inuse by another process Pin
mav.northwind1-Jul-07 2:00
mav.northwind1-Jul-07 2:00 
AnswerRe: Get file size - while inuse by another process Pin
Nissim Salomon1-Jul-07 0:04
Nissim Salomon1-Jul-07 0:04 
GeneralRe: Get file size - while inuse by another process Pin
liqnit1-Jul-07 3:20
liqnit1-Jul-07 3:20 
QuestionStreaming desktop over internet Pin
jbmoens30-Jun-07 22:26
jbmoens30-Jun-07 22:26 
AnswerRe: Streaming desktop over internet Pin
.jpg1-Jul-07 6:56
.jpg1-Jul-07 6:56 
QuestionFormula validation Pin
Bojja Lakshmi30-Jun-07 21:40
Bojja Lakshmi30-Jun-07 21:40 
AnswerRe: Formula validation Pin
Christian Graus30-Jun-07 22:10
protectorChristian Graus30-Jun-07 22:10 
Questionwhy DataView.RowFilter run more solwer then DataTable.Select Pin
alonesword30-Jun-07 21:02
alonesword30-Jun-07 21:02 
Questionhow to move in records? Pin
s_nazari@yahoo.com30-Jun-07 20:52
s_nazari@yahoo.com30-Jun-07 20:52 
AnswerRe: how to move in records? Pin
Christian Graus30-Jun-07 21:22
protectorChristian Graus30-Jun-07 21:22 
GeneralRe: how to move in records? Pin
Robert Rohde1-Jul-07 2:49
Robert Rohde1-Jul-07 2:49 
QuestionRead width & Height of jpeg file Pin
Alaric_30-Jun-07 20:52
professionalAlaric_30-Jun-07 20:52 
AnswerRe: Read width & Height of jpeg file Pin
Mazdak30-Jun-07 20:59
Mazdak30-Jun-07 20:59 
GeneralRe: Read width &amp Height of jpeg file Pin
Alaric_30-Jun-07 21:11
professionalAlaric_30-Jun-07 21:11 
AnswerRe: Read width & Height of jpeg file Pin
Luc Pattyn1-Jul-07 4:23
sitebuilderLuc Pattyn1-Jul-07 4:23 

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.