Re: C# Threading Issue



On Jan 30, 8:15 pm, "Ignacio Machin \( .NET/ C# MVP \)" <machin TA
laceupsolutions.com> wrote:
Hi,

"PhilBray" <PhilB...@xxxxxxxxx> wrote in message

news:1170176303.774077.110250@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
| 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.

It's possible, but IMO this depend of the camera you are using and how you
should comunicate with it. Also note that sometimes the FileSystemWatcher
fires more than one event for the same action from the file. I would also
check for this.

How you communicate with the camera?

Hi,

I resolved the issue but it was related to the build path I was using.

Thanks for the response.

Phil

.



Relevant Pages

  • Re: C# Threading Issue
    ... I use the FileSystemWatcher class to ... | implements calls to a camera SDK. ... | camera capture() method, the call is made and then when check ... | now picture has been taken. ...
    (microsoft.public.dotnet.languages.csharp)
  • C# Threading Issue
    ... I use the FileSystemWatcher class to ... camera capture() method, the call is made and then when check ... this is always immediately set to complete although ... now picture has been taken. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Webcam for dog training
    ... see how the dog is moving and behaving. ... Camera specs are rather meaningless, ... video capture situation, expect to not be able to capture all the ... they can capture a picture (if there is enough light - you ...
    (rec.video.desktop)
  • Re: I am no scientist, nor am I a photographer. But I have a photo that I would love for someone....
    ... > digital camera set on the "night" setting. ... > picture, and the others don't look like this, they are totally normal ... You get a 1/100 sec flash plus a 2 second or so slow capture. ...
    (sci.image.processing)
  • Re: Downloading Digital Pictures
    ... > resolution and large size in which I took them on them ... How can I capture them to my computer in the same ... you are using software from the camera mfg. ... Picture It! ...
    (microsoft.public.windowsxp.photos)