# Is running data streams of a multispectral camera in threads thread safe?

**URL:** <https://forum.commonvisionblox.com/t/is-running-data-streams-of-a-multispectral-camera-in-threads-thread-safe/1741>\
**Category:** Programming Questions\
**Tags:** cpp, acquisition, gigevision\
**Created:** [July 4, 2022, 3:58pm UTC](https://forum.commonvisionblox.com/t/is-running-data-streams-of-a-multispectral-camera-in-threads-thread-safe/1741 "2022-07-04T15:58:21Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![keerthitheja](https://avatars.discourse-cdn.com/v4/letter/k/839c29/32.png) [@keerthitheja](https://forum.commonvisionblox.com/u/keerthitheja)\
**Post date:** [July 11, 2022, 11:30am UTC](https://forum.commonvisionblox.com/t/is-running-data-streams-of-a-multispectral-camera-in-threads-thread-safe/1741/5 "2022-07-11T11:30:42Z")

</div>

Hi @Andreas  
So, I downloaded the latest release of 14.00.000 of CVB from the below link and installed it on my PC

[https://forum.commonvisionblox.com/t/common-vision-blox-for-windows/1574/34?u=keerthitheja](https://forum.commonvisionblox.com/t/common-vision-blox-for-windows/1574/34)

With this package, my code fails to compile. It throws an error while accessing the stream pointer using the line  
`device->Stream<Cvb::ImageStream>()`. The error it says is Stream expects an expression but got a type. But, if I look in the CVB++ documentation, the stream is defined to take types

[https://help.commonvisionblox.com/NextGen/14.0/cvbpp/d8/d60/class\_cvb\_1\_1\_device.html](https://help.commonvisionblox.com/NextGen/14.0/cvbpp/d8/d60/class_cvb_1_1_device.html)

Is the function Stream updated in the latest release ? or Am i missing something ? Please let me know how to go about this

Note: Now, I reverted back my CVB version to 13.04.006 and the code compiles fine.

---

_[View the full topic](https://forum.commonvisionblox.com/t/is-running-data-streams-of-a-multispectral-camera-in-threads-thread-safe/1741)._
