Re: Console vs IDE difference
Patrick Hoeffel <[email protected]> Thu, 10 Apr 2003 11:21:34 -0600
| 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_01C2FF85.A29C22F0 Content-Type: text/plain Maxine, The VC++ Debugging environment initializes all variables to 0 for you at run time. When running outside the debugger, this does not happen. I would recommend that you verify the initialization values of all of your local variables and zero any that are not currently initialized. It may help. Regards, Patrick -----Original Message----- From: Maxime LABELLE [mailto:[email protected]] Sent: Thursday, April 10, 2003 5:56 AM To: [email protected] Subject: [OLEDB_DEV] Console vs IDE difference 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. 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_01C2FF85.A29C22F0 Content-Type: text/html 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=3Dus-ascii"> <TITLE>Message</TITLE> <META content=3D"MSHTML 6.00.2713.1100" name=3DGENERATOR></HEAD> <BODY> <DIV><SPAN class=3D578122717-10042003><FONT face=3DArial = color=3D#0000ff=20 size=3D2>Maxine,</FONT></SPAN></DIV> <DIV><SPAN class=3D578122717-10042003><FONT face=3DArial = color=3D#0000ff=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D578122717-10042003><FONT face=3DArial = color=3D#0000ff size=3D2>The=20 VC++ Debugging environment initializes all variables to 0 for you at = run time.=20 When running outside the debugger, this does not happen. I would = recommend that=20 you verify the initialization values of all of your local variables and = zero any=20 that are not currently initialized. It may help.</FONT></SPAN></DIV> <DIV><SPAN class=3D578122717-10042003><FONT face=3DArial = color=3D#0000ff=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D578122717-10042003><FONT face=3DArial = color=3D#0000ff=20 size=3D2>Regards,</FONT></SPAN></DIV> <DIV><SPAN class=3D578122717-10042003><FONT face=3DArial = color=3D#0000ff=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D578122717-10042003><FONT face=3DArial = color=3D#0000ff=20 size=3D2>Patrick</FONT></SPAN></DIV> <DIV><SPAN class=3D578122717-10042003></SPAN> </DIV> <BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px"> <DIV></DIV> <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr = align=3Dleft><FONT=20 face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> = Maxime LABELLE=20 [mailto:[email protected]] <BR><B>Sent:</B> Thursday, April 10, 2003 = 5:56=20 AM<BR><B>To:</B> [email protected]<BR><B>Subject:</B> = [OLEDB_DEV]=20 Console vs IDE difference<BR><BR></FONT></DIV> <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_01C2FF85.A29C22F0--