in GUI Development by

I've seen some strange behaviour in a windows build of an application: (8.30  version of EW)

I have a Gui component that has a property 'DataSource' that takes a class type.

Inside the 'set method for the property':

// usual boilerplate...

pure DataSource = value;

attachobserver mySlot, ^DataSource.MyBoolProperty;

Inside the 'DataSource' class's 'onSetMyBoolProperty': (This is just a plain Chora class)

notifyobservers ^MyBoolProperty;

This is called after a timeout. via MyBoolProperty=true.

In the IDE emulation environment this works fine: after the timeout, the GuidClass.mySlot is called when notifyobservers is called.

When I build for windows, the slot is not called.

By adding a button to the GUI, I called 'notifyobservers' from within the GUI component (notifyobservers ^DataSource.MyBoolProperty'.

- this works in windows and simulation.

It seems that the 'notifyobservers' only works if called within the context of the GUI component.

Has anyone else seen this? (I've also checked the 'ref' passed into the EW C call and it's the same in both cases.)

1 Answer

0 votes

this sounds strange...

Is it possible to post this example here (you can use the 'Link' button (it has a chain symbol) and then upload the file)?

This would help to reproduce / analyze the story.

Thank you!

Thankyou Manfred,

I got to the bottom of this - the windows project was configured wrong so the file with the VMT being included was incorrect.


Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint