Click here to Skip to main content
15,887,267 members
Home / Discussions / C#
   

C#

 
AnswerRe: Question of reason for rule "return value void for event handling delegates" Pin
kstls30-Jun-09 23:49
kstls30-Jun-09 23:49 
AnswerRe: Question of reason for rule "return value void for event handling delegates" Pin
Luc Pattyn30-Jun-09 23:59
sitebuilderLuc Pattyn30-Jun-09 23:59 
GeneralRe: Question of reason for rule "return value void for event handling delegates" Pin
Chamundi1-Jul-09 0:08
Chamundi1-Jul-09 0:08 
GeneralRe: Question of reason for rule "return value void for event handling delegates" Pin
Luc Pattyn1-Jul-09 0:30
sitebuilderLuc Pattyn1-Jul-09 0:30 
GeneralRe: Question of reason for rule "return value void for event handling delegates" Pin
Chamundi1-Jul-09 5:09
Chamundi1-Jul-09 5:09 
QuestionSmartNavigation Pin
minniemooo30-Jun-09 22:59
minniemooo30-Jun-09 22:59 
AnswerRe: SmartNavigation Pin
dan!sh 30-Jun-09 23:04
professional dan!sh 30-Jun-09 23:04 
QuestionAForge.net writer.Open problem Pin
tvbarnard30-Jun-09 22:47
tvbarnard30-Jun-09 22:47 
Good day

I want to save a video stream to file from my webcam. I looked at Andrew Kirillov's example on "motion detection algorithms" and used the exact same code to test the saving of a video file, but it seams that the writer.Open() method is unable to execute properly.

In my own code (using the "saving video" snippet) I'm given an exception, and when running Andrew's complete source code on the motion detector the program freezes as soon as I start recording.

I am running Vista, so I don't know whether that might be the cause?

This is my code I'm currently using:

SaveFileDialog sfd = new SaveFileDialog( );
			if ( sfd.ShowDialog( ) == DialogResult.OK )
			{
				AVIWriter writer = new AVIWriter( "wmv3" );
				try
				{
					writer.Open( sfd.FileName, 320, 240 ); //where the exception is thrown
					Bitmap bmp = new Bitmap( 320, 240, PixelFormat.Format24bppRgb );
					for ( int i = 0; i < 100; i++ )
					{
						bmp.SetPixel( i, i, Color.FromArgb( i, 0, 255 - i ) );
						writer.AddFrame( bmp );
					}
					bmp.Dispose( );
				}
				catch ( ApplicationException ex )
				{
					lblFps.Text = "Exception thrown";
				}
				writer.Dispose( );
			}

QuestionRe: AForge.net writer.Open problem Pin
Eddy Vluggen30-Jun-09 23:18
professionalEddy Vluggen30-Jun-09 23:18 
Questionhow to change the File summary information Pin
Joe Rozario30-Jun-09 22:36
Joe Rozario30-Jun-09 22:36 
AnswerRe: how to change the File summary information Pin
dan!sh 30-Jun-09 23:01
professional dan!sh 30-Jun-09 23:01 
GeneralRe: how to change the File summary information Pin
Joe Rozario1-Jul-09 1:35
Joe Rozario1-Jul-09 1:35 
Question"Cannot access a disposed object.\r\nObject name: 'Transaction'." Pin
devvvy30-Jun-09 22:04
devvvy30-Jun-09 22:04 
AnswerRe: "Cannot access a disposed object.\r\nObject name: 'Transaction'." Pin
Manas Bhardwaj30-Jun-09 22:13
professionalManas Bhardwaj30-Jun-09 22:13 
GeneralRe: "Cannot access a disposed object.\r\nObject name: 'Transaction'." Pin
devvvy1-Jul-09 1:14
devvvy1-Jul-09 1:14 
AnswerRe: "Cannot access a disposed object.\r\nObject name: 'Transaction'." Pin
Manas Bhardwaj1-Jul-09 1:41
professionalManas Bhardwaj1-Jul-09 1:41 
GeneralRe: "Cannot access a disposed object.\r\nObject name: 'Transaction'." Pin
devvvy1-Jul-09 1:41
devvvy1-Jul-09 1:41 
GeneralRe: "Cannot access a disposed object.\r\nObject name: 'Transaction'." Pin
Manas Bhardwaj1-Jul-09 1:46
professionalManas Bhardwaj1-Jul-09 1:46 
GeneralRe: "Cannot access a disposed object.\r\nObject name: 'Transaction'." Pin
devvvy1-Jul-09 1:49
devvvy1-Jul-09 1:49 
AnswerRe: "Cannot access a disposed object.\r\nObject name: 'Transaction'." [modified] Pin
RussVB25-Aug-09 16:38
RussVB25-Aug-09 16:38 
QuestionCancel Events Pin
satsumatable30-Jun-09 21:56
satsumatable30-Jun-09 21:56 
AnswerRe: Cancel Events Pin
DaveyM6930-Jun-09 22:06
professionalDaveyM6930-Jun-09 22:06 
GeneralRe: Cancel Events Pin
satsumatable30-Jun-09 22:34
satsumatable30-Jun-09 22:34 
GeneralRe: Cancel Events Pin
Cracked-Down30-Jun-09 22:58
Cracked-Down30-Jun-09 22:58 
QuestionRe: Cancel Events Pin
musefan1-Jul-09 1:21
musefan1-Jul-09 1:21 

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.