Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • Last Modified:

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.
0
LeeOgley
Asked:
LeeOgley
  • 3
  • 3
1 Solution
 
mikeblasCommented:
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
0
 
inprasCommented:
Increase the RAM on other m/c where UR running application.
0
 
mikeblasCommented:
More memory will delay the onset the symptoms. I think Lee wants to eradicate their cause.

..B ekiM
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
LeeOgleyAuthor Commented:
mikeblas,

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

Lee.
0
 
mikeblasCommented:
new isn't a command, it's an operator. I've never heard of memalloc; do you mean malloc()?

Anyway, yes. You might leak memory by misusing other classes without calling those functions directly, yourself.

But those functions never leak resources. If you're incorrectly creating, using, or not properly destroying Windows resources--like Windows, atoms, brushes, pens, fonts, synchronization objects, and so on, you'll leak them.

..B ekiM
0
 
LeeOgleyAuthor Commented:
not a viable solution, would only delay onset of problem
0
 
LeeOgleyAuthor Commented:
this is probably the problem - just hard to trace

thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now