1 00:00:01,060 --> 00:00:02,470 Welcome back. 2 00:00:02,530 --> 00:00:10,250 In the previous lesson we saw how to search for in on your records and how to set break. 3 00:00:10,690 --> 00:00:18,010 In this lesson we are going to learn the third way which is to examine the casting and then to celebrate 4 00:00:18,010 --> 00:00:20,890 points on the address. 5 00:00:20,890 --> 00:00:21,630 So let's begin 6 00:00:24,960 --> 00:00:32,690 Randy correct me program from the excessive for the BJP 7 00:00:35,520 --> 00:00:38,500 and then take on mutton run. 8 00:00:38,730 --> 00:00:43,460 Press F nine to run to the entry point. 9 00:00:46,130 --> 00:00:48,400 And then run again. 10 00:00:50,030 --> 00:00:57,760 O F nine and the window program starts So now enter anything. 11 00:01:01,180 --> 00:01:10,400 And then click on button check and you will get a message box showing up showing the wrong zero key 12 00:01:10,610 --> 00:01:11,210 message. 13 00:01:12,230 --> 00:01:16,570 So I just point immediately click on the post button here. 14 00:01:18,900 --> 00:01:23,060 And then from here you go through the costing. 15 00:01:23,130 --> 00:01:29,650 It is very important to clean the pass button then go to the to say it passed but then it passed the 16 00:01:29,650 --> 00:01:31,260 debugger. 17 00:01:31,290 --> 00:01:34,840 So now you go to the casting and click on it. 18 00:01:35,940 --> 00:01:41,300 And here you will see a list of all the calls that has been made since the program started. 19 00:01:41,610 --> 00:01:42,860 And you can trace it. 20 00:01:43,050 --> 00:01:46,290 The first call was made by system. 21 00:01:46,290 --> 00:01:53,490 Then the second call also system and so on and you can see all the way up here and there is one call 22 00:01:54,120 --> 00:02:01,160 which is made by the user my new which is this one here from two. 23 00:02:01,270 --> 00:02:10,230 So these are modules of under the column from and is making a call to the system so this was the last 24 00:02:10,230 --> 00:02:16,620 call that came from the user my you guessed before the message box was shown. 25 00:02:16,620 --> 00:02:19,970 So this is the one we want to trace. 26 00:02:20,370 --> 00:02:31,180 So you can select this correctly and follow from so he can follow to be used to follow this column is 27 00:02:31,270 --> 00:02:31,950 right. 28 00:02:32,140 --> 00:02:35,950 You can follow from his to follow the from column which is this address. 29 00:02:36,280 --> 00:02:39,470 So the one we won at this point is from. 30 00:02:39,610 --> 00:02:45,010 So click follow from any region to the location of the car. 31 00:02:46,270 --> 00:02:53,950 So the address normally will be the one just before the address shown here which is this one. 32 00:02:53,950 --> 00:03:02,650 So this is the last call that was made from the user space to the system so we can see it is correct. 33 00:03:02,650 --> 00:03:10,870 This was the message box I was showing the error message box and the car is a call to show this error 34 00:03:10,870 --> 00:03:11,320 message. 35 00:03:12,140 --> 00:03:16,420 And now you can put your breakpoint anyway in the usual way and examine the code. 36 00:03:17,440 --> 00:03:28,640 So this is how you can use the stack to search for the to trace the call that produced the error message. 37 00:03:30,020 --> 00:03:38,660 And don't confuse this costing with the stack down here the state down here is the temporary memory 38 00:03:39,170 --> 00:03:47,420 location used by each of the calls but this can't stay is the history of calls history or the calls 39 00:03:47,450 --> 00:03:52,710 that has been made by the program so that's all for this lesson. 40 00:03:52,720 --> 00:03:53,620 Thank you for watching.