Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5362

'Designated Inits' in CVI 2015 SP1

$
0
0

This document says that CVI 2015 support 'Designated Inits' with warning.

Using CVI 2015 SP1 this instruction

namespaceArray->value.dataSource = (UA_DataSource) {.handle = server, .read = readNamespaces,
                                                        .write = NULL};

doesn't give any warning and compiles fine, but while executing it produces a 'General Protection' fault.

I suspect this is related to the usage of 'Designated Inits' to set the members of UA_DataSource struct.

 

Could someone investigate this behavior?

You can see the error trying to run this example from open62541 library (OPC UA).


Viewing all articles
Browse latest Browse all 5362

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>