The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: willbe on December 23, 2005, 02:02:24 AM

Title: Text Scrolling Problem
Post by: willbe on December 23, 2005, 02:02:24 AM
Hi all !
I've got problem with this text scrolling. It scrolls too fast. Somebody please help me find out the problems ? Many thanks !
Title: Re: Text Scrolling Problem
Post by: MichaelW on December 23, 2005, 06:39:46 AM
If you use System Monitor to monitor the number of threads (System\Threads) you will see that each time the dialog is opened and closed the total number of threads increases by two, so paint_proc is being called from first one thread, then 3, then 5, etc. I think you need to provide some method of exiting the thread, and resetting the necessary variables, when the second dialog is closed, or create the thread only once, and thereafter use SuspendThread and ResumeThread to control it.

Title: Re: Text Scrolling Problem
Post by: willbe on December 23, 2005, 08:03:38 AM
Thank MichaelW, but no luck for me  :'( could you please help me to fix this. thanks