BUG: Memory Could Not Be Read Error with Visual InterDev 6.0 Recordset DTC (265568)



The information in this article applies to:

  • Microsoft Visual InterDev 6.0
  • Microsoft Internet Explorer (Programming) 5
  • Microsoft Internet Explorer (Programming) 5.01

This article was previously published under Q265568

SYMPTOMS

If you have designed an HTML or Active Server Page (ASP) page in Visual InterDev 6.0 that uses a Recordset Design-Time Control (DTC) with a scripting platform of Client (IE 4.0 DHTML), you may encounter the following error when you view the page in an Internet Explorer 5 browser:
The instruction at "0x75af2128" referenced memory at "0x00000013". The memory could not be "read".

CAUSE

The error occurs because of a bug with the MSHTML.dll file when this file attempts to rebind the data that is returned from the Recordset DTC. This only occurs if the Recordset DTC is already open when your code calls the open method.

NOTE: If your code calls the setRecordSource() method of the Recordset DTC, this reopens the recordset and may also cause the error.

RESOLUTION

You can work around this problem by testing to see if the Recordset DTC is already open before your code opens it. For example:
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>

function window_onload() {
  if (!Recordset1.isOpen()) { Recordset1.open() }
}

</SCRIPT>
				

STATUS

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

This problem was corrected in Internet Explorer 5.5.

Modification Type:MajorLast Reviewed:5/29/2003
Keywords:kbBug kbCtrl kbfix kbie550fix KB265568