[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

Use of invisible window in Service Application to Process Messages

Asked by namuh1 in Delphi Programming

Tags: delphi, service

Referring to E-Exchange Question: [Datamodule and handle], I have tried repeatedly to get this example to work in an embedded situation without success.  The example is a standalone program.  I want to solve the same problem as stated in the above referenced question with the addition of an additional feature.  I need to be able to post/send a message from a DataModule that can be processed asynchronously by any other block of code.  This is all happening in a Service Application so visual Forms/Components can't be used (at least so I am told).  When I try to embedd the example above Delphi treats the unit as the program entry point and the Fake Window's event loop gets executed and no other code runs.  I know I am not understanding this, but I've read every other Experts-exchange article I can find and nothing addresses this problem that I can discover.  In case there is another solution strategy that I am also missing, let me explain the exact nature of the problem:

The service comprises a DataModule with ADO and APRO TCP components. It listens for incoming connection requests to log data.  The nature of the APRO TCP component is that it throws an event on a request to Accept an incoming connection.  Because of the nature of the APRO component, processing time spent in the Accept Connection Event code must be kept to a minimum.  The suggested strategy to address this is to create a Custom Message and MessageHandler and to have the Accept Event code post a message to this handler so that the AcceptConnection Event code is released.  This works fine in a visual Form environment but fails in the Service Application.  Hence the initial interest in Sending a message i.e. getting a Handle for a DataModule and subsequently in pursuing the Example referenced at the beginning of this question.  The one constraint I have is that the APRO TCP component MUST be used so please don't suggest a solution using and alternate TCP component.  My company requires that we use this component.  Otherwise I am open to any method that allows expedient exiting of the Event code and asynchronous processing of the handshake for the Connection request.  Thanks in advance for the patience required to deal with this question as I am in now way an expert in Delphi and it's Window/Message/Service structure.
[+][-]08/17/06 01:41 PM, ID: 17337350Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Delphi Programming
Tags: delphi, service
Sign Up Now!
Solution Provided By: House_of_Dexter
Participating Experts: 4
Solution Grade: A
 
[+][-]08/16/06 01:58 PM, ID: 17329628Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/16/06 02:05 PM, ID: 17329696Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08/17/06 08:07 AM, ID: 17334816Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/17/06 08:33 AM, ID: 17335075Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/17/06 09:42 AM, ID: 17335603Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/17/06 10:03 AM, ID: 17335742Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/17/06 10:19 AM, ID: 17335838Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/17/06 11:25 AM, ID: 17336308Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/17/06 11:53 AM, ID: 17336522Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/17/06 11:55 AM, ID: 17336538Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/17/06 12:02 PM, ID: 17336582Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/17/06 12:31 PM, ID: 17336799Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/17/06 01:16 PM, ID: 17337079Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/18/06 12:35 PM, ID: 17345038Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92