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
>   
>   sWorkingDirectory = Str@(pFunc)
>   Print sWorkingDirectory
> 
>   free_ptr(pFunc)
>   pFunc = 0
> 
> End

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.




------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to