Note that there are some explanatory texts on larger screens.

plurals
  1. POMsado60_Backcompat crashes in CCommand::CreateParameter
    primarykey
    data
    text
    <p>I am developing an ADO application (32 bit) on Windows 7 64 bit SP1 (all updates installed): The app must run on Win XP. According to <a href="http://support.microsoft.com/kb/2517589/en-us" rel="nofollow">http://support.microsoft.com/kb/2517589/en-us</a> I am using msado60_backcompat. That worked well until lately, but now it crashes.</p> <p>My code (snippets):</p> <pre><code>_CommandPtr cmd(__uuidof(Command)); cmd-&gt;ActiveConnection = dbconn; cmd-&gt;CommandText = _T("SELECT [si] FROM [TTable] WHERE [TTable].[ti1]=?"); cmd-&gt;Parameters-&gt;Append(cmd-&gt;CreateParameter(L"@ti1", adTinyInt, adParamInput, 1, 7)); </code></pre> <p>CreateParameter is implemented in msado60_backcompat:</p> <pre><code>inline _ParameterPtr Command15::CreateParameter ( _bstr_t Name, enum DataTypeEnum Type, enum ParameterDirectionEnum Direction, ADO_LONGPTR Size, const _variant_t &amp; Value ) { struct _Parameter * _result = 0; HRESULT _hr = raw_CreateParameter(Name, Type, Direction, Size, Value, &amp;_result); if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); return _ParameterPtr(_result, false); } </code></pre> <p>raw_CreateParameter() calls into msado15.dll into CCommand::CreateParameter. There a crash occurs at offset 0x34f (offset inside the function):</p> <blockquote> <p>First-chance exception at 0x655ed5a6 (msado15.dll) in adosqlbugcheck.exe: 0xC0000005: Access violation writing location 0xcccccccc.<br> Unhandled exception at 0x655ed5a6 (msado15.dll) in adosqlbugcheck.exe: 0xC0000005: Access violation writing location 0xcccccccc.</p> </blockquote> <p>Msado60_Backcompat.tlb: 73728 bytes, 29.4.2011<br> msado15.dll: 6.1.7601.17514, 1019904 bytes, 21.11.2010</p> <p>The error does not occur if I use msado15.dll.</p> <p>Can someone reproduce the error? Is there a solution?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload