Home > Software engineering >  Vc basic type of application has stopped working
Vc basic type of application has stopped working

Time:09-30


Generate qr code files, direct input text in the edit box can generate qr code, select a text file after prompt vc base class application has stopped work

Perform found that the following program has a problem, but can't find the problem where, seek advice
Bool flag=false;
Int i1=0;
Int k1=0;

Char * * abyte3=new char * [iLen1];
Char * abyte4=new char [j];
Memset (abyte4, 0, j);
Memcpy (abyte4 abyte0, iLen0);


Int ab3Length=0;
For (int k=0; K & lt; ILen1; K++) {
Ab3Length=(abyte1 [k] & amp; 255) - byte0;
Abyte3 [k]=new char [(abyte1 [k] & amp; 255) - byte0];
Memset (abyte3 [k], 0, (abyte1 [k] & amp; 255) - byte0);
}

For (int l=0; L & lt; i; L++)
{
=abyte0 abyte3 [k1] [i1] [l];

If (+ + i1 & gt;=(abyte1 (k1) & amp; 255) - byte0)
{
I1=0;
K1 + +;
}
}

CodePudding user response:

The index to examine array access

CodePudding user response:

Collapsed in the pop-up dialog box, press the corresponding button to enter debugging press Alt + 7 key to view the Call Stack, namely "the Call Stack" from the inside to the following out of from the inner to outer function Call history, double-click a row to the cursor to the Call of the source code or assembly instruction, don't understand when double click on the next line, until we can read ,

CodePudding user response:

Direct the compiler tracking, check the abnormal call stack, find your code, the crossing the line somewhere, or a pointer is not correct