>I'm trying to automate a VFP .exe from Visual Lisp running in autocad. When I show a form, the autocad display is frozen and when you move the form around the screen by dragging it with the taskbar, the autocad display can't update itself.
>
>This is just a test with 2 classes, one is the form, and one creates the form and issues a read events.
>
>Here is code in the class that instantiates the form class. It's set as olepublic.
>
>
x = createobject("helloform")
>x.show(2)
>read events
>release x
>
>the only code in the form is 'clear events' in the forms destroy. I set the form properties as:
>
>.autocenter = .t.
>.desktop = .f.
>.showwindow = 2 && as top-level
>
>I compile as a .exe
>
>Any ideas why AutoCAD can't update it's display while the form is showing?
AutoCAD is waiting on the VFP app to return control because the COM interface - you made a COM call, and until that COM reference terminates the invocation and returns, AutoCAD is blocked.