[Gambas-devel] 1.9.1 pcre problem diagnosed
Benoit Minisini
gambas at ...1...
Wed Jan 12 11:01:22 CET 2005
On Tuesday 11 January 2005 19:09, Rob wrote:
> One of the last changes I made to the regexp.c file was adding
> exec options and compile options as optional arguments.
> Unfortunately, if you don't specify both arguments the pattern
> fails to compile, and then when the _new method exits the
> interpreter segv's for some reason. I am now working on making
> those arguments actually optional ;)
>
> Rob
>
Be careful, Rob!
GB.ToZeroString() returns a -temporary- string that is freed later by the
interpreter. Don't use it if you want to store a string into an object
structure! Use GB.NewString() instead, and GB.FreeString() to free it.
See the documentation if the Wiki for more information.
--
Benoit Minisini
mailto:gambas at ...1...
More information about the Devel
mailing list