Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 30th, 2007, 3:01 AM   #1
mukul
Newbie
 
Join Date: Sep 2007
Posts: 2
Rep Power: 0 mukul is on a distinguished road
programming or virus problem

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 .
mukul is offline   Reply With Quote
Old Sep 30th, 2007, 3:03 AM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Forum help and debugging both depend on lots of accurate information. You're hovering right around empty.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Sep 30th, 2007, 3:10 AM   #3
mukul
Newbie
 
Join Date: Sep 2007
Posts: 2
Rep Power: 0 mukul is on a distinguished road
The applications is an image processing application using CxImage 5.99c library . I have run the application several times but there is no regular pattern of the quiting of application . It just quits itself anytime . There is no trend of quiting . The values of all the inernal variables used is coming out to be correct . I dont know how to proceed further to find out the cause of problem . All my attempts for checking run time bound cheking are showing correct results .
mukul is offline   Reply With Quote
Old Sep 30th, 2007, 3:53 AM   #4
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,207
Rep Power: 5 grumpy is on a distinguished road
The symptoms you describe suggest a programming error, either in the CxImage library, or in your code that uses it. Certainly, the most common cause of an abnormal program termination is an error by the programmer who wrote it (or, if libraries are being used, by the programmer of the library). Symptoms that change every time you run the program might suggest the cause of the error is some operation on input data (or output data that is read in next time) or, in really bad (and thankfully relatively rare) cases, might suggest your program is misbehaving so badly that it is upsetting functioning of the operating system.

The fact that internal variables are being printed out correctly probably means nothing. It is quite possible to have code misbehaving before or after you print the data out without affecting some specific data.

It is extremely unlikely a virus is causing your problem. Viruses very rarely target programs that are under development by computer users. Those that do will typically have more wide ranging symptoms.

You haven't really provided enough information for people to help. What you need to do is attempt to find a SMALL but COMPLETE sample of code that exhibits your symptoms. That can mean commenting out large (or small) areas of code, until the symptoms change or disappear -- and then try to work out WHY the symptoms have changed. You might have to do this several times as odds are in favour of there being lots of problems in your code that contribute to the problem.

For future reference, it is a good idea to get small parts of your program working correctly, rather than trying to get everything going at once. Then, once you have small parts working, progressively put them together and check how they interact. Such approaches avoid the problems you're having, rather than leaving them to the end when they are more difficult to find.
grumpy is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
need advice on problem with wireless network programming dark_omen C++ 2 Mar 13th, 2007 8:46 PM
programming problem mcl1008 Java 6 Nov 6th, 2006 1:59 PM
Virus problem Nebula Coder's Corner Lounge 13 May 3rd, 2006 5:02 PM
C programming problem mmmm_strawberries C++ 3 Mar 1st, 2005 3:48 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:34 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC