Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dynamically Add Items to Context Menu Pin
Hamid_RT12-Jun-07 21:13
Hamid_RT12-Jun-07 21:13 
QuestionPage boundary Pin
tom groezer12-Jun-07 17:32
tom groezer12-Jun-07 17:32 
AnswerRe: Page boundary Pin
Michael Dunn12-Jun-07 18:09
sitebuilderMichael Dunn12-Jun-07 18:09 
GeneralRe: Page boundary Pin
Stephen Hewitt12-Jun-07 18:13
Stephen Hewitt12-Jun-07 18:13 
QuestionInstruction Pointer Pin
tom groezer12-Jun-07 17:23
tom groezer12-Jun-07 17:23 
AnswerRe: Instruction Pointer Pin
Sarath C12-Jun-07 17:39
Sarath C12-Jun-07 17:39 
QuestionRe: Instruction Pointer Pin
tom groezer12-Jun-07 18:02
tom groezer12-Jun-07 18:02 
AnswerRe: Instruction Pointer Pin
Stephen Hewitt12-Jun-07 18:01
Stephen Hewitt12-Jun-07 18:01 
tom groezer wrote:
Is it possible that an Instruction Pointer value is NULL and is caught during debugging? What is the implication?

Yes, it's possible. The following C++ code will result in this:
// CommandLine.cpp : Defines the entry point for the console application.
 
#include "StdAfx.h"
#include <iostream>
#include <windows.h>
 
void main()
{
	typedef void (*PFun_t)(); // Function pointer.
	PFun_t pFun = NULL;	// Set it to NULL.
 
	__try
	{
		// Now call through the pointer.
		(*pFun)();
	}
	__except(EXCEPTION_EXECUTE_HANDLER)
	{
		using namespace std;
		cout << "Caught!!!" << endl;
	}
}


Steve

GeneralRe: Instruction Pointer Pin
tom groezer12-Jun-07 18:08
tom groezer12-Jun-07 18:08 
GeneralRe: Instruction Pointer Pin
Stephen Hewitt12-Jun-07 18:10
Stephen Hewitt12-Jun-07 18:10 
GeneralRe: Instruction Pointer Pin
Michael Dunn12-Jun-07 18:12
sitebuilderMichael Dunn12-Jun-07 18:12 
GeneralRe: Instruction Pointer Pin
Stephen Hewitt12-Jun-07 20:54
Stephen Hewitt12-Jun-07 20:54 
AnswerRe: Instruction Pointer Pin
Rajkumar R12-Jun-07 21:43
Rajkumar R12-Jun-07 21:43 
GeneralRe: Instruction Pointer Pin
Stephen Hewitt12-Jun-07 22:11
Stephen Hewitt12-Jun-07 22:11 
GeneralRe: Instruction Pointer Pin
Rajkumar R12-Jun-07 22:21
Rajkumar R12-Jun-07 22:21 
GeneralRe: Instruction Pointer Pin
Stephen Hewitt12-Jun-07 22:24
Stephen Hewitt12-Jun-07 22:24 
GeneralRe: Instruction Pointer Pin
Rajkumar R12-Jun-07 22:33
Rajkumar R12-Jun-07 22:33 
GeneralRe: Instruction Pointer Pin
Stephen Hewitt12-Jun-07 22:40
Stephen Hewitt12-Jun-07 22:40 
GeneralRe: Instruction Pointer Pin
Rajkumar R12-Jun-07 22:50
Rajkumar R12-Jun-07 22:50 
GeneralRe: Instruction Pointer Pin
Stephen Hewitt13-Jun-07 13:19
Stephen Hewitt13-Jun-07 13:19 
AnswerRe: Instruction Pointer Pin
Rajkumar R13-Jun-07 18:51
Rajkumar R13-Jun-07 18:51 
GeneralRe: Instruction Pointer Pin
Stephen Hewitt13-Jun-07 18:54
Stephen Hewitt13-Jun-07 18:54 
AnswerRe: Instruction Pointer Pin
Rajkumar R13-Jun-07 19:50
Rajkumar R13-Jun-07 19:50 
QuestionDebugging Pin
tom groezer12-Jun-07 16:58
tom groezer12-Jun-07 16:58 
AnswerRe: Debugging Pin
Xing Chen12-Jun-07 17:28
Xing Chen12-Jun-07 17:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.