Hi boys:
I was programming an application in C++ Builder 6, and I had encountered this rare problem:
void RotateDice()
{
Graphics::TBitmap *MYbitmap = new Graphics::TBitmap();
Randomize();
int rn = random(6) + 1;
switch (rn)
{
case 1:
{
//...
break;
}
//... Some cases...
}
ShowDice(); //it's a function to show the dice
delete MYbitmap; //the compiler don't get it!!!!
}
In the line "ShowDice()", the compiler jumps to the final of the RotateDice() method, it doesn't "see" the line "delete MYbitmap". When I compile the program, every compiled line shows a little blue point in its left side, but that line don't show the blue point... it's like the compiler don't "see" the line of code. What's happening with that????
Note: Some days ago, I was writing a program in Delphi and I was advice of that problematic issue. Some like that happened to me in Delphi 7... So, waht the problem with that?
I am so sorry about my English. I am from Cuba.