Received: from ns2.cybervale.com ([207.241.176.10]) by hub.org (8.9.3/8.9.3) with ESMTP id AAA56601 for ; Mon, 6 Dec 1999 00:48:06 -0500 (EST) (envelope-from caspanis@cybervale.com) Received: from cybervale.com (crandle@[207.241.176.119]) by ns2.cybervale.com (8.9.3/8.9.3) with ESMTP id AAA07203; Mon, 6 Dec 1999 00:58:59 -0500 Sender: crandle@ns2.cybervale.com Message-ID: <384B4D4B.BF6EE9D6@cybervale.com> Date: Mon, 06 Dec 1999 00:44:43 -0500 From: Charles Randle X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.10 i586) X-Accept-Language: en MIME-Version: 1.0 To: Tom Lane CC: pgsql-interfaces@postgresql.org Subject: Re: [INTERFACES] Problems with postgres V6.5.3 large objects References: <7702.944436768@sss.pgh.pa.us> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Tom, In terms of access to the large object, my class maintains an array of objects which are currently open (Oid,name,file descriptor etc ..). Whenever access is needed to any large object an accessor method simply executes 'lo_read'/lo_write' or lo_seek as is desired . If the object is not on the active list then another method opens the object (using lo_open ).As is to be expected the destructor of the class closes all open objects . These accessor methods are called by C style functions which are basically wrappers of them . This is done because the access is needed by a Dialogic voice library . The messages are actually VOX voice messages which are played by an application that I am designing. The Dialogic libraries that I'm using allow the installation of custom I/O functions for reading to or writing from non-standard devices (hence the need for C style wrappers ) , but these custom functions must have the same prototype of standard open/read/write/lseek systems calls . The interface works for the first such VOX large object but the error manifests itself if I try to load (open ) another large object for use . Regards, Charles Randle