MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: MAKECAB.EXE Issues[Next]: MsiNetAssemblySupport Property can Contain the Wrong Value
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Troubleshooting->Bugs, Features and Issues (NON-MAKEMSI)->Message() Method of the Session Object Hangs on Long Messages

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.


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: MAKECAB.EXE Issues[Next]: MsiNetAssemblySupport Property can Contain the Wrong Value


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Saturday May 28 2022 at 3:11pm
Visit MAKEMSI's Home Page
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.