Re: After recalling same Function get GetLastError = 1008



"Kerem Gümrükcü" <kareem114@xxxxxxxxxxx> wrote in
news:ew2CxGUcHHA.4888@xxxxxxxxxxxxxxxxxxxx:

you are my Hero!
I was about to become crazy.
But why did i get such a "wrong" last error code?

Because you were writing past the end of the buffer
and overwriting some other variable(s) there. One of
those variables must have been your handle.

MV

--
I do not want replies; please follow-up to the group.
.



Relevant Pages

  • Re: After recalling same Function get GetLastError = 1008
    ... Because you were writing past the end of the buffer ... and overwriting some other variablethere. ... error code, but sometimes only a hung, or even crush. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Error log design...
    ... > It seems the first problem is in the specs. ... > log buffer. ... And the error code would tell you how much data follows. ... > b) Output the limited buffer when button is pressed ...
    (comp.lang.c)
  • Re: Error log design...
    ... > It seems the first problem is in the specs. ... > log buffer. ... And the error code would tell you how much data follows. ... > b) Output the limited buffer when button is pressed ...
    (comp.arch.embedded)
  • Re: _bstr_t or CComBSTR
    ... CComBSTR ... returns an error code. ... It then carries this buffer around ... reason entirely - to relinquish control of the underlying BSTR pointer, ...
    (microsoft.public.vc.language)
  • Re: recvfrom returns with an error code of 14, EFAULT "Bad Address"
    ... Sounds like you passed an uninitialized pointer as the buffer argument ... >would report this error. ... Buffer is an input parameter, ...
    (comp.unix.programmer)