Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Private xInstance As UDPSocket '<--- from jNetwork library
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
Try
xInstance.Initialize("",12340,0) '<--- change the unique port as you want
Log("Form ready")
MainForm.Show
Catch
fx.Msgbox(MainForm, "Application already running !","Attention")
ExitApplication
End Try
End Sub