Top Subpane sometimes not showing

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

Top Subpane sometimes not showing
 
Pino Carafa




Posts: 162
Joined: 2016-09-28
One of our clients has reported a strange issue where a panel we designed to appear at the top of an Inspector sometimes doesn't show.

The panel is defined as follows:

Name: olFrmReadTop
FormClassName: <ouraddin>.frmReadTop
ExplorerLayout: Unknown
ExplorerItemTypes: olUnknownItem
InspectorLayout: TopSubpane
InspectorItemTypes: olMail, olReport
Enabled: True

Sometimes the user tries to start composing a message and the panel simply isn't there.

what we've done
We have added debugging code - writing to a Log file - in the New() procedure for the panel
We have added debugging code to adxOutlookEvents_NewInspector

When it does work our log file shows debugging statements for adxOutlookEvents_NewInspector, and it shows debugging statements from the New() procedure

When it doesn't work we still get the same debugging statements for adxOutlookEvents_NewInspector, but these are not followed by debugging statements from the New() procedure

None of the statements indicate any error condition. So we are now in a state where we can see that it isn't happening but with no clue as to why.

I understand that there isn't much information to go by from the above description so at this point in time I'm merely looking for suggestions. Where else could we look or add debugging statements to find out what's going on?
Posted 25 Feb, 2022 05:00:05 Top
Pino Carafa




Posts: 162
Joined: 2016-09-28
Further to this we looked at the user's Event Viewer and found no errors logged there either during the times where the subpane wasn't shown.
Posted 25 Feb, 2022 05:51:07 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hello Pino,

Pino Carafa writes:
When it doesn't work we still get the same debugging statements for adxOutlookEvents_NewInspector, but these are not followed by debugging statements from the New() procedure


Does the ADXOlFromsManager.ADXBeforeFormInstanceCreate occur?

If the issue is reproducible, you can try to comment out blocks of your code to locate the cause.

Do you use async or thread-related things in your code?

Regards from Poland (CET),

Andrei Smolin
Add-in Express Team Leader
Posted 25 Feb, 2022 05:52:51 Top
Pino Carafa




Posts: 162
Joined: 2016-09-28
Hello Andrei

"Does the ADXOlFromsManager.ADXBeforeFormInstanceCreate occur? " - At this point I don't know but let me add some debug statements to that to find out. Thanks
Posted 25 Feb, 2022 05:57:03 Top
Pino Carafa




Posts: 162
Joined: 2016-09-28
"Do you use async or thread-related things in your code?"

Yes but I don't think we do anywhere in the code that deals with creating a New Inspector. I will double check this, though.
Posted 25 Feb, 2022 05:58:04 Top
Pino Carafa




Posts: 162
Joined: 2016-09-28
Hello Andrei,

Ok I added debugging code to 3 procedures:
AdxOlFormsManager_ADXNewInspector
AdxOlFormsManager_ADXBeforeFormInstanceCreate
AdxOlFormsManager_OnError

In our addin the Forms Manager is named AdxOlFormsManagerKH so that affected the names of the procedures slightly

This is an example of it working normally:
25/02/2022 12:54:51 -2- Entering NewInspector
25/02/2022 12:54:51 -2- Check active window: Active Window is already an Inspector, don't continue checking
25/02/2022 12:54:51 -2- frmSendTop.RFRACaseCode set to GIB019/0001
25/02/2022 12:54:51 -2- Releasing COM objects - START
25/02/2022 12:54:51 -2- Releasing COM objects - END
25/02/2022 12:54:51 -2- Entering AdxOlFormsManagerKH_ADXNewInspector
25/02/2022 12:54:51 -2- Entering AdxOlFormsManagerKH_ADXBeforeFormInstanceCreate
25/02/2022 12:54:51 -2- frmSendTop_New, enter
25/02/2022 12:54:51 -2- frmSendTop_New, component initialized

This is an example of it not working
25/02/2022 12:53:42 -2- Entering NewInspector
25/02/2022 12:53:42 -2- Get itemobject: New Mail flagged as "already sent"
25/02/2022 12:53:42 -2- Releasing COM objects - START
25/02/2022 12:53:42 -2- Releasing COM objects - END
25/02/2022 12:53:42 -2- Entering AdxOlFormsManagerKH_ADXNewInspector
25/02/2022 12:53:43 -2- Entering AdxOlFormsManagerKH_ADXBeforeFormInstanceCreate

Please note that the frmSendTop_New lines aren't there.

User tried again immediately afterwards:
25/02/2022 12:53:45 -2- Entering NewInspector
25/02/2022 12:53:45 -2- Check active window: Active Window is already an Inspector, don't continue checking
25/02/2022 12:53:45 -2- frmSendTop.RFRACaseCode set to GIB019/0001
25/02/2022 12:53:45 -2- Releasing COM objects - START
25/02/2022 12:53:45 -2- Releasing COM objects - END
25/02/2022 12:53:45 -2- Entering AdxOlFormsManagerKH_ADXNewInspector

This time it also didn't fire AdxOlFormsManagerKH_ADXBeforeFormInstanceCreate, or at least it looks like the debugger didn't write out that occurrence.
Posted 25 Feb, 2022 09:21:20 Top
Pino Carafa




Posts: 162
Joined: 2016-09-28
Hello Andrei,

Is there anything else I can check? The client is getting impatient and I don't really know where else I can take this.
Posted 28 Feb, 2022 06:52:36 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hello Pino,

We need some code to find out what's going on. Would this be possible?

Regards from Poland (CET),

Andrei Smolin
Add-in Express Team Leader
Posted 28 Feb, 2022 08:09:53 Top
Pino Carafa




Posts: 162
Joined: 2016-09-28
The add-in is part of quite a large VS Solution, so I will have to take a copy of that code and remove everything that's irrelevant from it to produce a copy that you will be able to run and investigate. It will take a little time but I'll go and create that for you.
Posted 28 Feb, 2022 08:26:33 Top
Pino Carafa




Posts: 162
Joined: 2016-09-28
Hello Andrei, I will send a link to the Solution to your support email address. None of the ribbon bar buttons are functional in this stripped down version, but I am hoping that there is still enough in there to help you establish why the "frmSendTop" panel might sometimes not appear when the user starts composing a message.

As I mentioned before, we are completely unable to reproduce this in house. The client has so far not been forthcoming with specific information about when this might happen. I don't know whether it happens when composing a new message, when replying to or forwarding a message, or any other details. Even for the client, this only happens occasionally.

We disabled all other add-ins for this user, and I am hoping that doing so will make the problem "go away". Nothing better than to be able to blame some other party's add-ins :-)
Posted 01 Mar, 2022 06:31:39 Top