Click here to Skip to main content
11,933,621 members (53,653 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# 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;

Posted 29-May-13 7:40am
Sergey Alexandrovich Kryukov 29-May-13 12:50pm
Not enough information. What's your application type, UI library you use?
Sergey Alexandrovich Kryukov 29-May-13 14:23pm
OK, and what message do you expect and why?
ryanb31 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.151126.1 | Last Updated 29 May 2013
Copyright © CodeProject, 1999-2015
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