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