Re: Memory exception with connection to Oracle

From: DA Morgan <damorgan_at_psoug.org>
Date: Fri, 16 Nov 2007 16:49:07 -0800
Message-ID: <1195260540.930602_at_bubbleator.drizzle.com>


vinod.katare_at_gmail.com wrote:
> Hi,
>
> When i am trying to execute the below code, getting the memory
> exception " Unable to read memory". Can anybody suggest me of what can
> be the problem?
> Also the exception is only if a add a createconnection statement. For
> connection to oracle from iSQLPLus i am using the same usr/pass
> without hoststring and its working there.
>
> Thanks,
> Vinod K
>
> #include "occi.h"
> #include<stdio.h>
> #include<string.h>
> #include<conio.h>
> using namespace oracle::occi;
> main()
> {
> Environment *env ;
> Connection *conn=env->createConnection("scott", "tiger","");
> printf("Done");
> getch();
> }

Go to http://otn.oracle.com
Click on Forums
Create a userid for yourself
There are forums for OCI and OCCI.

-- 
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan_at_x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Sat Nov 17 2007 - 01:49:07 CET

Original text of this message