The VB-Code is like the following (I cut out all trivila declarations and error checks).
The Method in Question ist
ChGrp.GetScaledMuxData ChInfo, HNrm.Index, 1, HNrm.Length, 1, Data
in the 4th line from the end:
-------- VB-Code -------
Dim MyOdyssey As RecorderApplication
Dim MyRec As Recording
Dim ChGrp As ChannelGroup
Dim HNrm As HNorm
Dim ChInfo() As ChannelInfo
Dim Data() As Double
Set MyOdyssey = New RecorderApplication
MyOdyssey.OpenRecording MyOdyssey.Recordings.Item(RecordingNum), MyRec
For Each ChGrp In MyRec.ChannelGroups
For Each HNrm In ChGrp.HNorms
ReDim ChInfo(1 To ChGrp.ChannelInfos.Count)
ChGrp.GetScaledMuxData ChInfo, HNrm.
Index, 1, HNrm.Length, 1, Data
Next HNrm 'Die verschiedenen Abschnitte auf der Zeitachse
Next ChGrp
-------- /VB-Code -----
I also attach a jpeg of the block diagram of my VI, the crucial/lethal invoke-node is encircled. The method is slightly different, but the whole group of methods which is supposed to fetch data is crashing no matter which I use:
.GetMuxData
.GetScaledMuxData
.GetResampledMuxData
.GetDisplayData
I think the reason is somehow connected to the fact, that the ActixeX Object is the one allocating the memory for the data.