Question to tsiLangExpert

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
svenheuer
Posts: 12
Joined: Sun Feb 18, 2007 3:54 pm

Question to tsiLangExpert

Post by svenheuer »

Hi,

i have some questions to your suite.

1. i have an application with a lot of inherited forms. In the TsiLang Expert wizard all my inherited forms are not visible. How can i make these visible? I have a central datamodule with a dispatcher on it and on my base form an silangRT connected to the dispatcher. On the inherited forms i set inherited owner to true.

2. The same wizard. If i save my project to a sib-file it tooks round about 30 minutes. the cpu goes on 100% I have round about 170 forms. Is this behaviour normal?


Best greetings
Sven Heuer

Version: 6.0.3.3.

[Update] now the wizard is running over 1 hour. Every few minuets i see a new form opened by delphi. so the wizard is still running.
isiticov
Site Admin
Posts: 2416
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

1. and 2. : This is for sure incorrect behavior and I think the origin of problem is in your project source. Please check your project source unit. It looks like there is something wrong in form and unit declaration in your project source.
Best regards,
Igor Siticov.
svenheuer
Posts: 12
Joined: Sun Feb 18, 2007 3:54 pm

Post by svenheuer »

You suggestion for the first was right.

myForm.pas in 'myform.pas' {frmForm} was missing.

I will change the project code. Thanks a lot
svenheuer
Posts: 12
Joined: Sun Feb 18, 2007 3:54 pm

Post by svenheuer »

new problem :)

I created a new sib file. Now in just 2 minutes instead 1,5 hours. Great. Loading this file in the TsiLang Files Editor tooks very long. The file has a size of nearly 800 kb. After 5 minutes the file is loaded. Also unnormal?

I can send you the file?

Greetings
Sven
isiticov
Site Admin
Posts: 2416
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

This already depends on your project forms. Expert opens each form and loads its translation from SIB when loading. So in case your forms contain a lot of components it may take some time for IDE to load them so this may cause such delay.
Best regards,
Igor Siticov.
svenheuer
Posts: 12
Joined: Sun Feb 18, 2007 3:54 pm

Post by svenheuer »

sorry, there must be a problem.

i do the following.

Loading the SIB file via Dispatcher1.LoadAllFromFile at runtime. Very quick.

Loading with the external Editor - 3 Minutes

in a form with an RTLangRT i do the following

invoked through a hotkey i call

siLangRT1.StorageFile := MainDM.siLangDispatcher1.FileName; // if not set i got file errors
siLangRT1.EditAll; //

I change something in the editor and say save. Now it tooks round about 3 minutes to save the change.

In each case the CPU raises to 100%.
May be that some BeginUpdate EndUpdate statements missing?
isiticov
Site Admin
Posts: 2416
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Could you please send us this SIB file to test?
Best regards,
Igor Siticov.
isiticov
Site Admin
Posts: 2416
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Thank you for the file. Unfortunately, the size of file is quite big and it really takes few minutes to save and load it. You can try to reduce the file size by removing items that don't need translation.
Best regards,
Igor Siticov.
svenheuer
Posts: 12
Joined: Sun Feb 18, 2007 3:54 pm

Post by svenheuer »

Thanks for looking on it. Now we doing the translation inside the forms. Will be faster :)

Any chance to get this faster in the future?
isiticov
Site Admin
Posts: 2416
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

We will try to find a way to improve the speed. But actually, there is used Delphi's component streaming method and it is quite fast.
Best regards,
Igor Siticov.
Post Reply