Click to See Complete Forum and Search --> : LastError always 0


-JD-
June 11th, 2004, 05:02 PM
Hi,

When I call GetLastError() I always get 0. I also tried ::GetLastError() and Marshal::GetLastWin32Error().

I have no idea :confused:

mdmd
June 12th, 2004, 08:54 PM
It'll be zero for reasons like these :
[list=1]
There was no error
Something called SetLastError(0) before you retrieved it
The function you are checking doesn't set an error here.
[/list=1]
Anything else ?

Xadoom
June 13th, 2004, 08:17 AM
Originally posted by -JD-
Hi,

When I call GetLastError() I always get 0. I also tried ::GetLastError() and Marshal::GetLastWin32Error().

I have no idea :confused:
Maybe there are no errors??:D