PDA

View Full Version : Application runs slowly from CD



meny
02-23-2010, 09:57 AM
My application has several Pages, in each one Paragraph and Button objects.
When it loads, for each object it does .SetText(..) and .SetProperties(..)
(the texts are set at runtime according to the language the user selects)


function SetPage1Texts()
_NoExitScriptOnPageJump = true;
Page.Jump("Page1");
Paragraph.SetText("Title", "Welcome");
Paragraph.SetProperties("Title", {FontSize=24});

Paragraph.SetText("Text2", "Install");
Paragraph.SetProperties("Text2", {FontSize=12});
-- and so on
end

When the application runs from the local disk, all is well - 1 second to set all the objects.

But when it runs from a CD then it is very slow - 15-30 seconds depending on machine.

Help and ideas much appreciated.

Ulrich
02-24-2010, 04:47 PM
Please post your actual project, or at least a minimal version with only the part you are having problems with. The sample code you posted does not correspond to what you say (setting the text according to the selected language), as you are setting hard coded strings here.

Ulrich