EOutOfMemory - Insufficient memory - When Switching Language

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
sysdba
Posts: 16
Joined: Wed Nov 30, 2005 9:30 am

EOutOfMemory - Insufficient memory - When Switching Language

Post by sysdba »

Hi,

I use Tsilang 6.0.
My Main form contains a Tsilang component and a TsiLangDispatcher component
Each form of my application contains a TsilangLinked component linked with the main form :
.LangDispatcher:=FormMain.siLangDispatcher1

I have a combobox which contains the 3 languages of my application :
-French , English , Chinese
When switching severals times from one language to another one,
an error occurs :
EOutOfMemory - Insufficient Memory

This error appears in the SetCaption
method of the TSpTBX item (From TBX (ToolBar2000)) :
(But it can also appears in the SetHint method or the setCaption method of others controls)

procedure TSpTBXCustomItem.SetCaption(const Value: WideString);
begin
if FCaption <> Value then begin
FCaption := Value; -----------------Error here
inherited Caption := Value;
end;
end;

Here is the Thread :

TSpTBXCustomItem.SetCaption('?????ч?U?'#$12'?@?'#$1B'???ч?'#$12'?ч?'#$12'??'
#0#0#0#0'?'#$12'?B?'#$12'?B?'#$12'??'#0#0'?ч?ч?????'#$1B'?????'#$12'?{?'#$12
'?{?'#$12#1#0'?B'#$10#0'?'#$1B'?'#$12'?{???'#$12'?{?'#$12'?'#$12'?{?'#$12'?'
#$12'?{?'#$12#1#0#2#0'?B'#0#0#0#0'??'#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#
0#0#0#0#0#0#0'??a'#0'???????'#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#
0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#
0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#
0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0'????'#0#0#0#0#0#0#0#0#0#0#0#
0#0#0#0#0#0#0#0#0#0#0#0#0#0#0'?'#0#0#0#0#0#0#0#0#0#0#0#0#0'?{'#0#0#0#0#0#0'?
?????'#0#0#0#0'??'#0#0#0#0'??'#0#0'?'#0#0#0'???'#$12'?{?'#$12'?'#$12'n{?'#$1
2#1#0#2#0'?B'#0#0#0#0#0#0#0#0#0#0'???????????????????'#0#0#0#0#0#0#0#0#0#0#0
#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0
#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0
#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0'??'
#0#0'??'#0#0'???'#$12'?{?'#$12'?{?'#$12'?'#$12'?{?'#$12'???'#$12'???lN'#0'??
'#1'????'#$12'?|?'#$12'?|?'#$12'???E??'#0#0'?'#$12'?????E?E'#1#0'???'#$12'?z
?'#$12'?z?'#$12'???'#$12'???'#$19'???'#$12'?z?'#$12'???G?'#$12'??'#0#0#0#0'?
????'#$12'?????M'#$F#0#0#0#0#0#$F#0'D??'#$12'?????M'#$F#0#0#0#0#0#0#0'?'#$12
'?z???M'#$F#0#0#0#0#0'?????'#$12'?C'#$F#0#0#0#0#0#1#0'?'#$12'???M'#$F#0#0#0#
0#0'D??'#$12'???n'#0#0#0#4'?'#$12#1#0'?'#$12'?'#$12'???n'#0#0#0#4'?'#$12#1#0
'?'#$12'
'#0'?'#$12'??'#0#0'?'#$12'???'#$12'???'#$12'??'#$1A#0'???'#$12'?G??????4'#0'
?????'#$12'???'#$12'?E?'#$12'???'#$12'?E?'#$12'???'#$12'?z???'#$12'???G???'#
0'?'#1'?M'#0#0'?F?'#1'?'#0'???'#$12'?G?M???'#1'?'#$12'?M?'#$12'?G?'#$12'???'
#$12'?G?'#$12'??'#0#0#1#4'??'#0#0#0#0'?'#$12'?u?%'#0#0#0#0'?'#$12#1#4'??'#0#
0'?'#$12'?'#$12'?????'#$12'??'#0#0#0#0'?'#$12#0#0'???'#$12'??'#0#4#0#0'?'#$1
2'?u?M?'#1'd'#0'?0?'#$12'???Ld'#0'?'#1'??'#0#0#0#0#0#0#0#0'?'#$12'???'#$12#$
18#0'?Ld'#0'?'#1'?M?u?????0d'#0'?'#1'?M'#0#0'?'#0#1#0'?'#$12#0#0'?'#$12'???'
#$12'????'#0#0'?'#$12'?G?????Co????G?'#$12'???'#$12'?zd'#0'o????G?'#$12'?G?'
#$12'?'#$12'?G?'#$12'd'#0'o??'#$12'?'#$12'???'#$12'?Cd'#0'?'#1'?M'#0#0'?'#$1
2'???0d'#0'?'#1'?Mo????'#$12'??o??0d'#0'?'#1'?M'#1#0'd'#0'?'#$12'??o??0d'#0'
?'#1'?M'#0#0'?'#$12'?zo??0d'#0'?'#1'?M?'#$12'?z?'#$12'?L???'#$12'?Cd'#0'?'#1
'?M'#0#0'?'#$12'???0d'#0'?'#1'?Md'#0'???'#$12'??l??0d'#0'?'#1'?M?'#$12'???Ld
'#0'?'#1'?Ml?'#0#0#0#0#0#0'?'#$12'???'#$12#$18#0'?Ld'#0'?'#1'?Ml??????0d'#0'
?'#1'?M'#0#0'?'#0#0#0#1#0'?'#$18#1#0'?0?'#0'?'#$12'???Ld'#0'?'#1'?M'#0#0'???
'#$18#1#0'?l?'#$18'd'#0'???'#$18'?'#1'?*d'#0'?l?<?'#$12'???'#$12'?E?'#$12'??
?'#$12'?B?????'#$12'?C?CI????G?'#$12'?G'#0#0'?'#$12'???Md'#0'?'#1'?*'#0#0'??
?'#$12'?'#$12'???Md'#0'?'#1'?*?????'#$12'?????Md'#0'?'#1'?*d'#0'D??'#$12'???
??Md'#0'?'#1'?*'#0#0'?'#$12'?z???Md'#0'?'#1'?*?????'#$12'?Cd'#0'?'#1'?*'#0#0
'?'#$12'???Md'#0'?'#1'?*D????'#$12'??D??Md'#0'?'#1'?*???'#$12'?'#$12'??D??Md
'#0'?'#1'?*'#1#0'?'#$12'?GD??Md'#0'?'#1'?*?'#$12'???'#$12'?G?'#$12'???'#$12'
?G?'#$12'???????Md'#0'?'#1'?*'#0#0'?'#0#0#0#1#4'??'#0#0#0#0'?'#$12'?u?%'#0#0
#0#0'?'#$12#1#4'??'#0#0#$18#0'?'#$12'?'#0#0'??'#$12'??'#0#0#0#0'?'#$12#0#0'?
??'#$12'??'#0#4#0#0'?'#$12'?u?*?'#1'd'#0'?M?'#$12'???ld'#0'?'#1'??'#0#0#0#0#
0#0#0#0'?'#$12'???'#$12#$18#0'?ld'#0'?'#1'?*?u?????M?'#$12'???*'#0#0'?'#0#1#
0'?'#$12'?G??'#1#0'?'#$12'????'#0#0'?'#$12'???'#$12'?E?'#$12'???'#$12'?E?'#$
12'???'#$12'?zd'#0'I????G?'#$12'?G?'#$12'?'#$12'?G?'#$12'd'#0'I??'#$12'?'#$1
2'???'#$12'?Cd'#0'?'#1'?*'#0#0'?'#$12'???Md'#0'?'#1'?*I????'#$12'??I??Md'#0'
?'#1'?*?'#0'd'#0'?'#$12'??I??Md'#0'?'#1'?*'#0#0'?'#$12'?zI??Md'#0'?'#1'?*?'#
$12'?z?'#$12'?l???'#$12'?Cd'#0'?'#1'?*'#0#0'?'#$12'???Md'#0'?'#1'?*d'#0'???'
#$12'??e??Md'#0'?'#1'?*?'#$12'???ld'#0'?'#1'?*e?'#0#0#0#0#0#0'?'#$12'???'#$1
2#$18#0'?ld'#0'?'#1'?*e??????Md'#0'?'#1'?*'#0#0'?'#0#0#0'?'#0'd'#0'?'#$18'?M
?'#0'?'#$12'???ld'#0'?'#1'?*'#0#0'?'#$18'?'#$12'???Md'#0'?'#1'?*???'#$18#1#0
#$D#0'?'#0'?'#$12'???'#$18#$D#0#$15#0'?'#$18'?'#0#0#0#0#0'?'#0'*'#0#0#0#1#0#
0#0#0#0'?*?'#$12'??'#1#0'?'#0'~'#0#$15#0'?<?l'#0'??'#$12#0

Why the value of the caption is so huge ?
This seems to generates the EOutOfMemory error.
isiticov
Site Admin
Posts: 2385
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Please wait till 6.0.1 release (today or tomorrow), hope this is fixed there.
Best regards,
Igor Siticov.
sysdba
Posts: 16
Joined: Wed Nov 30, 2005 9:30 am

6.0.1 release

Post by sysdba »

OK I wait for the 6.0.1 release.
Thanks Igor.
isiticov
Site Admin
Posts: 2385
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Just released :)
Best regards,
Igor Siticov.
sysdba
Posts: 16
Joined: Wed Nov 30, 2005 9:30 am

Thanks

Post by sysdba »

Thanks a lot Igor. :D
Now everything is OK with the 6.0.1 version.
For information, where was the problem ?
isiticov
Site Admin
Posts: 2385
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

In 6.0.1 we even more improved the Unicode support and hope this was fixed during this.
Best regards,
Igor Siticov.
Post Reply