[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #3023: scripting fails if using gui


http://gambaswiki.org/bugtracker/edit?object=BUG.3023&from=L21haW4-

Comment #3 by Bruce STEERS:

I wonder how much this _Gui._InitApp() method is needed?

I did some experiments..

I changed _InitApp() to only return the $sAppId and then to return nothing so it was essentially just this...

Static Public Sub _InitApp() As String
  
  $sAppId = "org.gambas." & CStr(Application.Handle)
  Return $sAppId
  ' Return ""  ' I also tried this

End

I then re-compiled gambas. All my programs are still working and the error message is gone when using gui and gbs3.

Using Return $sAppId or Return "" both work and fix this currently almost fixed bug, I get no error messages at all.

Maybe you can evaluate if the _InitApp() method is even really needed?
Or if it REALLY IS needed for a specific case make it only function in that specific case?

Respects

Bruce STEERS changed the state of the bug to: Working.


----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----

References:
[Gambas-bugtracker] Bug #3023: scripting fails if using gui<bugtracker@xxxxxxxxxxxxxx>