cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
pgattu
Level 3

SdLicenseEx is taking long time to load license text of 908 KB

Hi,

nResult = SdLicenseEx("","","","license.txt",FALSE);

This call is taking more than a min to display the license, can anyone please help me troubleshoot this?

Regards,
pgattu

Labels (1)
0 Kudos
(4) Replies
Jenifer
Flexera Alumni

Hi @pgattu ,

 

Default limit for license file(.txt/.rtf) to be loaded by SdLicenseEx function is 64k only.In the case of .rtf they validate and won't load the content if you use the same function with sRtf falg TRUE.But in case of .txt file they will try to read using ListReadFromFile just like sample given below:


list = ListCreate( STRINGLIST );
if(!ListReadFromFile( list, szFinalFile )) then
CtrlSetMLEText( szDlg, SD_MULTEDIT_FIELD1, list );
endif;

ListDestroy( list );

 

That is why it takes around 60 secs to load,Did you give it a try with rtf file with same content?

 

Thanks,

Jenifer

0 Kudos

Hi @Jenifer , Yes, I tried with rtf file its the same, Do I have any workarounds here? Regards, pgattu
0 Kudos

Hi, I'm having same issue here (with a 500KB file).

I'm using a InstallScript MSI project (and can't change to another type), but testing with a BasicMSI project type the same rtf file is loaded almost immediately.

I debugged the script and the method that is taking that time to execute is the CtrlSetMLEText called inside SdLicenseEx

any help on this?

0 Kudos

Actually I'm using a .rtf file with this function:

SdLicense2Ex("", "", "", szLicensePath, FALSE, TRUE);

0 Kudos