Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. djjd47130

    Is this FAQ on thread-protecting an object adequate?

    I have written an FAQ here which covers the basics of thread-protecting an object. I was wondering if someone can review this FAQ and let me know if I'm wrong anywhere or any input on what I should change? JD Solutions
  2. djjd47130

    How to go about building a rich system configuration module like in RAD Studio?

    I've always like the way that RAD Studio put together its setup screens. For example, Project > Options, or Tools > Options. I'm trying to re-create such a setup system in an application of its own for a legacy Delphi server/client system. The current setup is scattered into many different...
  3. djjd47130

    Why is the "URL" property blank in the "TWebRequest"?

    And just above that is a commented line: //INDEX_URL : Result := AnsiString(FRequestInfo.Document); JD Solutions
  4. djjd47130

    Why is the "URL" property blank in the "TWebRequest"?

    Ah Ha! In IdHTTPWebBrokerBridge.pas... function TIdHTTPAppRequest.GetStringVariable(Index: Integer): AnsiString; ... case Index of ... INDEX_URL: Result := AnsiString(''); // Root - consistent with ISAPI which return path to root So Indy is leaving this field blank for some...
  5. djjd47130

    Why is the "URL" property blank in the "TWebRequest"?

    I tried tracking the reading of the URL property and wound up getting confused how this actually works internally, got stuck at: function GetStringVariable(Index: Integer): AnsiString; virtual; abstract; Where Index = 1 But this is an abstract function...? JD Solutions
  6. djjd47130

    Why is the "URL" property blank in the "TWebRequest"?

    I'm using Delphi XE2, Indy 10, and a TIdHTTPWebBrokerBridge. In the web module, requests are handled via TWebRequest and TWebResponse objects. I need to read the full complete URI which was sent from the client, but in the TWebRequest, the only relevant property, URL, returns empty. Why is this...
  7. djjd47130

    How to take a screenshot of a specific monitor?

    This procedure snaps a screenshot of a given monitor, and optionally includes the mouse cursor. Bitmap: Any TBitmap which you want the screenshot written to MonitorNum: Index of monitor (0 = main) DrawCursor: Whether or not to draw mouse cursor Quality: Pixel Format (pf24bit recommended)...
  8. djjd47130

    How do I thread-protect an object?

    There are many ways to thread-protect objects, but this is the most commonly used method. The reason you need to thread-protect objects in general is because if you have more than one thread which needs to interact with the same object, you need to prevent a deadlock from occuring. Deadlocks...
  9. djjd47130

    How do I implement my own mechanism to encode and decode data to my own standards?

    A small project of mine has lead me to point out how flexible this solution is. I originally needed to make a mechanism to encode/decode strings by using my own replacement values. This turned into a different solution where you can easily specify the replacement values to use. A major advantage...
  10. djjd47130

    How to keep certain code from executing when my component is in design-time?

    There are many scenarios where you do not want certain things to happen when your components is in design-time. These are things which of course should only be performed when the actual product is being run. There's a simple solution to this, but first the background. The Delphi TComponent is...
  11. djjd47130

    New FAQ: File Searching

    NOTE: I have done many modifications to this thread and I will update it as soon as I have a stable copy. I'm trying to build this thing to be universal. I now have a field for Keywords (Search String) yet it's not yet doing a very intelligent filteration of files based on the keywords. What I...
  12. djjd47130

    New FAQ: File Searching

    NOTE: I have tested this component, but not too extensively. I've run multiple image filters on a large directory structure of over 6,000 different images, a number of different times, and have only found very minor flaws, such as the "OnStop" event being triggered a millisecond before the very...
  13. djjd47130

    New FAQ: File Searching

    I have written a new FAQ on searching for files: http://tek-tips.com/faqs.cfm?fid=7639 NOTE: This is not to search for a file by name or keyword, but instead to search for any files recursively matching certain file types. It's a multi-threaded component which can be installed into your...
  14. djjd47130

    How do I search for files in Delphi?

    Delphi does not come with a built-in way to make it easy to search for files. Instead, you need to make Windows API calls to FindFirst and FindNext. This method doesn't automatically take recursive searches into consideration either, you must implement this yourself. There is always some...
  15. djjd47130

    Dynamically adding/removing threads in a pool, and waiting for busy ones?

    It could be as simple as "feeding the thread a poison" as someone told me once in the past, but that would require unmanaged threads, I need to carefully manage the existence of each one, up until its time of destruction. The way I'm moving, I can't depend on feeding it a poison command and...
  16. djjd47130

    Dynamically adding/removing threads in a pool, and waiting for busy ones?

    Please bear in mind that as mentioned, I have not even tried to run (or even compile) this yet, and yes there are problems such as I'm not removing the free'd thread from the list... It's the concept that I'm aiming for though. JD Solutions
  17. djjd47130

    Dynamically adding/removing threads in a pool, and waiting for busy ones?

    I'm building a database thread pool, the pool has a property for thread count. By default this is 0 so there's no threads until this is set. The property reads the list count directly, so I don't store anything like "FThreadCount: Integer". So, the property setter needs to be responsible for...
  18. djjd47130

    Windows API I/O Control - Retrieving list of disk sectors occupied by a given file

    Never mind, I figured it out. I had to disable your "WriteLn" debugging. That was all. Thanks, results look very promising now! JD Solutions
  19. djjd47130

    Windows API I/O Control - Retrieving list of disk sectors occupied by a given file

    I'm getting "I/O Error 105" after the "CompatTest()" has passed... JD Solutions
  20. djjd47130

    Windows API I/O Control - Retrieving list of disk sectors occupied by a given file

    I'm having tons of typos today, "has" not "as"... JD Solutions

Part and Inventory Search

Back
Top