Click here to Skip to main content
15,911,474 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Serial number of USB Flash drive Pin
Taka Muraoka25-Jan-06 6:56
Taka Muraoka25-Jan-06 6:56 
GeneralRe: Serial number of USB Flash drive Pin
mrothermund25-Jan-06 7:46
mrothermund25-Jan-06 7:46 
AnswerRe: Serial number of USB Flash drive Pin
kakan25-Jan-06 20:13
professionalkakan25-Jan-06 20:13 
QuestionException (Access violation reading location) Pin
llp00na25-Jan-06 5:50
llp00na25-Jan-06 5:50 
AnswerRe: Exception (Access violation reading location) Pin
Blake Miller25-Jan-06 6:58
Blake Miller25-Jan-06 6:58 
GeneralRe: Exception (Access violation reading location) Pin
llp00na25-Jan-06 7:32
llp00na25-Jan-06 7:32 
AnswerRe: Exception (Access violation reading location) Pin
Michael Dunn25-Jan-06 10:26
sitebuilderMichael Dunn25-Jan-06 10:26 
AnswerRe: Exception (Access violation reading location) Pin
Stephen Hewitt25-Jan-06 21:09
Stephen Hewitt25-Jan-06 21:09 
I'm not sure what's going on here. First off you do not seem to be running off the end of the vector since your loop is using i<size. You do not have to initailise the BSTR to NULL - The idl of IHTMLElement::tagName looks something like this:

[propget, id(DISPID_IHTMLELEMENT_TAGNAME)] HRESULT tagName([retval, out] BSTR * p);

Notice the out attribute - This parameter is only marshalled one way. You are leaking BSTRs however, you should be calling SysFreeString(tagName) to free the old before you get a new one. This will not cause a crash however - Just leak memory. Can you provide more information? The type of exception and the code which fills the vector and perhaps a stack trace of the crash?

Steve
Question&#x6f;nmousemove Pin
misugi25-Jan-06 5:41
misugi25-Jan-06 5:41 
AnswerRe: &#x6f;nmousemove Pin
Phil J Pearson25-Jan-06 6:11
Phil J Pearson25-Jan-06 6:11 
GeneralRe: &#x6f;nmousemove Pin
misugi26-Jan-06 3:28
misugi26-Jan-06 3:28 
AnswerRe: &#x6f;nmousemove Pin
David Crow25-Jan-06 6:24
David Crow25-Jan-06 6:24 
AnswerRe: &#x6f;nmousemove Pin
Michael Dunn25-Jan-06 10:27
sitebuilderMichael Dunn25-Jan-06 10:27 
QuestionWhich way ? Pin
Great A'Tuin25-Jan-06 4:56
Great A'Tuin25-Jan-06 4:56 
AnswerRe: Which way ? Pin
toxcct25-Jan-06 5:00
toxcct25-Jan-06 5:00 
AnswerRe: Which way ? Pin
Bob Stanneveld25-Jan-06 21:15
Bob Stanneveld25-Jan-06 21:15 
GeneralRe: Which way ? Pin
Great A'Tuin25-Jan-06 21:43
Great A'Tuin25-Jan-06 21:43 
GeneralRe: Which way ? Pin
Bob Stanneveld25-Jan-06 23:08
Bob Stanneveld25-Jan-06 23:08 
GeneralRe: Which way ? Pin
Great A'Tuin25-Jan-06 23:42
Great A'Tuin25-Jan-06 23:42 
QuestionException 0x406d1388 Pin
Phil J Pearson25-Jan-06 3:58
Phil J Pearson25-Jan-06 3:58 
AnswerRe: Exception 0x406d1388 Pin
Toby Opferman26-Jan-06 12:43
Toby Opferman26-Jan-06 12:43 
GeneralRe: Exception 0x406d1388 Pin
Phil J Pearson26-Jan-06 23:47
Phil J Pearson26-Jan-06 23:47 
GeneralRe: Exception 0x406d1388 - FIXED!! Pin
Phil J Pearson27-Jan-06 0:59
Phil J Pearson27-Jan-06 0:59 
AnswerRe: Exception 0x406d1388 - FIXED!! Pin
Phil J Pearson27-Jan-06 0:58
Phil J Pearson27-Jan-06 0:58 
GeneralRe: Exception 0x406d1388 - FIXED!! Pin
Toby Opferman27-Jan-06 7:14
Toby Opferman27-Jan-06 7:14 

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.