Click here to Skip to main content
15,909,953 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: transform vb to vb.net Pin
Christian Graus2-Mar-05 15:23
protectorChristian Graus2-Mar-05 15:23 
GeneralRe: transform vb to vb.net Pin
Dave Kreskowiak3-Mar-05 4:06
mveDave Kreskowiak3-Mar-05 4:06 
General.NET set-project installer creates software-entries twice Pin
Philipp3442-Mar-05 10:08
sussPhilipp3442-Mar-05 10:08 
GeneralThe format of the file 'system' is invalid. Pin
Anonymous2-Mar-05 7:51
Anonymous2-Mar-05 7:51 
GeneralRe: The format of the file 'system' is invalid. Pin
Dave Kreskowiak4-Mar-05 3:21
mveDave Kreskowiak4-Mar-05 3:21 
GeneralStreamReader constructor fails in FileWatcher event handler Pin
2-Mar-05 4:27
suss2-Mar-05 4:27 
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
Mitch F.2-Mar-05 6:32
Mitch F.2-Mar-05 6:32 
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
skifanatic2-Mar-05 7:00
skifanatic2-Mar-05 7:00 
Programmer2k4 wrote:
I have recently had a similar problem with a message box being required to give the process a bit of a "break".


Yes, but such tricks are symptomatic of not understanding what's going on under the covers. Adding sleeps/waits is dangerous since you need to determine what is the maximum time that you need in order to ensure success. You can't do that without understanding what's going on...and if you understand what's going on you shouldn't need the sleep in the first place!

I actually re-wrote the code to just keep trying to do the "new" and to count how many times it takes before it's successful. I then fired off a process on a machine running a real O/S (not this windows piece of ...oh nevermind), to just keep creating the file. The result is that the "new" always succeeds on the first iteration when the program is initially fired up. After that it may take anywhere from 4 to 25 iterations before being successful (usually around 6 or 7).

Clearly there's some sort of asynchronous issue going on here, but I can't figure out what the heck it is!
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
Mitch F.2-Mar-05 7:53
Mitch F.2-Mar-05 7:53 
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
skifanatic2-Mar-05 8:33
skifanatic2-Mar-05 8:33 
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
Dave Kreskowiak2-Mar-05 9:13
mveDave Kreskowiak2-Mar-05 9:13 
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
skifanatic2-Mar-05 9:59
skifanatic2-Mar-05 9:59 
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
Dave Kreskowiak2-Mar-05 11:15
mveDave Kreskowiak2-Mar-05 11:15 
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
skifanatic2-Mar-05 11:47
skifanatic2-Mar-05 11:47 
GeneralRe: StreamReader constructor fails in FileWatcher event handler Pin
Dallas Matthews2-Mar-05 9:28
Dallas Matthews2-Mar-05 9:28 
GeneralTrigger to send an email Pin
Un-Connected2-Mar-05 4:18
Un-Connected2-Mar-05 4:18 
GeneralRe: Trigger to send an email Pin
Mitch F.2-Mar-05 5:55
Mitch F.2-Mar-05 5:55 
GeneralSystem.NullReferenceException: Object reference not set to an instance of an object. Pin
ug39kxt@cs.bham.ac.uk2-Mar-05 3:58
ug39kxt@cs.bham.ac.uk2-Mar-05 3:58 
GeneralRe: System.NullReferenceException: Object reference not set to an instance of an object. Pin
Colin Angus Mackay2-Mar-05 4:25
Colin Angus Mackay2-Mar-05 4:25 
GeneralRe: System.NullReferenceException: Object reference not set to an instance of an object. Pin
ug39kxt@cs.bham.ac.uk2-Mar-05 4:50
ug39kxt@cs.bham.ac.uk2-Mar-05 4:50 
GeneralRe: System.NullReferenceException: Object reference not set to an instance of an object. Pin
ug39kxt@cs.bham.ac.uk2-Mar-05 4:56
ug39kxt@cs.bham.ac.uk2-Mar-05 4:56 
GeneralRe: System.NullReferenceException: Object reference not set to an instance of an object. Pin
Dave Kreskowiak2-Mar-05 7:06
mveDave Kreskowiak2-Mar-05 7:06 
Generalconverting to VB.NET Pin
Lisana2-Mar-05 3:20
Lisana2-Mar-05 3:20 
GeneralRe: converting to VB.NET Pin
Dave Kreskowiak2-Mar-05 3:36
mveDave Kreskowiak2-Mar-05 3:36 
GeneralLatching a Snap-in to components in a windows service. Pin
CSharpBala2-Mar-05 2:54
CSharpBala2-Mar-05 2:54 

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.