Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Execute event does not always trigger
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Execute event does not always trigger

 Post Reply Post Reply
Author
Message
dajv View Drop Down
Groupie
Groupie


Joined: 27 July 2004
Location: Australia
Status: Offline
Points: 80
Post Options Post Options   Thanks (0) Thanks(0)   Quote dajv Quote  Post ReplyReply Direct Link To This Post Topic: Execute event does not always trigger
    Posted: 05 January 2006 at 8:01pm
Gday,

I have been trying to track down this problem for a while. It cannot be reproduced reliably.

After a period of time ranging from 10 minutes to a couple hours of having our application open, eventually context menus no longer respond to mouse clicks. The user right clicks, the menu displays, but none of the controls in the menu respond.

I have been able to determine that when this happens, the Execute event is NOT being fired at all. The only thing that fixes it is restarting the application.

I have found that if I use the TPM_RETURNCMD flag then I don't get this problem, as I can force the calling of the Execute event. (When the above problem occurred I saw that other context menus that did not rely on the Execute event triggering (ie used TPM_RETURNCMD) did not suffer from the same problem.)

So the work around is to always use TPM_RETURNCMD, but would appreciate if you can you look into this, since it isn't ideal.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 06 January 2006 at 8:53am

Hello,

Can you send exceutable/your code to our issuetrack to debug it?

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
dajv View Drop Down
Groupie
Groupie


Joined: 27 July 2004
Location: Australia
Status: Offline
Points: 80
Post Options Post Options   Thanks (0) Thanks(0)   Quote dajv Quote  Post ReplyReply Direct Link To This Post Posted: 08 January 2006 at 3:22pm
Well in theory you should be able to reproduce it with the CommandBars samples, so it wouldn't make a difference sending our code/executable (which I'm not permitted to do).

It is seemingly random - I have tried to reproduce it myself and cannot. It only seems to happen on non-development machines.

Perhaps you can review the code in question and examine how this could arise, if at all.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 09 January 2006 at 10:30am

Hello,

We can't reproduce it, and nobody reported about it, so I guess you have some code in your application that can be reason of it.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.