Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6322465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:20:10+00:00 2026-05-24T16:20:10+00:00

I’m writing a Delphi-based Windows server for a tablet-based HTML client. Most files are

  • 0

I’m writing a Delphi-based Windows server for a tablet-based HTML client.

Most files are served out unprocessed, as you would expect of a web server, but a handful of special keywords are being interpreted as special commands that interface with other software on the server.

Most of the time, everything is fine. But then, seemingly at random, I’d get an access violation, and it would be while trying to retrieve one of the GET parameters.

This was driving me mad, so I encapsulated the entire thing down into a function and just started testing for the existence of the TIdHTTPRequestInfo data (shown here as the public property Request inside the class):

function TELSCommand.GETValue(key:AnsiString):AnsiString;
begin
    if not Assigned(Request) then begin
        Log.e('WHERE IS REQUEST?');
        Result := '';
        Exit;
    end;

    if not Assigned(Request.Params) then begin
        Log.e('WHERE IS REQUEST PARAMS?');
        Result := '';
        Exit;
    end;

    if (Request.Params.IndexOfName(key) >= 0) then
        Result := Request.Params.Values[key]
    else
        Result := '';
end;

I didn’t actually expect either of the two Assigned() checks to get triggered, but, randomly, the second one will get tripped, and I’ll see “WHERE IS REQUEST PARAMS?” in my log file after hitting F5 (slowly, I’m not hammering the server).

When I throw down a breakpoint inside the block and inspect the value of Request when it hits that point, the entire TIdHTTPRequestInfo structure is filled with default, empty data. If I check the browser to see what request it sent, it’s what I would expect… (generally just a request for “/details?id=222“, for example).

I should note that I’m developing on Windows 7 64-bit, so I’m constantly paranoid of things like this being caused by it. More than once I’ve hit snags that turned out to be because of 64-bit wackiness.

Additional info: Indy 9, Delphi 2007.

Hopefully this was clear enough to understand. I’m not looking for specific answers, since I haven’t provided nearly enough; I’m just looking for suggestions on where to go from here. Much appreciated! 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T16:20:11+00:00Added an answer on May 24, 2026 at 4:20 pm

    RequestInfo.Params is created in the Constructor and there’s a FreeAndNil() in the Destructor so once the Request is Free’d, the Assigned() will fail on this property.

    Given that, and based on the confused info of your scenario, I would assume you have some threading issues where you are referencing a dangling Request instance that isn’t yet NIL’ed but the Params property has been. Sometimes you get lucky and it works, and sometimes it blows an AV.

    Alternately, you are manually NIL’ing the .Params property somehow in your code. Perhaps you are passing this TStringList object around and something else is releasing it accidentally. Indy won’t be free’ing this until the Request is done.

    All and all, you are correct as you haven’t provided enough information and the question should probably be closed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have thousands of HTML files to process using Groovy/Java and I need to
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a bunch of posts stored in text files formatted in yaml/textile (from
i got an object with contents of html markup in it, for example: string
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
I am writing an app with both english and french support. The app requests

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.