- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: SdLicenseEx is taking long time to load license text of 908 KB
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Actually I'm using a .rtf file with this function:
SdLicense2Ex("", "", "", szLicensePath, FALSE, TRUE);
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)