Console vs IDE difference

Maxime LABELLE <[email protected]> Thu, 10 Apr 2003 13:55:39 +0200
Newsgroups gmane.comp.windows.devel.oledb.devel
Message-ID <[email protected]>
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C2FF58.1C14CB88
Content-Type: text/plain;
        charset="iso-8859-1"

Hi all,

I'm testing a OLEDB client with a console application.
The purpose is to be able to read blob data from an Oracle table.

Even though the program runs successfully when running it through
the Visual C++ IDE debugger, it fails when run from the command line.

The problem lies in the IRowsetChange::SetData() while trying to
read blob data from an Oracle table. I have made sure of the
following:

IAccessor::CreateAccessor()
    is called with dwFlags = DBACCESSOR_ROWDATA
    and retrieves a valid accessor handle

IRowsetChange::SetData()
    is called with the same accessor handle

HRESULT = 0x80040e4b (DB_E_BADACCESSORTYPE) when run from the command line
HRESULT = 0x00000000 (S_OK)                                    when run from
the VC++ IDE

Has anyone encountered this before? What might be the problem
between both environments?

Cheers.
Maxime.

You can read messages from the OLEDB_DEV archive, unsubscribe from OLEDB_DEV,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.

------_=_NextPart_001_01C2FF58.1C14CB88
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>Console vs IDE difference</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Arial">Hi all,</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I'm testing a OLEDB client with a =
console application.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">The purpose is to be able to read =
blob data from an Oracle table.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Even though the program runs =
successfully when running it through</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">the Visual C++ IDE debugger, it fails =
when run from the command line.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">The problem lies in the =
IRowsetChange::SetData() while trying to</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">read blob data from an Oracle table. =
I have made sure of the </FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">following:</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">IAccessor::CreateAccessor()</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; is called with =
dwFlags =3D DBACCESSOR_ROWDATA</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; and retrieves a =
valid accessor handle</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">IRowsetChange::SetData()</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp;&nbsp; is called with the =
same accessor handle</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">HRESULT =3D 0x80040e4b =
(DB_E_BADACCESSORTYPE) when run from the command line</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">HRESULT =3D 0x00000000 =
(S_OK)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
 when run from the VC++ IDE</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Has anyone encountered this before? =
What might be the problem</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">between both environments? </FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Cheers.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Maxime.</FONT>
</P>

</BODY>
</HTML>
You can read messages from the OLEDB_DEV archive, unsubscribe from OLEDB_DEV,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.
------_=_NextPart_001_01C2FF58.1C14CB88--