Support Board
Date/Time: Mon, 25 Nov 2024 09:51:43 +0000
Post From: TCP/IP Server in custom study
[2021-06-24 07:02:18] |
User310645 - Posts: 49 |
@User438857 This could be a race condition. Your thread can call back into the data arrays at any point before, during or after any of the study's calculation cycle. This is why I mentioned the sync point (that @norvik seems to use too). In terms of what you could do right now (not knowing exactly what could be happening in your code) you could start by looking how are you getting the data by index. Are you using sc.Index each time? Has it changed during the execution? Can you make sure you are using the same index into each of the arrays? ie. I'm thinking sc.Index could have increased but one of the study's values for that index has not yet been calculated. @norvik_ thanks for sharing |