B
Bob Clegg
Hi,
I have a form that has a telephony control and its event handler.
If a msgbox is put into Public Sub New() after initialisecomponent
or it is put in any subroutine that is called in Sub New() after
initialisecomponent.
Then the eventhandler is shutout. ie It will not trigger on an incoming
call.
It appears that it is not totally safe after InitializeComponent().
Further evidence of this is while investigating the above I attempted to
invoke a delegate in the same spot.
This errored with 'cannot call invoke until windows handle has been created'
So just a warning to anyone who is interested.
It is an evil little bug as the last thing you would expect to be causing
trouble is a msgbox that executes OK within its context.
Whether it is specific to this component or not I haven't had time to
investigate.
regards
Bob
I have a form that has a telephony control and its event handler.
If a msgbox is put into Public Sub New() after initialisecomponent
or it is put in any subroutine that is called in Sub New() after
initialisecomponent.
Then the eventhandler is shutout. ie It will not trigger on an incoming
call.
It appears that it is not totally safe after InitializeComponent().
Further evidence of this is while investigating the above I attempted to
invoke a delegate in the same spot.
This errored with 'cannot call invoke until windows handle has been created'
So just a warning to anyone who is interested.
It is an evil little bug as the last thing you would expect to be causing
trouble is a msgbox that executes OK within its context.
Whether it is specific to this component or not I haven't had time to
investigate.
regards
Bob