Click here to Skip to main content
15,912,400 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Problem in passing arguments to cmd prompt from VB program Pin
Member 109935298-Aug-14 23:34
Member 109935298-Aug-14 23:34 
AnswerRe: Problem in passing arguments to cmd prompt from VB program Pin
Mike Meinz5-Sep-14 7:50
Mike Meinz5-Sep-14 7:50 
QuestionTorrent dowloader in VB.NET Pin
Member 110001467-Aug-14 23:48
Member 110001467-Aug-14 23:48 
AnswerRe: Torrent dowloader in VB.NET Pin
Dave Kreskowiak8-Aug-14 4:24
mveDave Kreskowiak8-Aug-14 4:24 
AnswerRe: Torrent dowloader in VB.NET Pin
ZurdoDev15-Aug-14 8:18
professionalZurdoDev15-Aug-14 8:18 
QuestionProblem instantiating FileSystemWatcher in Windows Service Pin
Member 109911324-Aug-14 9:24
Member 109911324-Aug-14 9:24 
AnswerRe: Problem instantiating FileSystemWatcher in Windows Service Pin
David Mujica4-Aug-14 10:56
David Mujica4-Aug-14 10:56 
GeneralRe: Problem instantiating FileSystemWatcher in Windows Service Pin
Member 109911324-Aug-14 11:04
Member 109911324-Aug-14 11:04 
Hi David,
Thanks for responding. I have already logged each and every step to the eventviewer and that's why I'm positive that it's the last step shown which causes the error. That FileSystemWatcher is just nothing and therefore I can't assign the path to it.
The difference between your code and mine is that you declare the FileSystemWatcher as a local variable in your sub, whereas I declare it as a class variable and then try to instantiate it in the sub.
The reason I do this is because I want to be able to "close" the filesystemwatcher in the OnStop event. I found, when this was written as a windows form, that just closing the app without stopping the watcher caused all sorts of problems. So I wanted to be good about it as a service as well and dispose of it properly when/if the service stops so that it can be cleanly started again.
But somehow this declaration which works in the forms app throws an error in the service app.
Any ideas?
AnswerRe: Problem instantiating FileSystemWatcher in Windows Service Pin
Bernhard Hiller4-Aug-14 21:04
Bernhard Hiller4-Aug-14 21:04 
GeneralRe: Problem instantiating FileSystemWatcher in Windows Service Pin
Member 109911325-Aug-14 2:55
Member 109911325-Aug-14 2:55 
GeneralRe: Problem instantiating FileSystemWatcher in Windows Service Pin
Bernhard Hiller5-Aug-14 20:09
Bernhard Hiller5-Aug-14 20:09 
QuestionRegular Expression in VBS Pin
Member 88781863-Aug-14 19:36
Member 88781863-Aug-14 19:36 
GeneralRe: Regular Expression in VBS Pin
Tim Carmichael4-Aug-14 2:43
Tim Carmichael4-Aug-14 2:43 
QuestionRe: Regular Expression in VBS Pin
ZurdoDev15-Aug-14 8:19
professionalZurdoDev15-Aug-14 8:19 
QuestionProblem setting a value in a textbox from another form Pin
dilkonika2-Aug-14 6:08
dilkonika2-Aug-14 6:08 
AnswerRe: Problem setting a value in a textbox from another form Pin
Richard Andrew x642-Aug-14 16:14
professionalRichard Andrew x642-Aug-14 16:14 
AnswerRe: Problem setting a value in a textbox from another form Pin
kasbaba2-Aug-14 19:57
kasbaba2-Aug-14 19:57 
Questionsherdian controls : license not found Pin
zuber ahmed2-Aug-14 1:39
zuber ahmed2-Aug-14 1:39 
AnswerRe: sherdian controls : license not found Pin
Eddy Vluggen2-Aug-14 12:23
professionalEddy Vluggen2-Aug-14 12:23 
QuestionSherdian controls Pin
zuber ahmed1-Aug-14 10:00
zuber ahmed1-Aug-14 10:00 
AnswerRe: Sherdian controls Pin
Mycroft Holmes1-Aug-14 13:43
professionalMycroft Holmes1-Aug-14 13:43 
AnswerRe: Sherdian controls Pin
ZurdoDev15-Aug-14 8:19
professionalZurdoDev15-Aug-14 8:19 
GeneralRe: Sherdian controls Pin
zuber ahmed16-Aug-14 2:11
zuber ahmed16-Aug-14 2:11 
QuestionVBScript Error Code 800A0046 Pin
ChriDo6130-Jul-14 20:57
ChriDo6130-Jul-14 20:57 
AnswerRe: VBScript Error Code 800A0046 Pin
thatraja30-Jul-14 21:37
professionalthatraja30-Jul-14 21:37 

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.