View Issue Details

IDProjectCategoryView StatusLast Update
0004667JEDI VCL00 JVCL Componentspublic2009-04-06 20:27
ReporterricardonaAssigned Tojfudickar 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionDaily / GIT 
Target VersionFixed in Version 
Summary0004667: Execution of TJvThread with dialog form is always 500ms
DescriptionWhen TJvThread is set to use dialog form every execution is 500ms, that is internal timer time for dialog form.
Additional InformationFix:

procedure TJvThread.CloseThreadDialogForm;
begin
  if Assigned(ThreadDialogForm) then
  begin
    ThreadDialogForm.Hide;
    ThreadDialogForm.CloseThreadForm;
  end;
end;
TagsNo tags attached.

Activities

jfudickar

2009-01-24 03:18

developer   ~0015259

Which revision did you use.
The current code looks like the following.

procedure TJvThread.CloseThreadDialogForm;
begin
  if Assigned(ThreadDialogForm) then
  begin
    while Assigned(ThreadDialogForm) AND ThreadDialogForm.Visible do
    begin
      //ThreadDialogForm.Hide;
      ThreadDialogForm.CloseThreadForm;
      Application.HandleMessage;
    end;
  end;
end;

I can't see any differences when i uncomment your suggestion.

Greetings
Jens

ricardona

2009-01-24 17:54

reporter   ~0015262

Im' using SVN version.

Process run fine, but when i enable show dialog i get 500 milli seconds of extra time for every execution, that is because the form only is closed in the timer not when ThreadDialogForm.CloseThreadForm is called.

I hope be more clear.

BTW, i did some testing and use AsynCalls for jvThread discarded because of major differences between libraries

Thanks

Ricardo Cardona

ricardona

2009-03-26 05:43

reporter   ~0015352

This problem is more noticeable when using JvOdacSmartQuery

jfudickar

2009-03-26 20:39

developer   ~0015357

HEy,

i'm using the JvOdacSmartQuery and i can't see it directly.

Could you create a small sample using for example a select from dual which demonstrates the problem.

With kind regards
Jens

2009-03-28 15:31

 

jvThreadExitTime.zip (4,348 bytes)

ricardona

2009-03-28 15:35

reporter   ~0015358

Uploaded sample.

First try jvThread svn version; click run button connect to DB and look time label, i get 500 ms.

Now try jvThread with my changes and look results.

Thanks

Ricardo

jfudickar

2009-03-31 00:20

developer   ~0015364

Thanks for the sample.
I see now your point of view.

I will test it in the next days then commit it to the repository.

Thanks for your patience.

Kind regards
Jens

jfudickar

2009-04-01 23:49

developer   ~0015376

I've changed your solution a little bit and commited it to the repository.

Please have a look for it and give me a short feedback.

Kind regards
Jens

ricardona

2009-04-06 05:08

reporter   ~0015388

Now is working right!

Thanks for your support and time.

Kind regards

Ricardo

jfudickar

2009-04-06 20:27

developer   ~0015393

Hi Ricardo,

thanks for your support and time also.

It was your sample and your code which show's me the right way.

Kind regards
Jens

Issue History

Date Modified Username Field Change
2009-01-22 19:21 ricardona New Issue
2009-01-24 03:18 jfudickar Note Added: 0015259
2009-01-24 17:54 ricardona Note Added: 0015262
2009-02-02 01:26 obones Status new => feedback
2009-03-26 05:43 ricardona Note Added: 0015352
2009-03-26 20:39 jfudickar Note Added: 0015357
2009-03-28 15:31 ricardona File Added: jvThreadExitTime.zip
2009-03-28 15:35 ricardona Note Added: 0015358
2009-03-31 00:20 jfudickar Note Added: 0015364
2009-04-01 23:49 jfudickar Note Added: 0015376
2009-04-06 05:08 ricardona Note Added: 0015388
2009-04-06 20:27 jfudickar Note Added: 0015393
2009-04-06 20:27 jfudickar Status feedback => resolved
2009-04-06 20:27 jfudickar Resolution open => fixed
2009-04-06 20:27 jfudickar Assigned To => jfudickar