Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
i have the following code of a simple function , having no error, but does not show any message..
any one can help ?? please
public  void runPlayer()
       {
 
           double  totalframe;
           double currentframe;
 
           cap = new Capture(openFileDialog1.FileName);
 
           totalframe = cap.GetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FRAME_COUNT);
           currentframe = cap.GetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_POS_FRAMES);
           while (currentframe <= totalframe )
           {
               if (playerImage.InvokeRequired)
               {
 
                   Bitmap img = new Bitmap(cap.RetrieveBgrFrame().ToBitmap());
 
                   //img  = cap.RetrieveBgrFrame().ToBitmap();
                   this.playerImage.Image = img;
                   playerImage.Show();
                   currentframe++;
                   CvInvoke.cvWaitKey(33);
               }
           }
 

       }
Posted 29-May-13 7:40am
Comments
Sergey Alexandrovich Kryukov at 29-May-13 12:50pm
   
Not enough information. What's your application type, UI library you use?
—SA
Sergey Alexandrovich Kryukov at 29-May-13 14:23pm
   
OK, and what message do you expect and why?
—SA
ryanb31 at 29-May-13 17:54pm
   
When you debug the code, where is it going wrong?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 504
1 Maciej Los 349
2 Kornfeld Eliyahu Peter 325
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,303
1 DamithSL 4,764
2 Maciej Los 4,306
3 Kornfeld Eliyahu Peter 3,914
4 Sergey Alexandrovich Kryukov 3,538


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 29 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100