Solved

Threading with forms in Delphi 3

Posted on 1998-03-26
3
156 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
Comment Utility
Please supply the code.

0
 
LVL 4

Expert Comment

by:BoRiS
Comment Utility
yes supply the code and lets have a look see...

Later

BoRiS
0
 

Accepted Solution

by:
atze earned 100 total points
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now