Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP as COM freezes application.
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00390022
Message ID:
00390064
Views:
10
>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform