Solved

Threading with forms in Delphi 3

Posted on 1998-03-26
3
162 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

728 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