Fw: memory violation error
Carlos Gaston Alvarez
cgaston at moonqzie.com
Tue Sep 18 04:58:44 EDT 2001
----- Original Message -----
From: "Carlos Gaston Alvarez" <cgaston at moonqzie.com>
To: "Silvio Arcangeli" <sarcangeli at montrouge.sema.slb.com>
Sent: Tuesday, September 18, 2001 10:57 AM
Subject: Re: memory violation error
> >
> > static PyObject * test (PyObject *unused1, PyObject *unused2){
> > Connect(connection);
> > if (connection ok){
> > CORBAFunction(connection, other constant and valid
> > parameters); // this one causes the problem
> > Disconnect(&connection);
> > }
> > return Py_BuildValue("s", "Ok");
> > }
> >
>
> It would be nice to have a definition (or at least a declaration) of
> connection.
>
> First of all, it is C or C++. There is a big diference.
>
> is conection a pointer? If so, why are you doing a disconnecion sending
its
> position? If you send for the conection a pointer and for the
disconection
> a pointer to pointer, the api is bad designed. (At least I dont like it).
>
> If it is cpp it can be references, but the problem remains the same.
>
> Search the documentation and get sure that you should user conneciton for
> connecting but &connection for disconecting.
>
>
> Chau,
>
> Gaston
>
More information about the Python-list
mailing list