At 12:02 27/04/99 +0200, you wrote:
>
>----- Original Message -----
>From: Juan Vera <jvera@mdr.indra-espacio.es>
>To: <hpvxd_xc@hpislsup.lvld.hp.com>
>Sent: Monday, April 26, 1999 10:50 AM
>Subject: VRf: ActiveX and time-slicing
>
>
>> If an ActiveX control event handler is enabled and a defined event arises,
>> VEE always calls the involved VEE function (where the event is treated) in
>a
>> no-time-slicing fashion.
>>
>> Does anybody know how to invoke a VEE event function in a time-slicing
>basis ?
>>
>> Thanks in advance.
>
>
>Use a global var in your event handler which changes its state by the event.
>Then return to standard VEE and in a continous loop check the state of this
>var. If the var is set ( event occurred) then you can call the vee-function
>and it will time slice.
>
Ok but this approach does not take benefit of the event oriented programming.
-------------------------------------------------
| Juan Vera |
| E-mail: jvera@mdr.indra-espacio.es |
| Phone: 34-913 963 986 |
| Fax: 34-913 963 912 |
| Earth Stations Department |
| INDRA ESPACIO S.A. |
| Mar Egeo 4, Pol. Ind. 1 |
| San Fernando de Henares |
| 28850 MADRID |
| SPAIN |
-------------------------------------------------
>
>----- Original Message -----
>From: Juan Vera <jvera@mdr.indra-espacio.es>
>To: <hpvxd_xc@hpislsup.lvld.hp.com>
>Sent: Monday, April 26, 1999 10:50 AM
>Subject: VRf: ActiveX and time-slicing
>
>
>> If an ActiveX control event handler is enabled and a defined event arises,
>> VEE always calls the involved VEE function (where the event is treated) in
>a
>> no-time-slicing fashion.
>>
>> Does anybody know how to invoke a VEE event function in a time-slicing
>basis ?
>>
>> Thanks in advance.
>
>
>Use a global var in your event handler which changes its state by the event.
>Then return to standard VEE and in a continous loop check the state of this
>var. If the var is set ( event occurred) then you can call the vee-function
>and it will time slice.
>
Ok but this approach does not take benefit of the event oriented programming.
-------------------------------------------------
| Juan Vera |
| E-mail: jvera@mdr.indra-espacio.es |
| Phone: 34-913 963 986 |
| Fax: 34-913 963 912 |
| Earth Stations Department |
| INDRA ESPACIO S.A. |
| Mar Egeo 4, Pol. Ind. 1 |
| San Fernando de Henares |
| 28850 MADRID |
| SPAIN |
-------------------------------------------------
like an interrupt to a MCU. It should be handled as quickly as possible,
everything else should be put on hold.
I am currently struggling with a similar problem. I have an interrupt
handler that is caused by an SRQ. It is a user function that is called by a
formula control pin, which makes it non-multithreaded. The problem is that
if this function calls any other function that was executing when the
interrupt occured, vee will lock up. I don't know if this happens with the
event handlers, but you may want to see.
-----Original Message-----
From: Juan Vera [mailto:jvera@mdr.indra-espacio.es]
Sent: Tuesday, April 27, 1999 7:48 AM
To: Georg Nied
Cc: hpvxd_xc@hpislsup.lvld.hp.com
Subject: Re: ActiveX and time-slicing
At 12:02 27/04/99 +0200, you wrote:
>
>----- Original Message -----
>From: Juan Vera <jvera@mdr.indra-espacio.es>
>To: <hpvxd_xc@hpislsup.lvld.hp.com>
>Sent: Monday, April 26, 1999 10:50 AM
>Subject: VRf: ActiveX and time-slicing
>
>
>> If an ActiveX control event handler is enabled and a defined event
arises,
>> VEE always calls the involved VEE function (where the event is treated)
in
>a
>> no-time-slicing fashion.
>>
>> Does anybody know how to invoke a VEE event function in a time-slicing
>basis ?
>>
>> Thanks in advance.
>
>
>Use a global var in your event handler which changes its state by the
event.
>Then return to standard VEE and in a continous loop check the state of this
>var. If the var is set ( event occurred) then you can call the vee-function
>and it will time slice.
>
Ok but this approach does not take benefit of the event oriented
programming.
-------------------------------------------------
| Juan Vera |
| E-mail: jvera@mdr.indra-espacio.es |
| Phone: 34-913 963 986 |
| Fax: 34-913 963 912 |
| Earth Stations Department |
| INDRA ESPACIO S.A. |
| Mar Egeo 4, Pol. Ind. 1 |
| San Fernando de Henares |
| 28850 MADRID |
| SPAIN |
-------------------------------------------------