|
-
January 30th, 2006, 04:38 AM
#1
InternetOpenUrl in multithread app
Hi.
I have two threads in my application. In worker thread i download some html page using InternetOpenUrl,for that use CAmHttpSocket(http://www.codeproject.com/internet/amhttputils.asp).
In general words in work thread I create connection to the url which is passed from main thread. All works fine. But when i close my application i get User Breakpoint with stack:
NTDLL! 77f813b1()
NTDLL! 77fcffd0()
NTDLL! 77fb6ca7()
NTDLL! 77fb73fd()
NTDLL! 77fad09b()
NTDLL! 77fad16e()
NTDLL! 77f9ac03()
KERNEL32! 794569c3()
doexit(int 0, int 0, int 0) line 392
exit(int 0) line 279 + 13 bytes
wWinMainCRTStartup() line 345
KERNEL32! 7945893d()
Before close worker thread i close all HINTERNET by InternetCloseHandle().
I compile my program as UNICODE and with runtime library as Multithreaded DLL. If i don't use InternetOpenUrl all works fine.
What can cause behaviour like this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|