Hello all!
I'm new in this group! Please help me with this: I wrote a big application that run others applications. It also has somethin like 4 objects. The problem is that a variable used in a loop, suddenly get impossible numbers; let' say: for (i=0;i<12;i++), suddenly I get i=12 or i=-12334454.
I assume that may be is a memory problem. In all objects used, I used the NEW operator in the constructor. An the constructor is called once in the beggining of the main program. The loop uses methods of the 4 objects, but in this method there is no NEW operator at all. May be the problem is in another command? I use DB commands, and also I used the command "CreateProcess". But also used CloseHandle. PLEASE, can anyone help me with this??? I'm getting crazy!!!
Thank you all!
I'm new in this group! Please help me with this: I wrote a big application that run others applications. It also has somethin like 4 objects. The problem is that a variable used in a loop, suddenly get impossible numbers; let' say: for (i=0;i<12;i++), suddenly I get i=12 or i=-12334454.
I assume that may be is a memory problem. In all objects used, I used the NEW operator in the constructor. An the constructor is called once in the beggining of the main program. The loop uses methods of the 4 objects, but in this method there is no NEW operator at all. May be the problem is in another command? I use DB commands, and also I used the command "CreateProcess". But also used CloseHandle. PLEASE, can anyone help me with this??? I'm getting crazy!!!
Thank you all!