BUG: Message() Method of the Session Object Hangs on Long Messages |
The following as posted as "BUG: Session Object Message() method hangs on long strings" on 21 June 2005:
The following code is an extract of an ICE validation which hangs Windows Installer when the string being passed to the "show" routine is 1707 bytes long. '**** START CODE ************* dim recInfo Set recInfo=Installer.CreateRecord(1) If Err <> 0 Then ICE_XYZ01=1 Exit Function End If Show "before..." dim i for i = 1600 to 2000 dim text : text = i & ">" & string(i, "%") Show "LengthText=" & len(text) Show text next Show "after..." sub Show(HangsIfTooLongText) recInfo.StringData(0)="DIETEST" & Chr(9) & "3" & Chr(9) & HangsIfTooLongText Message &h03000000, recInfo end sub '**** END CODE *************
This problem occurred in "MSIVAL2" and didn't seem to occur in "ORCA". To diagnose this problem you probably need to allow "INFO" messages to be generated and see which ICE hangs.