On Tue, 2011-01-18 at 22:08 -0800, John Spikowski wrote:
> I was thinking that you were freeing pFunc (using it's VARPTR) rather
> than freeing the memory associated to the pointer being returned. I have
> to agree with Benoît that working with external memory (variables) and
> structures are a 'at
On Tue, 2011-01-18 at 10:08 +0200, Demosthenes Koptsis wrote:
> >
> > Isn't pFunc a Gambas variable (memory location) which is maintained by
> > the Basic? Why would you free it externally? I would think Gambas would
> > complain about that.
>
> Yes pFunc is a pointer. A pointer is a variable tha
On Mon, 2011-01-17 at 13:59 -0800, John Spikowski wrote:
> On Mon, 2011-01-17 at 21:36 +0200, Demosthenes Koptsis wrote:
> > On Mon, 2011-01-17 at 13:33 +0100, Benoît Minisini wrote:
>
> > Public Sub Main()
> >
> > Dim pFunc As Pointer
> > Dim sWorkingDirectory As String
> >
> > 'get_current
On Mon, 2011-01-17 at 21:36 +0200, Demosthenes Koptsis wrote:
> On Mon, 2011-01-17 at 13:33 +0100, Benoît Minisini wrote:
> Public Sub Main()
>
> Dim pFunc As Pointer
> Dim sWorkingDirectory As String
>
> 'get_current_dir_name
> pFunc = get_current_dir_name()
> Print pFunc
>
> sWork