Click here to Skip to main content
15,918,485 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Get file size - while inuse by another process Pin
mav.northwind30-Jun-07 23:37
mav.northwind30-Jun-07 23:37 
Hi!

One idea that's working fine in some of my programs is trying to open the target file exclusively (with FileShare.None).
If the file can be opened, no other process is accessing the file and thus the file has been created completely. If you get an IOException then sleep for a few ms and try again. Just don't forget to close the file afterwards and include a timeout mechanism so your program doesn't lock up if the file isn't closed because of a bug in the other application.


Regards,
mav

--
Black holes are the places where God divided by 0...

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 
GeneralRe: Read width & Height of jpeg file Pin
Alaric_1-Jul-07 6:29
professionalAlaric_1-Jul-07 6:29 

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.