PopupMenu Crash

Linux Mint 18.1
Xojo 2015r1
Unregistered mode

Brand new project (not saved),
PopupMenu

Code in Open event:
Sub Open()
PM_Alignment.AddRow “AlignDefault”
PM_Alignment.AddRow “AlignLeft”
PM_Alignment.AddRow “AlignCenter”
PM_Alignment.AddRow “AlignRight”
PM_Alignment.AddRow “AlignDecimal”
End Sub

Run,

Crash.

Is PM_Alignment the popupmenu that this event is in ?
Or is it a different control ?

Crash (as in core dump) ?
Or crash as in “nilobject exception” - which is not a “crash” but an exception

Hi Norman,

good set of questions…

Is PM_Alignment the popupmenu that this event is in ?
Yes.

Crash (as in core dump) ?
In the IDE: it’s a freeze (the VirtualBox wIndow have to be closed)

In the application:
“An exception of class NilObjectException was not handled. The application must shut down.”

Code works perfectly here on Mint 18.1 32 bit with 2017r1

An NOE is an exception that you can / should be able to debug and handle

A “crash” is quite literally a core dump - the process dies and there is NO exception you can catch

Worst:

after a glass of cold water, I cut / paste the Open event (with code) into the PopupMenu and it works fine.

Conclusion: the code works fine in macOS and Windows, but have to be placed elsewhere for Linux.

So I will do.

An NOE is an exception that you can / should be able to debug and handle
Since nothing happens in both other OSes… I got a phone call from a company that used Linux.

Code works perfectly here on Mint 18.1 32 bit with 2017r1
Here, it’s Mint 18.1 64 bit (32 bits refused to be installed on my MacBook Pro 13" El Capitan… last VirtualBox, with 2015r1 (2005 Release 1).

I searched with Feedback, but this is not easy since references for Linux can be done for “works on Linex…”.

Thank you for your answer(s).

Edit:
36° Celcius today at Strasbourg.

On 64 bit its entirely possible that you’re missing a required 32 bit library for a 32 bit program

Yes.

That said, since yesterday, all seems OK (seems).