Help needed: COM in REAL-TIME systems. 
Author Message
 Help needed: COM in REAL-TIME systems.

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



Sat, 19 Jul 2003 23:06:51 GMT  
 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



Sun, 20 Jul 2003 11:15:53 GMT  
 Help needed: COM in REAL-TIME systems.
Hi again!

    Thanks for the answer! I still have not some details clear about the
answer:

    1) You mean that it is better not to use ActiveX technology in real-time
systems?

    2) Do you know the limit for the number of windows in a single
windowstation? Do you know where to find further information or how to reach
these articles in MSDN (if avalaible)?

    Thanks in advance again! I am really grateful for the received help.

    Best regards,

        Jos Romero

--




Sun, 20 Jul 2003 18:23:30 GMT  
 Help needed: COM in REAL-TIME systems.
See inline.

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD

MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================


Quote:
> Hi again!

>     Thanks for the answer! I still have not some details clear about the
> answer:

>     1) You mean that it is better not to use ActiveX technology in
real-time
> systems?

No, I didn't say that. I just said you shouldn't use ActiveX Controls. You
can
use non-GUI COM objects alright...

Quote:

>     2) Do you know the limit for the number of windows in a single
> windowstation? Do you know where to find further information or how to
reach
> these articles in MSDN (if avalaible)?

This has to do with the GDI resources. Sorry, I'm not an expert on GDI...
Anyway, provided your controls are windowless, this won't be an issue...

Quote:

>     Thanks in advance again! I am really grateful for the received help.

You're welcome.
Quote:

>     Best regards,

>         Jos Romero

> --






Mon, 21 Jul 2003 02:49:35 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. help with interrupts needed for real time work

2. Need help: Real-time data aquisition, how to?

3. Help needed on REAL TIME graph drawing with MFC

4. Help!: problem with fast timing for real-time application on PC

5. Finding System/User/Real times on Win32 - URGENT!

6. Q: update system clock with real time clock

7. Real time system design with VC++

8. Finding System/User/Real times on Win32 - URGENT!

9. Using COM/DCOM in a Realtime System?

10. Using RTC(Real-Time Communication) COM in WindowsCE

11. Need Help: random # from system time

12. Need C/C++ source code for real time graphing

 

 
Powered by phpBB® Forum Software