Im trying to control a GoPro Hero 3 camera. I found a library on the Internet: and from what i read it's a nice library. But when I try to create a connection with the camera my complete windows forms application freezes where my console applications (for test) just makes a connection.I think it has something to do with the async tasks, what am I doing wrong?
CommandRequest uses Tasks internally, when we use a blocking method like Create instead of CreateAsync it calls Task.Wait in the method which causes deadlock in UI contexts (using same context as UI thread),by setting Configuration.CommandRequestMode to Sync, it uses an alternate method SendRequestSynchronous which prevents deadlock.
3a8082e126