Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Automation error (-2147418107) (Read 8739 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Automation error (-2147418107)
Reply #15 - Aug 24th, 2006 at 7:16am
Print Post  
Hi,

I guess DoEvents won't cause a crash if there aren't any messages in the flowchart window message queue . So one time it might work, and the next time not ...

Try the following:

- set EventFlags(fFireMouseUpAfterModfProcessing) = true; That will make the MouseUp event raised after the control finishes processing the selection change.

- in SelectionChanged only set some boolean flag = true

- in MouseUp, if that flag is set, execute the code that is currently called from SelectionChanged. Now it should be safe to call DoEvents, because the control is already at the end of its WM_BUTTONUP handler.

Stoyan
  
Back to top
 
IP Logged
 
SunnyT.
YaBB Newbies
*
Offline



Posts: 10
Joined: Aug 19th, 2006
Re: Automation error (-2147418107)
Reply #16 - Aug 24th, 2006 at 1:48pm
Print Post  
Hi,

it seems to work this way...thanks a lot for your help
Sunny
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint