P
PhilBray
Hello,
I am currently having an issue with the FileSystemWatcher class for an
application I am developing. I use the FileSystemWatcher class to
identify a change in a directory (i.e. a file has been added) and once
this event is captured then I make a call to another class which
implements calls to a camera SDK.
The issue I am having is that when using FileSystemWatcher to create a
new version of my class and start making calls to an asynchronous
camera capture() method, the call is made and then when check
has_captured flag, this is always immediately set to complete although
now picture has been taken. When I call to this class however from a
basic console application the call to the capture() method is made and
then the has_captured flag is only set once a picture has been taken
as I would expect.
I have therefore started to think it may have something to do with the
event thread that is fired when using the FileSystemWatcher class.
Can anybody provide any input to this issue.
Many thanks in advance,
Phil
I am currently having an issue with the FileSystemWatcher class for an
application I am developing. I use the FileSystemWatcher class to
identify a change in a directory (i.e. a file has been added) and once
this event is captured then I make a call to another class which
implements calls to a camera SDK.
The issue I am having is that when using FileSystemWatcher to create a
new version of my class and start making calls to an asynchronous
camera capture() method, the call is made and then when check
has_captured flag, this is always immediately set to complete although
now picture has been taken. When I call to this class however from a
basic console application the call to the capture() method is made and
then the has_captured flag is only set once a picture has been taken
as I would expect.
I have therefore started to think it may have something to do with the
event thread that is fired when using the FileSystemWatcher class.
Can anybody provide any input to this issue.
Many thanks in advance,
Phil