Login Page - Create Account

Support Board


Date/Time: Mon, 20 May 2024 00:55:03 +0000



Post From: Winsock Initialisation & Shutdown

[2018-01-27 11:33:36]
Pinger - Posts: 33
Hi

I want to send data out of SierraChart via a socket to do some external charting. I've put the Winsock initialisation code (WSAStartup(), socket(), etc) in my study sc.SetDefaults block, and this appears to be working. My query is, where to put the shutdown code (socketclose() and WSACleanup()) to ensure everything is shutdown nicely when my study is removed from a chart. Is there a function that is called when a study is removed from a chart to put such code?

Kind regards