Re: Loading database from string (C API)

Edd Barrett <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On Thu, Dec 12, 2013 at 09:38:29PM +0100, Jan Wielemaker wrote:
> Just a guess.  Is the string properly allocated, such that it won't move
> or be overwritten or whatever if Prolog and or Python are going to
> do garbage collection or malloc() reuses the freed address, or ...

Well, I tried strdup()ing the input string within the open_stream()
function. Sadly no joy.

-- 
Best Regards
Edd Barrett

http://www.theunixzoo.co.uk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.