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 8991069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:38:23+00:00 2026-06-15T22:38:23+00:00

How can I release a Variable that is being used by the WebService. I’m

  • 0

How can I release a Variable that is being used by the WebService.

I’m using this form:

 HttpPrincipal.WSDLLocation: = FrmPrincipal.edtWS.Text;
 HttpPrincipal.Service: = 'CADServicesService'; 
 HttpPrincipal.Port := 'CADServices';     
 Trinity: = HttpPrincipal as CADServices;

At the moment when I will close the Form appears an error, and discovered that when I declare this part:

Trinity: = HttpPrincipal as CADServices;

I think it is getting stuck in memory.

The error is the following:

“Invalid Pointer”
The error happens when you close the form, does not have any event in the OnClose or OnDestroy form.

Descriptions:
Trinity : CADServices,
HttpPrincipal is a THTTPRIO,
CADServices is my Unit containing all procedures / functions from WebService.

  • 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-06-15T22:38:25+00:00Added an answer on June 15, 2026 at 10:38 pm

    Instead of using the designtime component try to create HTTPRIO at runtime:

    function GetCadServices(Addr : String): CadServices;
    const
      defSvc  = 'CADServicesService';
      defPrt  = 'CADServices';
    var
      RIO: THTTPRIO;
    begin
      Result := nil;
      RIO := THTTPRIO.Create(nil)  
      try
        Result := (RIO as CadServices);
        RIO.WSDLLocation := Addr;
        RIO.Service := defSvc;
        RIO.Port := defPrt;
      finally
        if (Result = nil) then
          RIO.Free;
      end;
    end;
    

    Usage:

    Trinity := GetCadServices(FrmPrincipal.edtWS.Text);
    

    If you imported the WSDL with the WSDL importer this code is automatically generated for you (look in the CadServices1 unit)

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

Sidebar

Related Questions

I understand that this can be done at release using the maven-gpg-plugin. However, I
How can i release the memory that I used for a variable (e.g. a
With the imminent release of iPhone_OS_4 is there a way I can install that
The R 2.15 release notes and the documentation of makePSOCKCluster state that communication can
If I release the object that's holding a reference to the variable that I
Normally i've been passing variable around in init methods, but I can't do that
A customer has got this error with my software using Python 2.5.5. How can
Can anybody tell me about the replacement of release in ios-sdk5 e.g. [myview release];
Can someone please explain the following How was the first JDK release unit Tested?
According to the release notes of Eclipse 3.3 you can now join lines together

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.