Re: User Interface stops working
- From: "AliR \(VC++ MVP\)" <AliR@xxxxxxxxxxxxx>
- Date: Wed, 18 Jul 2007 15:02:13 GMT
In that case either post the code where you think the problem is.
AliR.
"RS" <RS@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D2494BEE-9C6A-4BED-A6CF-A53D3E99CFBE@xxxxxxxxxxxxxxxx
When this happens do other things
running slow also?
Other applications continue to work fine. If MS Visual Studio 2005 IDE
window is open it takes more time to switch to this window.
When you bring up the task manager what percentage of
the CPU is your app using?
This application is CPU intensive. It uses around 30%-80% CPU. However,
when
this problem happens it continues to use the same amount of CPU and memory
as
the amount used before the problem happens.
Thanks and regards,
RS
"AliR (VC++ MVP)" wrote:
Sounds like you have a leak of some sort. When this happens do other
things
running slow also? When you bring up the task manager what percentage of
the CPU is your app using?
Either way this problem will be somewhat hard to figure out without some
code, you might want to start with posting your dialog switching code.
AliR.
"RS" <RS@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8999A58B-FDF5-4D18-87FC-F2E073DA3D78@xxxxxxxxxxxxxxxx
Hi,
I am developing an application using MFC in MS Visual Studio 2005. I
created
a single dialog based MFC application.
The framework generates the code required to create the single dialog
box.
In the InitInstance() function, the dialog box is created using
DoModal()
to
create a modal dialog box.
I have added a tab control in the main dialog box. I have 5 tabs. For
each
tab, I create a dialog box using MFC. Each dialog box contains various
buttons and controls. One dialog box contains an ActiveX control
object.
When a particular tab is selected by the user, the corresponding dialog
is
displayed in the tab window area.
The program works fine when it is launched. But after 5 minutes or so,
the
tab switching becomes slower. After another 2 minutes or so, the dialog
corresponding to a tab takes more time to display various buttons and
controls.
Then, after another few minutes, the main dialog box breaks. Various
dialog
boxes corresponding to various tabs are then displayed in areas outside
the
tab window area. The window stops responding to user inputs. The cancel
button also does not work any more. Then the application has to be
terminated
from the task manager.
Does anyone know why this is happening? What should I do to correct
this
problem?
I thank you very much in advance for your time and for your help.
Regards,
RS
.
- References:
- Re: User Interface stops working
- From: AliR \(VC++ MVP\)
- Re: User Interface stops working
- From: RS
- Re: User Interface stops working
- Prev by Date: Re: Richedit problems
- Next by Date: Re: Using SetDIBits to initialize a CBitmap?
- Previous by thread: Re: User Interface stops working
- Next by thread: Re: User Interface stops working
- Index(es):