[Gambas-user] Elusive Gambas3 crashing bug

Jussi Lahtinen jussi.lahtinen at ...626...
Sun Nov 14 14:46:09 CET 2010


More...

Shouldn't Finally to be read after Catch, not before?
Now I get:
TestErrorManagment(1) = 1  <-- Catch is never read!
TestErrorManagment(2) = 21

I exepected;
TestErrorManagment(1) = 4
TestErrorManagment(2) = 21

Right now word Finally doesn't do anything.


Private Function TestErrorManagment(iWhich As Integer) As Integer
Dim iError As Integer

  If iWhich = 1 Then
   iError = 1 / 0
  Else
   iError = 20
  Endif

Finally
Inc iError
Return iError

Catch
iError = 3

End


Jussi



On Sun, Nov 14, 2010 at 15:02, Jussi Lahtinen <jussi.lahtinen at ...626...>wrote:

> More...
>
> ? Week("07/24/2005")
> 30
> Should be 29.
>
> Jussi
>
>
>
>
> On Sat, Nov 13, 2010 at 19:36, Jussi Lahtinen <jussi.lahtinen at ...626...>wrote:
>
>> More...
>>
>> Dim TestSingle As Single
>> Dim pp As Pointer
>>
>>  TestSingle = 33.1
>>  pp = VarPtr(TestSingle)
>>
>>  SinglePtr(pp) = 33.1 is False! Gives -2...
>>
>>
>> Jussi
>>
>>
>>
>>
>>
>> On Fri, Nov 12, 2010 at 23:44, Jussi Lahtinen <jussi.lahtinen at ...626...>wrote:
>>
>>>
>>> > I'll send my whole project to you later.
>>>> >
>>>> > According to documentation this should yield True.
>>>> > ? IsBlank(" \\t")
>>>> > I got always False...
>>>>
>>>> It's a typo mistake. Read: IsBlank(" \t")
>>>>
>>>
>>> OK.
>>>
>>>
>>>> >
>>>> > BTW. I'll check all math functions against wolfram|Alpha,
>>>> > so sometimes I'm not sure where to put limit of acceptable accuracy.
>>>> >
>>>> > Jussi
>>>> >
>>>>
>>>> What's "wolfram|Alpha" ?
>>>>
>>>
>>> Handy tool...
>>> http://www.wolframalpha.com/
>>>
>>> Jussi
>>>
>>
>>
>



More information about the User mailing list