Click here to Skip to main content
15,914,066 members
Home / Discussions / C#
   

C#

 
AnswerRe: SQL connection string using IP address Pin
Spunky Coder14-May-09 19:33
Spunky Coder14-May-09 19:33 
GeneralRe: SQL connection string using IP address Pin
aastudent14-May-09 19:46
aastudent14-May-09 19:46 
GeneralRe: SQL connection string using IP address Pin
Spunky Coder14-May-09 23:14
Spunky Coder14-May-09 23:14 
AnswerRe: SQL connection string using IP address Pin
Mycroft Holmes14-May-09 21:46
professionalMycroft Holmes14-May-09 21:46 
GeneralRe: SQL connection string using IP address Pin
aastudent14-May-09 22:14
aastudent14-May-09 22:14 
GeneralRe: SQL connection string using IP address Pin
Mycroft Holmes14-May-09 22:34
professionalMycroft Holmes14-May-09 22:34 
Questioncaspol Pin
devvvy14-May-09 19:14
devvvy14-May-09 19:14 
QuestionError in the code Pin
Payam Rastogi14-May-09 17:47
Payam Rastogi14-May-09 17:47 
Hi,
I'm using C#.net 3.0.I used this code but it is still showing an error highlighting fThread.Interrupt() ---Object reference not set to an instance of an object.Now what changes should I do in order to make this code work

[code]
private void frameExtract()//function to extract frames
{
string outPath = txtExtBitmap.Text;
System.IO.Directory.CreateDirectory(outPath);

if (fg != null)
{
foreach (FrameGrabber.Frame f in fg)
{
using (f)
{
picBoxFrame.Image = (Bitmap)f.Image.Clone();
f.Image.Save(System.IO.Path.Combine(outPath, "frame" + f.FrameIndex + ".bmp"), System.Drawing.Imaging.ImageFormat.Bmp);
Application.DoEvents();
}

if (fg == null)
{
return;
}
}
}
}

public void ThreadProc()
{
try
{
MethodInvoker mi = new MethodInvoker(this.frameExtract);
this.BeginInvoke(mi);
}
catch (ThreadInterruptedException e)
{
Console.WriteLine("Interruption",e);
}
catch (Exception we)
{
Console.WriteLine("Exceptiom",we);
}
}

private void button43_Click(object sender, EventArgs e)//Extract button
{
fThread = new Thread(new ThreadStart(ThreadProc));
fThread.IsBackground = true;
fThread.Start();
}

private void button44_Click(object sender, EventArgs e)//Stop Button
{
fThread.Interrupt();
fThread = null;
}
[\code]
AnswerRe: Error in the code Pin
Wes Aday14-May-09 18:00
professionalWes Aday14-May-09 18:00 
AnswerRe: Error in the code Pin
N a v a n e e t h14-May-09 18:17
N a v a n e e t h14-May-09 18:17 
AnswerRe: Error in the code Pin
Payam Rastogi14-May-09 18:36
Payam Rastogi14-May-09 18:36 
GeneralRe: Error in the code Pin
Nagy Vilmos14-May-09 22:17
professionalNagy Vilmos14-May-09 22:17 
AnswerRe: Error in the code Pin
Nagy Vilmos14-May-09 22:16
professionalNagy Vilmos14-May-09 22:16 
QuestionRead EML files using C# Pin
nv_thien14-May-09 17:18
nv_thien14-May-09 17:18 
AnswerRe: Read EML files using C# Pin
N a v a n e e t h14-May-09 17:39
N a v a n e e t h14-May-09 17:39 
GeneralRe: Read EML files using C# Pin
nv_thien14-May-09 23:38
nv_thien14-May-09 23:38 
Questionrdbms trigger calling C# Pin
mark_me14-May-09 17:15
mark_me14-May-09 17:15 
AnswerRe: rdbms trigger calling C# Pin
N a v a n e e t h14-May-09 17:35
N a v a n e e t h14-May-09 17:35 
GeneralRe: rdbms trigger calling C# Pin
mark_me15-May-09 5:30
mark_me15-May-09 5:30 
AnswerRe: rdbms trigger calling C# Pin
Mycroft Holmes14-May-09 21:49
professionalMycroft Holmes14-May-09 21:49 
GeneralRe: rdbms trigger calling C# Pin
mark_me15-May-09 5:33
mark_me15-May-09 5:33 
GeneralRe: rdbms trigger calling C# Pin
Mycroft Holmes15-May-09 13:39
professionalMycroft Holmes15-May-09 13:39 
QuestionC# User Account Question HELP! Pin
Serpendiem14-May-09 17:06
Serpendiem14-May-09 17:06 
AnswerRe: C# User Account Question HELP! Pin
N a v a n e e t h14-May-09 17:12
N a v a n e e t h14-May-09 17:12 
GeneralRe: C# User Account Question HELP! Pin
Serpendiem14-May-09 17:18
Serpendiem14-May-09 17: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.