Click here to Skip to main content
15,894,362 members
Home / Discussions / C#
   

C#

 
AnswerRe: "An assembly with the same simple name has already been imported" error message Pin
jschell18-Jun-13 7:42
jschell18-Jun-13 7:42 
AnswerRe: "An assembly with the same simple name has already been imported" error message Pin
johannesnestler21-Jun-13 0:20
johannesnestler21-Jun-13 0:20 
GeneralRe: "An assembly with the same simple name has already been imported" error message Pin
impeham21-Jun-13 5:00
impeham21-Jun-13 5:00 
Questionhow do i implement barcode in C# Pin
Resma Rahiman17-Jun-13 0:44
Resma Rahiman17-Jun-13 0:44 
AnswerMy Vote of 1 Pin
Keith Barrow17-Jun-13 1:51
professionalKeith Barrow17-Jun-13 1:51 
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 
hello I tried your solution, I put a break-point and I noticed that IF is the cycle that makes me run any code inifinite times.

C#
public void setImage(Image images,string url)
        {
            
            if (images.Dispatcher.CheckAccess())
            {
                MessageBox.Show("ciao");
                Del ert = new Del(setImage);
                
                images.Dispatcher.Invoke(ert, new object[] { images, url });
                BitmapImage img = new BitmapImage();
                img.BeginInit();
                img.UriSource = new Uri(url);
                img.EndInit(); // Getting exception here 
                images.Source = img;
            }
            else
            {
                images.Dispatcher.BeginInvoke(new Del(setImage), DispatcherPriority.Normal,
                                                     new object[] { images, url });
                //images.Dispatcher.Invoke(new Action(Esc));
            }
        }


        public void StreamImg()
        {
            while (true)
            {
                var date = DateTime.Today.Hour;
                setImage(image1, @"http://ipaddress/jpg/image.jpg" + "?" + date);
                Thread.Sleep(1000);
             }
        }

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 
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 

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.