Click here to Skip to main content
15,915,163 members
Home / Discussions / C#
   

C#

 
QuestionError in WPF Pin
Nick_Frenk16-Jun-13 21:54
Nick_Frenk16-Jun-13 21:54 
AnswerRe: Error in WPF Pin
Keith Barrow16-Jun-13 23:02
professionalKeith Barrow16-Jun-13 23:02 
GeneralRe: Error in WPF Pin
Nick_Frenk16-Jun-13 23:56
Nick_Frenk16-Jun-13 23:56 
GeneralRe: Error in WPF Pin
Keith Barrow17-Jun-13 0:17
professionalKeith Barrow17-Jun-13 0:17 
GeneralRe: Error in WPF Pin
Nick_Frenk17-Jun-13 0:28
Nick_Frenk17-Jun-13 0:28 
GeneralRe: Error in WPF Pin
Keith Barrow17-Jun-13 0:30
professionalKeith Barrow17-Jun-13 0:30 
GeneralRe: Error in WPF Pin
Nick_Frenk17-Jun-13 0:59
Nick_Frenk17-Jun-13 0:59 
GeneralRe: Error in WPF Pin
Keith Barrow17-Jun-13 1:44
professionalKeith Barrow17-Jun-13 1:44 
You going to have to put breakpoints on and check, the method should be entered at least once when streamImage calls it. You shouldn't be "cycling" as such, the code should be called once, go into the "else" block which calls the method once under the dispatcher thread (entering the if block and ending). If you need to loop then I don't understand the purpose of your code.

If you are entering the "else" block without going to the "if" It could be that you don't want the asynchronous BeginInvoke and you need a straight Invoke instead, but I don't know why you chose the async method in the first place. It may be the dispatcher is being destroyed before the async method is called, I really can't remember if this is possible, or if an exception is thrown if it does. It could also be that the Dispatcher is running something on a higher priority that is blocking your opertation, but I think this is less likely.

Can't be much more help than that I'm afraid.
“Education is not the piling on of learning, information, data, facts, skills, or abilities - that's training or instruction - but is rather making visible what is hidden as a seed”
“One of the greatest problems of our time is that many are schooled but few are educated”


Sir Thomas More (1478 – 1535)

GeneralRe: Error in WPF Pin
Nick_Frenk17-Jun-13 2:43
Nick_Frenk17-Jun-13 2:43 
GeneralRe: Error in WPF Pin
Pete O'Hanlon17-Jun-13 2:26
mvePete O'Hanlon17-Jun-13 2:26 
GeneralRe: Error in WPF Pin
Nick_Frenk17-Jun-13 2:45
Nick_Frenk17-Jun-13 2:45 
GeneralRe: Error in WPF Pin
Pete O'Hanlon17-Jun-13 3:09
mvePete O'Hanlon17-Jun-13 3:09 
GeneralRe: Error in WPF Pin
Nick_Frenk17-Jun-13 3:18
Nick_Frenk17-Jun-13 3:18 
GeneralRe: Error in WPF Pin
Pete O'Hanlon17-Jun-13 3:31
mvePete O'Hanlon17-Jun-13 3:31 
GeneralRe: Error in WPF Pin
Nick_Frenk17-Jun-13 3:46
Nick_Frenk17-Jun-13 3:46 
GeneralRe: Error in WPF Pin
Pete O'Hanlon17-Jun-13 5:54
mvePete O'Hanlon17-Jun-13 5:54 
GeneralRe: Error in WPF Pin
Nick_Frenk17-Jun-13 21:22
Nick_Frenk17-Jun-13 21:22 
GeneralRe: Error in WPF Pin
Pete O'Hanlon17-Jun-13 21:27
mvePete O'Hanlon17-Jun-13 21:27 
GeneralRe: Error in WPF Pin
Nick_Frenk17-Jun-13 21:33
Nick_Frenk17-Jun-13 21:33 
GeneralRe: Error in WPF Pin
Pete O'Hanlon17-Jun-13 21:57
mvePete O'Hanlon17-Jun-13 21:57 
GeneralRe: Error in WPF Pin
Nick_Frenk17-Jun-13 22:17
Nick_Frenk17-Jun-13 22:17 
GeneralRe: Error in WPF Pin
Pete O'Hanlon17-Jun-13 22:30
mvePete O'Hanlon17-Jun-13 22:30 
NewsRe: Error in WPF Pin
Nick_Frenk17-Jun-13 23:34
Nick_Frenk17-Jun-13 23:34 
GeneralRe: Error in WPF Pin
Pete O'Hanlon18-Jun-13 0:50
mvePete O'Hanlon18-Jun-13 0:50 
GeneralRe: Error in WPF Pin
Nick_Frenk18-Jun-13 2:33
Nick_Frenk18-Jun-13 2:33 

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.