[Gambas-user] Crash!

Benoît Minisini gambas at ...1...
Sat Jan 15 02:04:55 CET 2011


> OK, I managed to isolate this problem!
> This will crash Gambas 3 rev 3452 @ Ubuntu 10.10 64bit.
> 
> 
> Public Sub Form_Open()
> Dim hFile As File
> Dim sho As Short
> Dim sStr As String = "" '"abc" Crash only occurs if string is null.
> 
> hFile = Open "/tmp/test" For Create
> Write #hFile, 123 As Short
> Write #hFile, sStr As String
> Close #hFile
> 
> hFile = Open "/tmp/test" For Read
> sho = Read #hFile As Short
> sStr = Read #hFile As String
> Close #hFile
> 
> End
> 
> Ready made project is attached.
> 
> Jussi
> 

Thanks. It was fixed in revision #3455.

Regards,

-- 
Benoît Minisini




More information about the User mailing list