Click here to Skip to main content
15,908,675 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to debug a program for unknown error?? Pin
Kiran Satish14-Jan-09 12:11
Kiran Satish14-Jan-09 12:11 
AnswerRe: How to debug a program for unknown error?? Pin
Stephen Hewitt14-Jan-09 13:51
Stephen Hewitt14-Jan-09 13:51 
AnswerRe: How to debug a program for unknown error?? Pin
Randor 14-Jan-09 14:50
professional Randor 14-Jan-09 14:50 
GeneralRe: How to debug a program for unknown error?? Pin
Kiran Satish14-Jan-09 15:52
Kiran Satish14-Jan-09 15:52 
GeneralRe: How to debug a program for unknown error?? Pin
Stephen Hewitt14-Jan-09 18:19
Stephen Hewitt14-Jan-09 18:19 
GeneralRe: How to debug a program for unknown error?? Pin
Kiran Satish15-Jan-09 9:49
Kiran Satish15-Jan-09 9:49 
GeneralRe: How to debug a program for unknown error?? Pin
Randor 15-Jan-09 12:57
professional Randor 15-Jan-09 12:57 
GeneralRe: How to debug a program for unknown error?? [modified] Pin
Kiran Satish15-Jan-09 13:46
Kiran Satish15-Jan-09 13:46 
That option "Generate Debug Info" is always enabled in my applications in debug mode. Will go through the PDB files article in a min.
I found a problem/unhandled exception wihtin the application relating to CComVariant. As I said my application communicates with another system using ethernet while at the same time it communicates with another program within the system using COM port. Inorder to handle the events from COM port (CMSComm object), I use a CComVariant object to read the data from CMSComm object whenever it triggers OnReceiveMessage() event. This is how I have used it in my program -
void CMyApplicationDlg::OnReceiveMessage() //1
{//2
 if(m_ComRecCommand.GetCommEvent() == 2) //3 On receiving data at the receive buffer
 {//4
  CString buffer,vidname,val;//5
  m_cvRespInput.Clear();//6
  m_cvRespInput = m_ComRecCommand.GetInput();	//7
  buffer = m_cvRespInput.bstrVal;//8
 }//9
}//10

It gives me error at line 8, when I watch the variable in debug mode, it shows VT_ERROR for CComVariant object. This is not the case before using ethernet communication from another system. But once I use it, this one shows only VT_ERROR. Am confused on understanding why this is happening???Confused | :confused:

PKNT

modified on Thursday, January 15, 2009 8:56 PM

QuestionRe: How to debug a program for unknown error?? Pin
Randor 15-Jan-09 16:20
professional Randor 15-Jan-09 16:20 
QuestionProgramming Cell Phone with MIDP on C-language Pin
Michael Monin14-Jan-09 10:20
Michael Monin14-Jan-09 10:20 
AnswerCP IGNORE - Not a question. Pin
leckey14-Jan-09 11:02
leckey14-Jan-09 11:02 
JokeThis is a question Pin
Luc Pattyn14-Jan-09 12:52
sitebuilderLuc Pattyn14-Jan-09 12:52 
JokeRe: This is a question Pin
Hamid_RT14-Jan-09 18:44
Hamid_RT14-Jan-09 18:44 
JokeRe: This is a question Pin
CPallini14-Jan-09 21:33
mveCPallini14-Jan-09 21:33 
RantMy vote of 1 Pin
CPallini14-Jan-09 21:28
mveCPallini14-Jan-09 21:28 
GeneralRe: My vote of 1 Pin
Luc Pattyn15-Jan-09 1:15
sitebuilderLuc Pattyn15-Jan-09 1:15 
QuestionView activation Pin
Member 465568514-Jan-09 4:25
Member 465568514-Jan-09 4:25 
AnswerRe: View activation Pin
Iain Clarke, Warrior Programmer14-Jan-09 4:28
Iain Clarke, Warrior Programmer14-Jan-09 4:28 
GeneralRe: View activation Pin
Member 465568514-Jan-09 23:24
Member 465568514-Jan-09 23:24 
GeneralRe: View activation Pin
Iain Clarke, Warrior Programmer14-Jan-09 23:35
Iain Clarke, Warrior Programmer14-Jan-09 23:35 
GeneralRe: View activation Pin
Member 465568514-Jan-09 23:48
Member 465568514-Jan-09 23:48 
GeneralRe: View activation Pin
Iain Clarke, Warrior Programmer15-Jan-09 0:01
Iain Clarke, Warrior Programmer15-Jan-09 0:01 
AnswerRe: View activation Pin
Stephen Hewitt14-Jan-09 4:29
Stephen Hewitt14-Jan-09 4:29 
QuestionHow to convert IPv6 IP Address to Ipv4 address Pin
singh_nav14-Jan-09 2:27
singh_nav14-Jan-09 2:27 
AnswerRe: How to convert IPv6 IP Address to Ipv4 address Pin
David Crow14-Jan-09 2:48
David Crow14-Jan-09 2:48 

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.