[Gambas-user] Elusive Gambas3 crashing bug

Benoît Minisini gambas at ...1...
Mon Nov 15 22:19:06 CET 2010


> More...
> 
> Dim TestSingle As Single
> Dim pp As Pointer
> 
>  TestSingle = 33.1
>  pp = VarPtr(TestSingle)
> 
>  SinglePtr(pp) = 33.1 is False! Gives -2...
> 
> 
> Jussi
> 

Actually SinglePtr() cannot work on local variables, because internally there 
is no "Single" local variable, only "Float".

Thanks for detecting that weird thing!

-- 
Benoît Minisini




More information about the User mailing list