T
Tamir
Hi,
I wrote an addin for ms-word.
The addin inserts a button into ms-word.
The button events are sinked into a buttonHandler class.
THE PROBLEM IS:
For EACH TIME the button is pressed TWO calls to Invoke are made!!!
The most amassing part is that if I add a persistent counter into the code
of Invoke function, the counter increases only by one even though the program
passes through it twice.
I dont have any logical explanation to it -- to my opinion it may be related
(somehow) to synchronization but it can be any thing else ....
I dont have a clue, pleas help me. (By the way, even if it is related to
synchronization I would stile not know what to do ...).
Best regards.
I wrote an addin for ms-word.
The addin inserts a button into ms-word.
The button events are sinked into a buttonHandler class.
THE PROBLEM IS:
For EACH TIME the button is pressed TWO calls to Invoke are made!!!
The most amassing part is that if I add a persistent counter into the code
of Invoke function, the counter increases only by one even though the program
passes through it twice.
I dont have any logical explanation to it -- to my opinion it may be related
(somehow) to synchronization but it can be any thing else ....
I dont have a clue, pleas help me. (By the way, even if it is related to
synchronization I would stile not know what to do ...).
Best regards.