ADXBeforeFormShow behavior changed in 9.2.4635

Add-in Express™ Support Service
That's what is more important than anything else

ADXBeforeFormShow behavior changed in 9.2.4635
Seeing errors around InvalidOperationException in ADXBeforeFormShow in new version 
Jeremy Bean




Posts: 8
Joined: 2019-03-18
Hi,

Since upgrading to 9.2.4635 from 9.1 I'm seeing an issue around the ADXBeforeFormShow event handler. When handling that event I get the following error - System.InvalidOperationException: 'Invoke or BeginInvoke cannot be called on a control until the window handle has been created.' It looks like something may have changed around this event and how it is triggered in the AddIn lifecycle. Can you advise us on what may have changed between versions?

Thanks,
Jeremy
Posted 18 Mar, 2019 10:25:02 Top
Andrei Smolin


Add-in Express team


Posts: 16681
Joined: 2006-05-11
Hello Jeremy,

Now in the ADXBeforeFormShow event, the Handle property may not be initialized yet.

if (!this.IsHandleCreated) this.CreateHandle();

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 19 Mar, 2019 08:24:23 Top
Jeremy Bean




Posts: 8
Joined: 2019-03-18
Andrei,

That fixed it, thanks!

Jeremy
Posted 20 Mar, 2019 03:32:23 Top
Andrei Smolin


Add-in Express team


Posts: 16681
Joined: 2006-05-11
You are welcome!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 20 Mar, 2019 03:45:18 Top