Click here to Skip to main content
16,016,140 members
Home / Discussions / C#
   

C#

 
GeneralRe: float calculation issue (decimal is no solution) Pin
George_George3-Jun-08 21:53
George_George3-Jun-08 21:53 
GeneralRe: float calculation issue (decimal is no solution) Pin
The Nightcoder4-Jun-08 3:04
The Nightcoder4-Jun-08 3:04 
GeneralRe: float calculation issue (decimal is no solution) Pin
George_George4-Jun-08 22:22
George_George4-Jun-08 22:22 
GeneralRe: float calculation issue (decimal is no solution) Pin
The Nightcoder4-Jun-08 23:01
The Nightcoder4-Jun-08 23:01 
GeneralRe: float calculation issue (decimal is no solution) Pin
George_George4-Jun-08 23:27
George_George4-Jun-08 23:27 
GeneralRe: float calculation issue (decimal is no solution) Pin
The Nightcoder5-Jun-08 4:01
The Nightcoder5-Jun-08 4:01 
GeneralRe: float calculation issue (decimal is no solution) Pin
George_George5-Jun-08 14:48
George_George5-Jun-08 14:48 
QuestionThreadpool Synchronization causing out of memory error Pin
sumathi pandarinathan26-May-08 0:12
sumathi pandarinathan26-May-08 0:12 
Hi all,
i am developing a application for ANPR system. My appliaction using thread pool.registerwaitforsingleobject to grab the frames per 40 msec and signal the other thread for processing the frame. My appliaction has crashing becuase of out of memory error. i am running this appliaction in a hi-spec computer. please find my source below.

Main thread
{
Grabframe gf = new Grabframe();
gf.run();
manualresetevent anprevent = new manualresetevent(false);
.. create instance for anprclass anprobj
anprprocessthread(anprobj.run);
anprprocessthread.start();
}

class Grabframe
{
void run()
{
manualresetevent me = new manualresetevent(false);
waitortimercallback thread_method = waitortimercallback(grabframe);
Threadpool.registerwaitforsingleobject(me,thread_method,stateobj,40,false);
me.set();
}
void grabframe(object state,bool timeinterval)
{
...grab the frame
//signal anpr thread
anprevent.set();
}
}// end class grabframe

//anprthread
class anpr
{

void run()
{
anprevent.waitone();
..do anprprocess
.. get frame from global
}
}// end anpr class



Actually i have tried to reset manualresetevent on threadpool obj 'me' and my application didn't crash but the performance of the anpr is dropped.
please provide me suggestion as soon as possible.


Thanks.
sumathi
AnswerRe: Threadpool Synchronization causing out of memory error Pin
leppie26-May-08 4:03
leppie26-May-08 4:03 
GeneralRe: Threadpool Synchronization causing out of memory error Pin
sumathi pandarinathan26-May-08 21:09
sumathi pandarinathan26-May-08 21:09 
Questionfolderbrowserdialog Pin
huotari25-May-08 23:57
huotari25-May-08 23:57 
AnswerRe: folderbrowserdialog Pin
Dario Solera26-May-08 0:18
Dario Solera26-May-08 0:18 
AnswerRe: folderbrowserdialog Pin
D i x y26-May-08 0:56
D i x y26-May-08 0:56 
QuestionFix an error 'Page can not be displayed' for file upload control when uploading more than 10mb file size Pin
kishoregani25-May-08 23:30
kishoregani25-May-08 23:30 
AnswerRe: Fix an error 'Page can not be displayed' for file upload control when uploading more than 10mb file size Pin
Dario Solera26-May-08 0:21
Dario Solera26-May-08 0:21 
GeneralRe: Fix an error 'Page can not be displayed' for file upload control when uploading more than 10mb file size Pin
Vasudevan Deepak Kumar26-May-08 19:18
Vasudevan Deepak Kumar26-May-08 19:18 
QuestionHow to get the row/column/data of cells selected in worksheet of Excel using C# Pin
Varad_Rajan25-May-08 23:25
Varad_Rajan25-May-08 23:25 
AnswerRe: How to get the row/column/data of cells selected in worksheet of Excel using C# Pin
leppie26-May-08 4:05
leppie26-May-08 4:05 
QuestionDetecting if a key is pressed outside the key events Pin
Christian Wikander25-May-08 23:24
Christian Wikander25-May-08 23:24 
AnswerRe: Detecting if a key is pressed outside the key events Pin
Roger Alsing26-May-08 0:55
Roger Alsing26-May-08 0:55 
AnswerRe: Detecting if a key is pressed outside the key events Pin
Ed.Poore26-May-08 0:55
Ed.Poore26-May-08 0:55 
GeneralRe: Detecting if a key is pressed outside the key events Pin
Christian Wikander26-May-08 1:28
Christian Wikander26-May-08 1:28 
QuestionConsole.WriteLine Pin
George_George25-May-08 23:21
George_George25-May-08 23:21 
AnswerRe: Console.WriteLine Pin
Colin Angus Mackay25-May-08 23:51
Colin Angus Mackay25-May-08 23:51 
GeneralRe: Console.WriteLine Pin
George_George26-May-08 0:01
George_George26-May-08 0:01 

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.