
Help needed: COM in REAL-TIME systems.
I don't see any relation to the subject - ActiveX Controls are not
used in real-time systems...
There's no theoretical limit to the number of ActiveX Controls a
container hosts (other than the amount of virtual memory that is).
Specific containers may have their own limitations though. The
more the controls, the lower the performance of the UI of course...
Another limitation is imposed by the number of windows in a
single windowstation (if the controls are windowed that is).
Your crash is the result of a programming bug somewhere - either
the container or one (or more) of the controls.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
Quote:
> Hi everyone!
> I would be pleased if you answer my doubts about using COM with real
> time systems.
> Is there any limit for the maximum number of ActiveX controls in one
> container? I have a map which contains one ActiveX server and several OLE
> controls nested (casting included). Each map represents a room with
> objects - the user may control objects (lights, refrigerator, etc) or pass
> to other room by clicking in doors. The problem is that when I click
"back"
> and "forward" buttons quite fast, then the program directly crash because
of
> a read exception. I think it may be because the controls have no time
enough
> to be destroyed before new ones are created. I am quite sure that it is
not
> a problem of container. But I have some doubts about:
> - Maximum number in ActiveX controls used simultaneously.
> - It is really possible to nest several ActiveX objects in one? I have
> used something tricky I found somewhere and not sure about its
reliability.
> Has someone made something similar? Anyway, please could you explain
> shortly my doubts?
> Best regards and thanks in advance!
> Jos Romero