News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Error 12

Started by skywalker, May 18, 2007, 12:32:36 PM

Previous topic - Next topic

skywalker

How can I check for Error 12, No_More_Files.

Thanks.

Tedd

..?
invoke GetLastError
.IF (eax==ERROR_TOO_MANY_OPEN_FILES)
    ;..whine..
.ENDIF


..though ERROR_TOO_MANY_OPEN_FILES has the value 4, and 12 is ERROR_INVALID_ACCESS

Where does "Error 12" come from - what function causes it?
No snowflake in an avalanche feels responsible.

sinsi

Quote from: Tedd on May 18, 2007, 12:45:54 PM
..though ERROR_TOO_MANY_OPEN_FILES has the value 4, and 12 is ERROR_INVALID_ACCESS
...and ERROR_NO_MORE_FILES is 18 (12h)
Light travels faster than sound, that's why some people seem bright until you hear them.

skywalker

Here's a screenshot.



[attachment deleted by admin]

sinsi

Presumably this is from your killbart program?

Process32First/Process32Next in MSDN say
QuoteThe ERROR_NO_MORE_FILES error value is returned by the GetLastError function if no processes exist or the snapshot does not contain process information.

Light travels faster than sound, that's why some people seem bright until you hear them.

skywalker

I would like it to tell me if the program isn't in memory for error checking. I put in message boxes in several places, but couldn't get any to work. I hope that makes sense.