Delphi: stop idHTTP working while time out is [closed] - delphi

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I do idHTTP.Get('http://example.com/1.zip', FStream);
A server doesn't response...and idHTTP waits for a connect to download a file
I need to stop idHTTP working. If it's connected I can do idHTTP1.Disconnect.
But what about a time when idHTTP isn't connected, when a time out is, and idHTTP waits for a connect -> we are waiting, waiting and then a time out exception will raise (I need to stop working in this waiting time). So I cannot do idHTTP1.Disconnect. If to do that then a not connected exception will raise, because of we are not connected.
How to stop working while waiting for a connect without an exception?
Thanks!

The maximum time for the connect operation of a TidHTTP component can be limited with the ConnectTimeout property.

Related

Is blocking of unwanted phone calls implementable on iOS? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I want to drop a particular call if caller number belongs to some 'black-list'.
Is there any such possibility to do this programmatically on iOS (iPhones and iPads)?
From my understanding, such program must be running all the time like system service but I've never seen such apps. If no, then I could run app by myself and put it in background, but will the app from background be able to do this, and finally are there ant methods in API for performing this?
There's no public APIs for achieving anything like that.
Moreover this is a functionality that Apple will embed in iOS7, as per the last WWDC conference.

New instance in TWebBrowser [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I would like to use the TWebBrowser Component in a complete new instance independently from the instance of the Internet Explorer. Is there a way to start TWebBrowser (e.g. in private browsing mode) so it would have it's own instance of cookies, cache, history, etc.?
Try delphi chromium.
Based on Chrome browser, fully autonomous and more html5 compliant....
You can define the directory where to store cookies, and then, clean them as you like...

simulate unable to open database error in iphone dev 5.0 [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Hi i have a requirement to simulate an error that states the iphone applicatio is unable to open the database and display values from it. i use sqllite. Please let me know how to simulate that error. I tried by locking the database file, changing the db file to readonly, but nothing happened... please let me know how to simulate the error...
Open the database with a separate connection, set exclusive locking mode, and make some change (you don't need to commit it).

Delphi 2010 Web Broker [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have a Delphi 7 Web broker app that is working perfectly. I need to upgrade to Delphi 2010 because the web services in Delphi 7 doesn't work with the web service I need to consume. When I compile and run it under Delphi 2010 i get "The specified CGI application misbehaved by not returning a complete set of HTTP headers" error. I'm guessing it is related to ansistring but cannot figure it out.
Any ideas on how I can solve this problem.
Thanks

What code would let me find the compiled executable's directory? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
...Even when a user opens an application by double-clicking an associated file in a directory that's different from the executable. I've always used ExtractFilePath(Application.EXEName), but this function doesn't work as hoped in this circumstance.
ExeName returns ParamStr(0) which in turn returns the string produced by GetModuleFileName with hModule set to 0. I cannot see any reason why this wouldn't work in a normal application.
Also try ParamStr(0). Maybe that works when application.exename doesn't?
ExePath := ExtractFilePath(paramstr(0));
I do it all the time, and it always works, whatever OS it is running on.

Resources