Click here to Skip to main content
15,907,236 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Another basic debug question - how to debug OpenCV dll from my application. Pin
Andrew Brock21-Jan-11 14:57
Andrew Brock21-Jan-11 14:57 
QuestionOpenGL and Live Video CDC. Pin
GAJERA21-Jan-11 0:57
GAJERA21-Jan-11 0:57 
QuestionHow to start debugging from application? [modified] Pin
rrrado20-Jan-11 23:27
rrrado20-Jan-11 23:27 
AnswerRe: How to start debugging from application? Pin
Andrew Brock20-Jan-11 23:36
Andrew Brock20-Jan-11 23:36 
GeneralRe: How to start debugging from application? Pin
rrrado20-Jan-11 23:45
rrrado20-Jan-11 23:45 
GeneralRe: How to start debugging from application? Pin
Andrew Brock21-Jan-11 0:38
Andrew Brock21-Jan-11 0:38 
GeneralRe: How to start debugging from application? Pin
rrrado21-Jan-11 1:26
rrrado21-Jan-11 1:26 
GeneralRe: How to start debugging from application? Pin
Andrew Brock21-Jan-11 1:35
Andrew Brock21-Jan-11 1:35 
Perhaps it is something wrong with your JIT settings.
I just ran
#include <Windows.h>
#include <CrtDbg.h>

int main() {
	OutputDebugString(TEXT("Hello\n"));
	_CrtDbgBreak();
	OutputDebugString(TEXT("World\n"));
	return 0;
}


Compiled in debug mode on VS 2008. It came up with the crashed message, 1 of the options was to debug the program.

This gave me an idea, if _CrtDbgBreak() doesn't work for you, just crash you program and attach the JIT then.
Once attached you can just drag the instruction pointer (the yellow arrow to the left of the code) to the next line and hit continue.

Something simple to crash your program would be
char *p = NULL;
*p = 0; //Write 0 to an invalid address

GeneralRe: How to start debugging from application? Pin
rrrado21-Jan-11 2:44
rrrado21-Jan-11 2:44 
Questionproblem in this little eg Pin
aesthetic.crazy20-Jan-11 23:22
aesthetic.crazy20-Jan-11 23:22 
AnswerRe: problem in this little eg Pin
CPallini20-Jan-11 23:30
mveCPallini20-Jan-11 23:30 
Questionhow to load bitmap image on button in win32 application Pin
rajniyadav1a20-Jan-11 20:32
rajniyadav1a20-Jan-11 20:32 
AnswerRe: how to load bitmap image on button in win32 application Pin
Adam Roderick J20-Jan-11 20:39
Adam Roderick J20-Jan-11 20:39 
AnswerRe: how to load bitmap image on button in win32 application Pin
Andrew Brock20-Jan-11 20:42
Andrew Brock20-Jan-11 20:42 
AnswerRe: how to load bitmap image on button in win32 application Pin
Niklas L20-Jan-11 20:43
Niklas L20-Jan-11 20:43 
Question"Binary not found" Eclipse strange error Pin
aesthetic.crazy20-Jan-11 11:18
aesthetic.crazy20-Jan-11 11:18 
AnswerRe: "Binary not found" Eclipse strange error Pin
Maximilien20-Jan-11 12:28
Maximilien20-Jan-11 12:28 
QuestionRe: "Binary not found" Eclipse strange error Pin
CPallini20-Jan-11 20:02
mveCPallini20-Jan-11 20:02 
AnswerRe: "Binary not found" Eclipse strange error Pin
aesthetic.crazy20-Jan-11 23:18
aesthetic.crazy20-Jan-11 23:18 
GeneralRe: "Binary not found" Eclipse strange error Pin
Emilio Garavaglia21-Jan-11 10:49
Emilio Garavaglia21-Jan-11 10:49 
QuestionRename a folder? Pin
Arrin20-Jan-11 3:43
Arrin20-Jan-11 3:43 
AnswerRe: Rename a folder? Pin
Maximilien20-Jan-11 3:47
Maximilien20-Jan-11 3:47 
GeneralRe: Rename a folder? Pin
Arrin20-Jan-11 4:07
Arrin20-Jan-11 4:07 
GeneralRe: Rename a folder? Pin
Arrin20-Jan-11 21:07
Arrin20-Jan-11 21:07 
GeneralRe: Rename a folder? Pin
Emilio Garavaglia21-Jan-11 10:53
Emilio Garavaglia21-Jan-11 10:53 

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.