Article ID: 200683
Article Last Modified on 8/16/2005
<OBJECT classid="CLSID:BD96C556-65A3-11D0-983A-00C04FC29E33"
ID=Authors height=0 width=0
PARAM name=Server value="http://myserver"
PARAM name=Connect value="dsn=pubs;uid=***;pwd=***;"
PARAM name=SQL value="SELECT * FROM Authors">
</OBJECT>
The development shell for Visual InterDev 6.0 and Visual J++ 6.0 attempts to access the RDS data at design time if the <PARAM> tags for the Server, Connect, and SQL properties are specified as a part of the <OBJECT> tag. This behavior exposes a bug in Microsoft Data Access Components version 2.0, which closes an asynchronous thread and then later tries to reference the closed thread, causing the crash.
<OBJECT classid="CLSID:BD96C556-65A3-11D0-983A-00C04FC29E33"
ID=Authors height=0 width=0>
</OBJECT>
<SCRIPT Language=VBScript>
Authors.Server = "http://myserver"
Authors.Connect = "dsn=pubs;uid=***;pwd=***"
Authors.SQL = "SELECT * FROM Authors"
Authors.Refresh
</SCRIPT>
The code will function at run time and avoid the bug at design time.
Keywords: kbbug kbfix KB200683