Click here to get back home

Asynch wininet - Threaded or not?

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Asynch wininet - Threaded or not? Fred 02-01-2006
Posted by Fred on February 3, 2006, 1:36 pm
Please log in for more thread options

> Hello, Fred.
>

> Each thread (or thread from the pool) makes InternetConnect using handle
> returned by InternetOpen. Most likely your thread would not be blocked by
> call of InternetConnect, it might hung when you will make call to
> HttpOpenRequest / HttpSendRequst, so to cancel blocking of thread you
should
> close handle of request(or whatever) it made. Microsofts examples closes
> handle returned by InternetOpen, but you may cancel execution closing
handle
> returned by HttpOpenRequest or simular function.
>
> So, once more:
>
> 1. Locate where your thread may hung (InternetReadFile, HttpSendRequest,
> etc)
> 2. Associate HINTERNET handles open by thread with thread's handle.
> 3. Mark position *what* wininet function is executed in each thread.
> 4. When thread is hung, read the position - you know what function is
> executed, and the handle it uses, simply close it.


OK,

I'll try it.

Cheers



Similar ThreadsPosted
Re: Asynch wininet - Threaded or not? February 2, 2006, 2:45 pm
SSL with WinINet April 16, 2008, 4:30 pm
WinInet problem August 1, 2005, 1:44 am
Can wininet functions trigger CM to auto-establish a GPRS connecti June 11, 2005, 10:03 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap