Re: CInternetSession
- From: SOCAR <socar@xxxxx>
- Date: Mon, 28 May 2007 01:14:16 +0200
Dnia Sun, 27 May 2007 18:28:53 -0400, Joseph M. Newcomer napisał(a):
ARGH! I'd missed that infinite loop! This is clearly a bad design.
In this case, the presence of the Sleep(10000) indicates the serious design flaw. The
correct model would be to simply use an OnTimer event that would trigger the next
iteration, and use a timer interval of 10000 ms.
It never ceases to amaze me how programmers try to cram everything into the single-thread
sequential-execution model they learned in their freshman programming course.
This getting me little nervous. Really - please - start reading my posts.
Piece of code presented before was part of something bigger and was
simplified to find the the problem. You don't really want me to paste all
the code of app, do you? Anyway, Iam starting to consider using libcurl
instead, because problem persists, and Ive already lost too much time on
trying to figure out this one. Meaby Ill sort it out when I have mre time.
Personally I quite miss Borland Builder C++ 6 times, where writing C++ code
was somehow easier (far away from "standards"), but most of companies
switched to MSVC kind quickly (BTW of increasing popularity of .NET 'n'
C#), with it "Its not a bug its a feature" motto :/.
Anyway thx for help.
--
SOCAR
.
- Follow-Ups:
- Re: CInternetSession
- From: Joseph M . Newcomer
- Re: CInternetSession
- References:
- CInternetSession
- From: SOCAR
- Re: CInternetSession
- From: MrAsm
- Re: CInternetSession
- From: SOCAR
- Re: CInternetSession
- From: Doug Harrison [MVP]
- Re: CInternetSession
- From: Joseph M . Newcomer
- CInternetSession
- Prev by Date: Re: Type Library import in VC++
- Next by Date: Re: CInternetSession
- Previous by thread: Re: CInternetSession
- Next by thread: Re: CInternetSession
- Index(es):