Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

TJvMTThread

Posted on 2006-11-08
1
Medium Priority
?
396 Views
Last Modified: 2010-05-18
I am doing something wrong here or just not understanding the concept.  I am under the impression this is for creating and working with multiple threads.  This is from the Jedi Component Library

In my code I have
...
    threadman: TJvMTManager;
    mthread: TJvMTThread;
...

...
      mthread.manager.AcquireNewThread;
      mthread.Run;
...

I have on OnExecute event assigned to the mthread.  It always throws an exception saying the thread is not initialized or waiting.
0
Comment
Question by:DSOM
1 Comment
 
LVL 28

Accepted Solution

by:
TName earned 2000 total points
ID: 17912699
Hi,
have you tried

mthread.RunCopy;  // (instead of:  mthread.Run;)
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

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…
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…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

926 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