Jump to content

programming or virus problem

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
mukul

mukul

    Newbie

  • Members
  • Pip
  • 2 posts
Hello

I am a programmer working on visual studio 6.0 and working on visual C++ . I made a windows 32 bit application using mfc . The application is running all right but the application quits itself while running without any error message . I know this can be due to run time memory bound overrun but i have checked and rechecked it lots and lots of times but not able to find any such problem . Even if i dont execute any memory allocation code the same problem still prevails . I am not sure whether it is due to erronous coding or there is some virus in my system . please help me out .

#2
v0id

v0id

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,936 posts
What about your other applications on your computer, I mean, also those you haven't made yourself. Do they quit too?

It's no secret that MFC is bad designed, or at least, it's said to be. I haven't used it myself. It could be the MFC-part that screws your program in some way. I don't mean you've done bad coding, but behind what you're seeing.

You could try to run your program through a debugger.

#3
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts
Even if your code has no bad coding it could still be a memory leak with the MFC libraries. Those libraries were horrible. I remember some of the applications that I made did the exact same thing. Scan your computer for a virus.

Another possibility is that you have bad memory. I don't know if there is a way to catch errors in MFC but you may want to look into that so you can receive an error message and determine the problem.