[Gambas-user] Desktop.Type crash in WSL2

Safiur Rahman isafiur at gmail.com
Tue Feb 21 10:24:55 CET 2023


I am running a gambas application in Ubuntu and in WSL2. In WSL2,
Desktop.Type resulted in null value upto gambas 3.17.3 and executed
silently. Now from gambas 3.18.0 it throws an error and crashes.

For a fix I am using

Try xtype = Desktop.Type
If xType Then
''procedure for linux system
''procedure for MS Windows 11

On Tue, Feb 21, 2023 at 10:04 AM Safiur Rahman <isafiur at gmail.com> wrote:

> Hi
> While using Desktop.Type in any gambas application (3.18.0) in "Windows
> subsystem for Linux (WSL2)" crashes the application producing following
> error. This problem is there with both stable 3.18.0 and development version
> [gb.gui.base].^^Desktop.GetDesktop.58: #65: Read-only array
> [gb.gui.base].^^Desktop.GetDesktop.58 [gb.gui.base].^^Desktop.Type_Read.66
> This problem was not there in gambas upto 3.17.3
> --
> Regards
> Safiur Rahman

Safiur Rahman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230221/21e9ec92/attachment.htm>

More information about the User mailing list