Re: Console vs IDE difference
Maxime LABELLE <[email protected]> Thu, 10 Apr 2003 19:30:23 +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_01C2FF86.DE33E07C
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sorry for the description of this thread.
I know, the description sounds definititely un-rational.
=20
Anyway, the problem occurred because I was actually
calling IAccessor::ReleaseAccessor() when done.
=20
It appears that, apart from multiple threads scenario as
outline in MSDN, one *never* has to call IAccessor::ReleaseAccessor().
=20
Cheers.
Maxime.
-----Message d'origine-----
De : OLEDB_DEV [mailto:[email protected]]De la part de =
Maxime
LABELLE
Envoy=E9 : jeudi 10 avril 2003 13:56
=C0 : [email protected]
Objet : [OLEDB_DEV] Console vs IDE difference
Hi all,=20
I'm testing a OLEDB client with a console application.=20
The purpose is to be able to read blob data from an Oracle table.=20
Even though the program runs successfully when running it through=20
the Visual C++ IDE debugger, it fails when run from the command line.=20
The problem lies in the IRowsetChange::SetData() while trying to=20
read blob data from an Oracle table. I have made sure of the=20
following:=20
IAccessor::CreateAccessor()=20
is called with dwFlags =3D DBACCESSOR_ROWDATA=20
and retrieves a valid accessor handle=20
IRowsetChange::SetData()=20
is called with the same accessor handle=20
HRESULT =3D 0x80040e4b (DB_E_BADACCESSORTYPE) when run from the command =
line=20
HRESULT =3D 0x00000000 (S_OK) when =
run from
the VC++ IDE=20
Has anyone encountered this before? What might be the problem=20
between both environments?=20
Cheers.=20
Maxime.=20
You can read messages from the OLEDB_DEV archive, unsubscribe from
OLEDB_DEV, or subscribe to other DevelopMentor lists at
http://discuss.develop.com.
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_01C2FF86.DE33E07C
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<TITLE>Console vs IDE difference</TITLE>
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D643272717-10042003>Sorry=20
for the description of this thread.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D643272717-10042003>I=20
know, the description sounds definititely =
un-rational.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D643272717-10042003></SPAN></FONT> </DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D643272717-10042003>Anyway, the problem occurred because I was=20
actually</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D643272717-10042003>calling IAccessor::ReleaseAccessor() when=20
done.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D643272717-10042003></SPAN></FONT> </DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D643272717-10042003>It=20
appears that, apart from multiple threads scenario =
as</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D643272717-10042003>outline in MSDN, one *never* has to call=20
IAccessor::ReleaseAccessor().</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D643272717-10042003></SPAN></FONT> </DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D643272717-10042003>Cheers.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D643272717-10042003>Maxime.</SPAN></FONT></DIV>
<BLOCKQUOTE>
<DIV align=3Dleft class=3DOutlookMessageHeader dir=3Dltr><FONT =
face=3DTahoma=20
size=3D2>-----Message d'origine-----<BR><B>De :</B> OLEDB_DEV=20
[mailto:[email protected]]<B>De la part de</B> Maxime=20
LABELLE<BR><B>Envoy=E9 :</B> jeudi 10 avril 2003 =
13:56<BR><B>=C0 :</B>=20
[email protected]<BR><B>Objet :</B> [OLEDB_DEV] =
Console vs=20
IDE difference<BR><BR></DIV></FONT>
<P><FONT face=3DArial size=3D2>Hi all,</FONT> </P>
<P><FONT face=3DArial size=3D2>I'm testing a OLEDB client with a =
console=20
application.</FONT> <BR><FONT face=3DArial size=3D2>The purpose is to =
be able to=20
read blob data from an Oracle table.</FONT> </P>
<P><FONT face=3DArial size=3D2>Even though the program runs =
successfully when=20
running it through</FONT> <BR><FONT face=3DArial size=3D2>the Visual =
C++ IDE=20
debugger, it fails when run from the command line.</FONT> </P>
<P><FONT face=3DArial size=3D2>The problem lies in the =
IRowsetChange::SetData()=20
while trying to</FONT> <BR><FONT face=3DArial size=3D2>read blob data =
from an=20
Oracle table. I have made sure of the </FONT><BR><FONT face=3DArial=20
size=3D2>following:</FONT> </P>
<P><FONT face=3DArial size=3D2>IAccessor::CreateAccessor()</FONT> =
<BR><FONT=20
face=3DArial size=3D2> is called with dwFlags =3D=20
DBACCESSOR_ROWDATA</FONT> <BR><FONT face=3DArial =
size=3D2> and=20
retrieves a valid accessor handle</FONT> </P>
<P><FONT face=3DArial size=3D2>IRowsetChange::SetData()</FONT> =
<BR><FONT=20
face=3DArial size=3D2> is called with the same =
accessor=20
handle</FONT> </P>
<P><FONT face=3DArial size=3D2>HRESULT =3D 0x80040e4b =
(DB_E_BADACCESSORTYPE) when=20
run from the command line</FONT> <BR><FONT face=3DArial =
size=3D2>HRESULT =3D=20
0x00000000=20
=
(S_OK) =
=
=
=20
when run from the VC++ IDE</FONT> </P>
<P><FONT face=3DArial size=3D2>Has anyone encountered this before? =
What might be=20
the problem</FONT> <BR><FONT face=3DArial size=3D2>between both =
environments?=20
</FONT></P>
<P><FONT face=3DArial size=3D2>Cheers.</FONT> <BR><FONT face=3DArial=20
size=3D2>Maxime.</FONT> </P>You can read messages from the OLEDB_DEV =
archive,=20
unsubscribe from OLEDB_DEV, or subscribe to other DevelopMentor lists =
at=20
http://discuss.develop.com.</BLOCKQUOTE></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_01C2FF86.DE33E07C--