Link to home
Start Free TrialLog in
Avatar of LeeOgley
LeeOgley

asked on

Strange occurances with MFC App

Hi,

I've got a strange problem, that I was hoping someone could shread some light on, or point me in the right direction.

I have a MFC Dialog Application (VC 6, SP3), which has about 12 screens.  During testing I've found no problems.  

My problem is that the system is now live on a crane system.  After a time a couple of buttons dissappear from one of the displays (always same buttons I think).  More strange is that a certain screen (always the same one) shrinks.  All the buttons/edit boxes on the form shrink to the top left, to such a level that the buttons are almost too small to push.

Re-booting the machine solves the problem.  The time-span until this problem arises differs.  Unfortuantetly I have not been present during any of these funnies, and just working on reports that I've been given.

I originally wrote the program in VC 5, no serices packs, and when the problem arose moved to the latest version, but the funnies keep happening.

I appreciate that I've been vague, but this is all I have to work on at the moment, until more reports come in.

Any ideas will be greatly appreciated.

Lee.
Avatar of mikeblas
mikeblas

Sounds like you're leaking resources in USER. I think you should do some more aggressive testing--maybe try a tool like BoundsChecker to detect leaks, or do some code reviews with your team.

..B ekiM
Increase the RAM on other m/c where UR running application.
More memory will delay the onset the symptoms. I think Lee wants to eradicate their cause.

..B ekiM
Avatar of LeeOgley

ASKER

mikeblas,

I thought of this, but I don't use commands like new or memalloc anywhere, could I still be leaking resources.

Lee.
ASKER CERTIFIED SOLUTION
Avatar of mikeblas
mikeblas

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
not a viable solution, would only delay onset of problem
this is probably the problem - just hard to trace

thanks