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

Re: ghost form on startup of TrayIcon but only sometimes


A little more debugging and observation(s)

Earlier (today) I wasn't getting the issue on Plasma X11, but on further testing I did just encounter it.

The ghost form appears when control returns to the MMain.module after processing the FMain.Show() command. It does not appear while stepping through the code in the FMain.Show subroutine.
FMain.Visible = False still seemingly has no affect.

I added a FMain.Load() at start of MMain.module Public Sub Main() and while debugging I noted the tray icon appeared at that point and no ghost form. I commented out the FMain.Show() line in MMain, made new executable and it all works ... except the Quit option from tray icon does not work.

If I add the FMain.Show line back in the ghost form is back.

If I breakpoint on the mnQuit_Click() and step through the Me.Close() is ignored and program still runs unless you stop the program in the IDE.
I tried a Me.Exit or Me.Quit both said invalid objects ....

As mentioned this is intermittent! So my observations above may also be only applicable when issue is present.