Controlling "Fast-COM"


By default, the "Fast-COM" mode is active for those methods and properties providing this implementation mode.
It is possible to enable and disable this feature at runtime, in order to verify and compare the behaviour of property and method functions, especially for troubleshooting.

The function (vle-fastcom t/nil) can be issued on commandline and also inside Lisp files; it is immediately effective, until enabled resp. disabled with next call. This allows to verify runtime behaviour of particular Lisp functions, from inside the Lisp code.

Normally, there should be no difference in Lisp behaviour (except for performance and memory load): - in opposite, any difference would clearly indicate an implementation issue in "Fast-COM" mode, which should be reported to Bricsys, using the SupportRequest system.

Example :


       (if vle-fastcom (vle-fastcom nil))
       (setq res (vla-get-color <object>))
       (if vle-fastcom (vle-fastcom t))
       (setq res (vla-get-layer <object>))

The Color property value is retrieved by normal Windows COM access, while the Layer property is accessed using "Fast-COM" mode.



©  Bricsys NV. All rights reserved.