ReadFille error caused by USB sniffer
- From: "HMS Surprise" <john@xxxxxxxxxxxxxxxx>
- Date: 12 Mar 2007 12:50:30 -0700
I had a ReadFile call for a USB device that worked fine until I
installed a USB sniffer. Then I started getting 1784 error
ERROR_INVALID_USER_BUFFER. The sniffer was not running only installed.
I uninstalled the sniffer and the problem left. The buffer was
declared in the function where ReadFile is called. Perhaps the problem
would have cleared if I had a global or class level variable. Will try
it when components are available again.
I suspect that there is some code substitution going on but don't
think they would substitute the .lib or .dll. Perhaps a macro
substitution in a header file is used? What are the common methods of
doing this and how can I check? I have written to the vendor but have
not received a reply.
I should have started by asking a more basic question as I come from a
Unix background. On one of the MSDN library page for ReadFile,
http://msdn2.microsoft.com/en-us/library/aa365467.aspx , it says lib
Kernel32.lib is needed as well as Kernel32.dll. Why are both needed?
Thanks,
jh
.
- Follow-Ups:
- Re: ReadFille error caused by USB sniffer
- From: William DePalo [MVP VC++]
- Re: ReadFille error caused by USB sniffer
- Prev by Date: Re: named pipe
- Next by Date: Re: Can't get debug heap working
- Previous by thread: Re: named pipe
- Next by thread: Re: ReadFille error caused by USB sniffer
- Index(es):
Relevant Pages
|