Click here to Skip to main content
15,899,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to stop the thread if it's running? Pin
Rajesh R Subramanian29-Apr-09 22:49
professionalRajesh R Subramanian29-Apr-09 22:49 
AnswerRe: How to stop the thread if it's running? Pin
Roger Stoltz29-Apr-09 22:52
Roger Stoltz29-Apr-09 22:52 
GeneralRe: How to stop the thread if it's running? Pin
Rajesh R Subramanian29-Apr-09 22:56
professionalRajesh R Subramanian29-Apr-09 22:56 
GeneralRe: How to stop the thread if it's running? Pin
Roger Stoltz29-Apr-09 23:04
Roger Stoltz29-Apr-09 23:04 
GeneralRe: How to stop the thread if it's running? Pin
Rajesh R Subramanian29-Apr-09 23:11
professionalRajesh R Subramanian29-Apr-09 23:11 
GeneralRe: How to stop the thread if it's running? Pin
CPallini29-Apr-09 23:34
mveCPallini29-Apr-09 23:34 
GeneralRe: How to stop the thread if it's running? Pin
CPallini29-Apr-09 23:32
mveCPallini29-Apr-09 23:32 
GeneralRe: How to stop the thread if it's running? Pin
Roger Stoltz29-Apr-09 23:40
Roger Stoltz29-Apr-09 23:40 
GeneralRe: How to stop the thread if it's running? Pin
CPallini29-Apr-09 23:44
mveCPallini29-Apr-09 23:44 
GeneralRe: How to stop the thread if it's running? Pin
Rajesh R Subramanian29-Apr-09 22:45
professionalRajesh R Subramanian29-Apr-09 22:45 
GeneralRe: How to stop the thread if it's running? Pin
mikert_200830-Apr-09 0:26
mikert_200830-Apr-09 0:26 
GeneralRe: How to stop the thread if it's running? Pin
Roger Stoltz30-Apr-09 2:54
Roger Stoltz30-Apr-09 2:54 
QuestionRe: How to stop the thread if it's running? Pin
David Crow30-Apr-09 3:58
David Crow30-Apr-09 3:58 
AnswerRe: How to stop the thread if it's running? Pin
David Crow30-Apr-09 4:07
David Crow30-Apr-09 4:07 
QuestionHow can I use C# Managed DLL into VC++ Application Pin
PankajB29-Apr-09 20:43
PankajB29-Apr-09 20:43 
AnswerRe: How can I use C# Managed DLL into VC++ Application Pin
Stuart Dootson29-Apr-09 20:50
professionalStuart Dootson29-Apr-09 20:50 
GeneralRe: How can I use C# Managed DLL into VC++ Application Pin
PankajB29-Apr-09 20:53
PankajB29-Apr-09 20:53 
Questionbest font for hindi Pin
Purish Dwivedi29-Apr-09 20:15
Purish Dwivedi29-Apr-09 20:15 
AnswerRe: best font for hindi Pin
CPallini29-Apr-09 21:09
mveCPallini29-Apr-09 21:09 
GeneralRe: best font for hindi Pin
Purish Dwivedi29-Apr-09 22:00
Purish Dwivedi29-Apr-09 22:00 
AnswerRe: best font for hindi Pin
Michael Schubert29-Apr-09 22:05
Michael Schubert29-Apr-09 22:05 
AnswerRe: best font for hindi Pin
Rajesh R Subramanian29-Apr-09 22:15
professionalRajesh R Subramanian29-Apr-09 22:15 
QuestionVisualC++ LineTo() call causes high usage of resouce, causing more RAM usage - Memory Not Releasing Pin
adepumadhu129-Apr-09 20:15
adepumadhu129-Apr-09 20:15 
AnswerRe: VisualC++ LineTo() call causes high usage of resouce, causing more RAM usage - Memory Not Releasing Pin
Cedric Moonen29-Apr-09 20:26
Cedric Moonen29-Apr-09 20:26 
AnswerRe: VisualC++ LineTo() call causes high usage of resouce, causing more RAM usage - Memory Not Releasing Pin
Perry Holman29-Apr-09 22:12
Perry Holman29-Apr-09 22:12 
I don't think LineTo() causes high usage of resource&RAM. You are exactly doing it in wrong way.
Firstly, you need to understand the callback function of a timer in VC can be re-called while previous call is not completed yet. Basically, each callback will create a thread.
Secondly, I don't understand why you create a thread in the callback function, which will lead to run many threads at the same time.
So i think running many threads at the same time causes your problem.

If you want to update you UI, you can set a timer or a thread in your UI class which gets data and draw them on UI periodically. Meanwhile, there is another thead to prepare those drawing data.

Welcome to www.softwaretree.net!
This website is generated completely by static html pages transforming technology.
You can find many excellent audio/video tools there!

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.