Received: from msbit.com (msbit.com [207.44.139.194]) by hub.org (8.9.2/8.9.1) with SMTP id RAA45331 for ; Mon, 8 Mar 1999 17:34:54 -0500 (EST) (envelope-from jrl@msbit.com) Received: by msbit.com (4.1/SMI-4.1) id AA03774; Mon, 8 Mar 99 14:35:41 PST Received: from nero.msbit.com(10.88.176.70) via SMTP by gw.msbit.com, id smtpdAAAa03770; Mon Mar 8 14:35:36 1999 Received: by nero.msbit.com (SMI-8.6/SMI-SVR4) id OAA08282; Mon, 8 Mar 1999 14:31:51 -0800 From: jrl@msbit.com (Jim Lawson) Message-Id: <199903082231.OAA08282@nero.msbit.com> Subject: Re: Odd program behaviour To: pgsql-interfaces@hub.org Date: Mon, 8 Mar 1999 14:31:50 -0800 (PST) Cc: James@msbit.com, Thompson@msbit.com, X-Mailer: ELM [version 2.4 PL25] Content-Type: text We ran into similar problems integrating a third party library into a perl application with SWIG. There appeared to be some confusion between perl and SWIG over references/pointers and allocating memory for the referred/pointed to object. We worked around the problem by making sure the memory allocation happened in perl (by initializing the reference with a suitably large object).