Quote:
I want to tell that my code doesn't execute this row of code:
AfxMessageBox(...)
Well, that helps.
The way to tell is to start by using the debugger:
MFC Debugging Techniques - Visual Studio (Windows) | Microsoft Docs[
^]
Put a breakpoint on the first line of the function containing the AfxMessageBox call and check that it gets that far.
If it doesn't you need to look at the rest of your code to find out why.
If it does, single step the function watching closely to see what happens, and you should see that either that line of code is executed, or not.
If is isn't, the single stepping should tell you why not.
If it is ... then that's unlikely, so you will need to start by looking at environmental factors to work out why as that call is used a lot!
Sorry, but we can't do any of that for you!