BUG: Setting TreeView1.ImageList Causes Err in Internet Explorer
ID: Q184975
|
The information in this article applies to:
-
Microsoft Internet Explorer (Programming) versions 4.0, 4.01, 5.0
SYMPTOMS
Setting the ImageList property of the TreeView control in script causes
Microsoft Internet Explorer 4.0x to display the following application
error:
The instruction at "0x70423bb0" referenced memory at "0x00000010". The
memory could not be "read".
RESOLUTION
Set the ImageList property by using a <PARAM> tag as part of the <OBJECT>
tag, like so:
<PARAM NAME="ImageList" VALUE="myImageList">
NOTE: myImageList is your ImageList that was created by using the <OBJECT>
tag. Please see the MORE INFORMATION section for HTML code that demonstrates this bug and the resolution.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
MORE INFORMATION
The following HTML code demonstrates the bug described in this article and
the resolution.
Sample Code
<HTML>
<HEAD>
<TITLE>BUG: TreeView1.ImageList application error in Internet
Explorer 4</TITLE>
<SCRIPT LANGUAGE="VBScript">
<!--
Option Explicit
Sub Window_OnLoad()
Dim node
Set node = TreeView1.Nodes.Add(,,"KEY1", "Test1")
node.expanded=true
node.Image=1
Set node = TreeView1.Nodes.Add("KEY1", 4, "KEY2", "Test2")
node.Image=1
Set node = TreeView1.Nodes.Add("KEY1", 4, "KEY3", "Test3")
node.Image=1
' The following line causes the application error
' described in this article:
'
' TreeView1.ImageList = myImageList
End Sub
-->
</SCRIPT>
</HEAD>
<BODY>
<!-- You may need to create a license pack for the final
version of this page so that the comctl32 will be licensed
to run on your system. Please see the Internet Client SDK
for more information about licensing and license pack files.
-->
<!-- <OBJECT CLASSID = "clsid:5220cb21-c88d-11cf-b347-00aa00a28331">
<PARAM NAME="LPKPath" VALUE="YourLicensePack.lpk">
</OBJECT>
-->
<OBJECT ID="TreeView1" WIDTH=100 HEIGHT=100
CLASSID="CLSID:0713E8A2-850A-101B-AFC0-4210102A8DA7"
CODEBASE="http://activex.microsoft.com/controls/vb5/comctl32.cab
#version=5,1,43,19">
<PARAM NAME="_ExtentX" VALUE="2646">
<PARAM NAME="_ExtentY" VALUE="2646">
<PARAM NAME="_Version" VALUE="327682">
<PARAM NAME="Style" VALUE="7">
<PARAM NAME="Appearance" VALUE="1">
<PARAM NAME="ImageList" VALUE="myImageList">
</OBJECT>
<OBJECT ID="myImageList" WIDTH=39 HEIGHT=39
CLASSID="CLSID:58DA8D8F-9D6A-101B-AFC0-4210102A8DA7"
CODEBASE="http://activex.microsoft.com/controls/vb5/comctl32.cab
#version=5,1,43,19"
DATA="DATA:application/x-oleobject;BASE64,j43aWGqdGxCvwEIQECqNpy
FDNBIIAAAA7QMAAO0DAACAfuHmAgAFADEAAAAQ
ABAA/wD/AP//QQAB782rAAAFANTrZgBBAEEA/////////wAAAAAAAQAAAAEG
AAAAQwBhAG0AZQByAGEAAQAAAAEAAABsdAAA+AAAAEJN9gAAAAAAAAB2AAAA
KAAAABAAAAAQAAAAAQAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AIAAAIAAAACAgACAAAAAgACAAICAAACAgIAAwMDAAAAA/wAA/wAAAP//AP8A
AAD/AP8A//8AAP///wCIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIhwB4iI
iIcAAAAAAAB4gHcAd3cAdwiAdwd3d3B3CIB3B4d3cHcIgHcH+HdwdwiA/wB3
dwD/CID/8AAAD/8IgAAAAAAAAAiIAIcP8HgAiIiIiHAHiIiIiIiIiIiIiIiI
iIiIiIiIiEUA+EcA
">
</OBJECT>
</BODY>
</HTML>
REFERENCES
For more information, please see the MSDN Web Workshop:
http://msdn.microsoft.com/workshop/default.asp
Additional query words:
TreeView ImageList InetSDKCOMCTL32
Keywords : kbnokeyword kbIE400 kbIE401 kbIE500bug
Version : WINDOWS:4.0,4.01,5.0
Platform : WINDOWS
Issue type : kbbug