Microsoft KB Archive/200683

= BUG: Visual InterDev 6.0 or Visual J++ 6.0 Crash When You Edit HTML with RDS Objects =

Article ID: 200683

Article Last Modified on 8/16/2005

-

APPLIES TO


 * Microsoft Visual Studio 6.0 Enterprise Edition
 * Microsoft Visual Studio 6.0 Professional Edition
 * Microsoft Data Access Components 2.0, when used with:
 * the hardware: Intel x86
 * Microsoft Visual J++ 6.0 Standard Edition

-



This article was previously published under Q200683



SYMPTOMS
You may encounter "random crashing" with Visual InterDev 6.0 or Visual J++ 6.0 when you edit Active Server Pages (ASP) or HTML pages that have HTML  references to RDS DataControl objects (CLSID:BD96C556-65A3-11D0-983A-00C04FC29E33). Here is a sample error message:

Devenv.exe Exception: access violation (0xc0000005), Address:



CAUSE
The crash occurs if you use the  tag to specify the RDS DataControl parameters (Server, Connect, SQL), as in the following example:   The development shell for Visual InterDev 6.0 and Visual J++ 6.0 attempts to access the RDS data at design time if the  tags for the Server, Connect, and SQL properties are specified as a part of the  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.



RESOLUTION
To work around this bug, specify the Server, Connect, and SQL properties in script, as in the following example:    Authors.Server = "http://myserver" Authors.Connect = "dsn=pubs;uid=***;pwd=***" Authors.SQL    = "SELECT * FROM Authors" Authors.Refresh  The code will function at run time and avoid the bug at design time.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Keywords: kbbug kbfix KB200683

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.