Solved

Threading with forms in Delphi 3

Posted on 1998-03-26
3
159 Views
Last Modified: 2010-04-06
I am trying to create a threaded application with Delphi 3.  What is does is when a new thread is executed it simply creates a form, but when I try and run the application it just hangs.  I do not get this problem when I run it under Delphi 2. I can supply the code if needed.   Any ideas?
0
Comment
Question by:phillipf
3 Comments
 
LVL 3

Expert Comment

by:KE
ID: 1360949
Please supply the code.

0
 
LVL 4

Expert Comment

by:BoRiS
ID: 1360950
yes supply the code and lets have a look see...

Later

BoRiS
0
 

Accepted Solution

by:
atze earned 100 total points
ID: 1360951
try creating a new thread for each form in the thread use TApplication to create the form

this should be paced in the create for the thread:

  threadApp := TApplication.Create( nil );
  threadApp.Initialize;
  threadApp.CreateForm( TYourForm, YourForm );

hope this helps
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question