959 views
in GUI Development by
How to pass an array to native C code?

1 Answer

0 votes
by
It is not possible to pass an array to native code!

Chora is a save and stable programming language that does not allow the exchange of data pointers. Since the size of a Chora-array is unknown in the native C-code, this interaction would cover a high risk for programming errors. Therefore Embedded Wizard does not offer any data exchange by addresses or pointers like for an array. It is recommended to pass the value with an index to the native code. By this method the Chora compiler can check the array access to be in a valid range.

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...