RE: WMI question

"Chris Tavares" <cct-/[email protected]>
Newsgroups gmane.comp.windows.off-topic
Message-ID <001b01cb9330$af56dd90$0e0498b0$@com>
And can you post the actual error message? What address is it trying to access when the access violation happens?

 

-Chris

 

From: [email protected] [mailto:[email protected]] On Behalf Of Stoyan Damov
Sent: Friday, December 03, 2010 1:18 PM
To: [email protected]
Subject: Re: [OT] WMI question

 

  

John, it's not the pointer incrementation that causes the AV, it's the dereferencing of the pointer (which is most probably 0). Can you paste some code?

On Fri, Dec 3, 2010 at 11:07 PM, Kim Gräsman <[email protected]> wrote:

  

Hi John,

On Fri, Dec 3, 2010 at 21:49, John Smith <[email protected]> wrote:

 

I'm wondering if the information I am querying for (i.e. Win32_AccountSID) in this case, is returning information that is not what the wcslen( ) is expecting... Why else would the 'eos' pointer incrementation cause the access violation?  Any ideas?

 

Yeah, that's probably it.

 

wcslen is a function to get the length of a zero-terminated wide-character string, usually of type "const wchar_t*" or "LPCWSTR" -- what are you passing to it?

 

- Kim
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.