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

C#

 
AnswerRe: WinApp access variables in WebService...? Pin
dojohansen1-Jul-09 1:31
dojohansen1-Jul-09 1:31 
GeneralRe: WinApp access variables in WebService...? Pin
Mtyb1-Jul-09 2:10
Mtyb1-Jul-09 2:10 
GeneralRe: WinApp access variables in WebService...? Pin
dojohansen1-Jul-09 4:43
dojohansen1-Jul-09 4:43 
GeneralRe: WinApp access variables in WebService...? Pin
J4amieC1-Jul-09 2:45
J4amieC1-Jul-09 2:45 
GeneralRe: WinApp access variables in WebService...? Pin
dojohansen1-Jul-09 4:48
dojohansen1-Jul-09 4:48 
GeneralRe: WinApp access variables in WebService...? Pin
J4amieC1-Jul-09 7:06
J4amieC1-Jul-09 7:06 
GeneralRe: WinApp access variables in WebService...? Pin
dojohansen1-Jul-09 21:26
dojohansen1-Jul-09 21:26 
QuestionDataView error: Pin
padmanabhan N1-Jul-09 0:29
padmanabhan N1-Jul-09 0:29 
AnswerRe: DataView error: Pin
Henry Minute1-Jul-09 1:38
Henry Minute1-Jul-09 1:38 
AnswerRe: DataView error: Pin
Niladri_Biswas1-Jul-09 3:12
Niladri_Biswas1-Jul-09 3:12 
QuestionHow to remove CLI Header or how to disable dissasembling of my app Pin
Matjaz-xyz30-Jun-09 23:54
Matjaz-xyz30-Jun-09 23:54 
AnswerRe: How to remove CLI Header or how to disable dissasembling of my app Pin
OriginalGriff1-Jul-09 1:07
mveOriginalGriff1-Jul-09 1:07 
GeneralRe: How to remove CLI Header or how to disable dissasembling of my app Pin
dojohansen1-Jul-09 1:37
dojohansen1-Jul-09 1:37 
GeneralRe: How to remove CLI Header or how to disable dissasembling of my app Pin
OriginalGriff1-Jul-09 1:45
mveOriginalGriff1-Jul-09 1:45 
GeneralRe: How to remove CLI Header or how to disable dissasembling of my app Pin
Matjaz-xyz1-Jul-09 1:49
Matjaz-xyz1-Jul-09 1:49 
QuestionQuestion of reason for rule "return value void for event handling delegates" Pin
Chamundi30-Jun-09 23:38
Chamundi30-Jun-09 23:38 
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 

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.