Ok, can you test this program?
You will see a window with 4 buttons. Each buttons use a different way to display the dialog box that crash in ToYcon.
Click on one button then (if the prog don't crash!) clic on cancel or ok (the prog does nothing, it's just display window).
Test it for each button and tell me which ones work and which ones crash