Re: After recalling same Function get GetLastError = 1008

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"Martin Vuille" <jpmv27@xxxxxxxxx> schrieb im Newsbeitrag
news:Xns9901685DB70CFjpmvrealtime@xxxxxxxxxxxxxxxxxx
"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.

Hi Martin,

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.

yes, this makes sense. Since i do not get always the
error code, but sometimes only a hung, or even crush.

Thank you very much,...

Best regards

Kerem Gümrükcü


.



Relevant Pages

  • Re: After recalling same Function get GetLastError = 1008
    ... 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 ...
    (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)