Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

12019 error_internet_incorrect_handle_state ?

3,116 views
Skip to first unread message

Matt Butler

unread,
Jan 17, 2001, 4:34:00 PM1/17/01
to
Has anyone every had to deal with this?

12019 ERROR_INTERNET_INCORRECT_HANDLE_STATE The
requested operation cannot be carried out because the handle supplied is not
in the correct state.

I have check every API call and haven't got past this after my
HttpSendRequestEx...

lngRetVal = HttpSendRequestEx(rc1.hRequest, NULL, NULL, HSR_ASYNC,
(DWORD)&rc1);


**(VB programmer in C++)

SoftLion

unread,
Jan 18, 2001, 5:50:49 AM1/18/01
to
See KB and upgrade to IE5.

BUG: Error 12019 When Calling InternetWriteFile
--------------------------------------------------------------------------------
The information in this article applies to:
Microsoft Internet Explorer (Programming) versions 4.0, 4.01
When HttpSendRequestEx is used, error 12019
ERROR_INTERNET_INCORRECT_HANDLE_STATE
may be returned by InternetWriteFile.

RESOLUTION
This can be avoided by specifying INTERNET_FLAG_NO_CACHE_WRITE in the call to HttpOpenRequest. Here's an example:
HINTERNET hRequest = HttpOpenRequest(hConnect, "POST", "servername",
NULL, NULL, NULL, INTERNET_FLAG_NO_CACHE_WRITE, 0);
STATUS
Microsoft has confirmed this to be a bug

"Matt Butler" <mbut...@yahoo.com> wrote in message news:#UQfyzMgAHA.1564@tkmsftngp02...

Matt Butler

unread,
Jan 18, 2001, 11:08:01 AM1/18/01
to
Thanks. I've tried that with no success. I must be doing something
fundamentally wrong. I also can't run a HttpEndRequest on the request
handle...

That gives me the infamous 997 Error_io_pending.


"SoftLion" <nos...@replyToGroup.com> wrote in message
news:#L5cwxTgAHA.1572@tkmsftngp04...

SoftLion

unread,
Jan 22, 2001, 5:14:07 AM1/22/01
to
Error_io_pending means you must wait for the completion callback to receive
the code 100 (request_complete) or 70 (handle closed) (depending on the function used)
before attempting to continue.

"Matt Butler" <mbut...@yahoo.com> wrote in message news:OIK1RiWgAHA.1756@tkmsftngp02...

0 new messages