Solved

Threading with forms in Delphi 3

Posted on 1998-03-26
3
160 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi application Soap connection 5 120
Delphi Form ownership 4 111
select query - oracle 16 100
Delphi...Split view - idea? 1 89
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…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

860 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