Login Page - Create Account

Support Board


Date/Time: Sat, 30 Nov 2024 05:39:19 +0000



Post From: ACSIL: Example build script using udp commands to unload / load dlls

[2018-11-27 04:48:55]
User654912 - Posts: 26
You will need to adapt this to your system.

You will need to have installed the compiler from Sierra Chart.

Save this file as build.ps1 and run it from powershell with: .\build.ps1

-----

function Send-UdpDatagram
{
Param ([string] $EndPoint,
[int] $Port,
[string] $Message)

$IP = [System.Net.Dns]::GetHostAddresses($EndPoint)
$Address = [System.Net.IPAddress]::Parse($IP)
$EndPoints = New-Object System.Net.IPEndPoint($Address, $Port)
$Socket = New-Object System.Net.Sockets.UDPClient
$EncodedText = [Text.Encoding]::ASCII.GetBytes($Message)
$SendMessage = $Socket.Send($EncodedText, $EncodedText.Length, $EndPoints)
$Socket.Close()
}

Send-UdpDatagram -EndPoint "127.0.0.1" -Port 22903 -Message "RELEASE_DLL--C:\SierraChart\Data\mydll.dll"

cmd.exe /c "C:\SierraChart\Data\VisualCCompile.Bat"

Send-UdpDatagram -EndPoint "127.0.0.1" -Port 22903 -Message "ALLOW_LOAD_DLL--C:\SierraChart\Data\mydll.dll"

Date Time Of Last Edit: 2018-11-27 04:50:11