[Gambas-user] Error with VarPtr() function

Brian G brian at westwoodsvcs.com
Fri Oct 29 02:51:14 CEST 2021


I was wrong.... S was public... Sorry
--
Thanks
Brian G Thursday, 28 October 2021, 05:48PM -07:00 from Benoît Minisini  g4mba5 at gmail.com :

>Le 28/10/2021 à 23:45, vuott--- via User a écrit :
> Hello,
> if I run this simple code:
>
> ===================
>    Private s As String
>
>
>    Public Sub Main()
>
>         Dim p As Pointer
>
>           s = "abcde"
>
>           p = VarPtr(s)
>
>    End
> =====================
>
> I obtain this error window message:
>
> « This application has raised an unexpected error and must abort.
>    System error #3: Nessun processo corrisponde (#42)
>    Design.TimerWatch_Timer.1777  »
>
> regards
> vuott
>
>
>Is it fixed by the last commit?
>
>This should be a race condition not related to your code at all.
>
>-- 
>Benoît Minisini
>
>----[  http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20211029/19b00958/attachment.htm>


More information about the User mailing list