cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Flexera beginner

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
2 Replies
Highlighted
Flexera
Flexera

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

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
Highlighted
Flexera beginner

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

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