|
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.
|