SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Very slow execution on Windows 98

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
bitberry



Joined: 05 Jan 2003
Posts: 11
Location: Denmark

PostPosted: Sun Jan 05, 2003 1:14 pm    Post subject: Very slow execution on Windows 98 Reply with quote

Hi,

I'm using TSILang in http://www.bitzipper.com and just released German and Danish versions. I got a few angry emails because the program is *SLOW* (as the users wrote). I was quite puzzled until I started tracing the problem on Windows 98.

The Wizard interface (which the program starts in) is very very slow. I removed the "language\german.sil" file so the program starts with the English interface, and everything is back to normal speed.

I don't have particularily much text on these forms and only labels, ok, some with wordwrap, but that shouldn't be a problem I guess.

I would appreciate a quick response to this as it leaves a pretty bad expression of my translated versions for Win98 users Crying or Very sad

You can download the trial versions at http://www.bitzipper.com/download.html and see for yourself. Those versions are using a slightly older version 5.1.1 I believe, but upgrading to 5.2.1 did not solve the problem.

Regards,
Brian
Back to top
View user's profile Send private message Visit poster's website
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Sun Jan 05, 2003 2:19 pm    Post subject: Reply with quote

Could you use SIB files instead of SIL? Because using SIB files is much faster than SIL.
Back to top
View user's profile Send private message
bitberry



Joined: 05 Jan 2003
Posts: 11
Location: Denmark

PostPosted: Sun Jan 05, 2003 3:20 pm    Post subject: Reply with quote

isiticov wrote:
Could you use SIB files instead of SIL? Because using SIB files is much faster than SIL.


Hi Igor,

yes, that might be the solution. However, I'm having trouble getting SIB files to work.

I would rather not use the Expert to generate the SIB files as it stores information I'm not interested in (like fonts, dialogs etc), so I prefer converting my current SIL files.

I tried using the SILEditor like this:
1) Open SIL
2) Export to CSV
3) Create new SIB
4) Import CSV
5) Save "new.sib"

In my application I do a siLang1->LoadAllFromFile("new.sib",true); but this doesn't seem to work - strings are empty, captions are still english. When re-opening the SIB in SILEditor, all texts look good.

Am I doing something wrong?

Brian
Back to top
View user's profile Send private message Visit poster's website
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Sun Jan 05, 2003 5:15 pm    Post subject: Reply with quote

You should use LoadAllFromBinaryFile() method not LoadAllFromFile() method. LoadAllFromFile() expects SIL file as input not SIB.
Hope tjhis helps.
Back to top
View user's profile Send private message
bitberry



Joined: 05 Jan 2003
Posts: 11
Location: Denmark

PostPosted: Sun Jan 05, 2003 7:35 pm    Post subject: Reply with quote

isiticov wrote:
You should use LoadAllFromBinaryFile() method not LoadAllFromFile() method. LoadAllFromFile() expects SIL file as input not SIB.
Hope tjhis helps.


OK, couldn't find this method documented in the help file Igor Wink

I have now replaced all my calls to LoadAllFromFile with LoadAllFromBinaryFile. When I call this method in a TsiLang component I get an exception: ".... exception class EClassNotFound with message 'Class TsiLangLinked not found'."

I don't use TsiLangLinked, only TsiLang (version 5.2.1, C++ Builder 5).

Brian
Back to top
View user's profile Send private message Visit poster's website
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Mon Jan 06, 2003 8:14 am    Post subject: Reply with quote

bitberry wrote:

OK, couldn't find this method documented in the help file Igor Wink


Will check this Smile

bitberry wrote:

I have now replaced all my calls to LoadAllFromFile with LoadAllFromBinaryFile. When I call this method in a TsiLang component I get an exception: ".... exception class EClassNotFound with message 'Class TsiLangLinked not found'."

The origin of this problem could be that SIL Editor have built the SIB file using TsiLangLinked components since it didn't find the translations for Dialogs and Locales in your CSV.
In this case I can recommend add siLngLnk unit into include clause of any of your unit to prevent this exception.
Back to top
View user's profile Send private message
bitberry



Joined: 05 Jan 2003
Posts: 11
Location: Denmark

PostPosted: Mon Jan 06, 2003 10:19 pm    Post subject: Reply with quote

isiticov wrote:

The origin of this problem could be that SIL Editor have built the SIB file using TsiLangLinked components since it didn't find the translations for Dialogs and Locales in your CSV.
In this case I can recommend add siLngLnk unit into include clause of any of your unit to prevent this exception.


OK, I replaced one of my TsiLang components with a TsiLangLinked and it works - and at much much better speed!

Thanks for your help Igor.

Regards,
Brian
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group