Example #1
0
		public Target(DebugManager debugger, Form form, IConnection connection)
		{
			mDebugManager = debugger;
			mForm = form;
			mConnection = connection;

			mConnection.ConnectionClosed += new ConnectionClosedEventHandler(Connection_ConnectionClosed);
			mConnection.ConnectionAborted += new ConnectionAbortedEventHandler(Connection_ConnectionAborted);
			mConnection.DataReceived += new ConnectionDataReceivedEventHandler(Connection_DataReceived);

			mMessageQueue = new MessageQueue();
			mHostEvent = new AutoResetEvent(false);
			mTargetEvent = new AutoResetEvent(false);

			m_readBuffer = new ReceiveMessageBuffer(512 * 1024);
			m_writeBuffer = new SendMessageBuffer(4 * 1024);

			m_thread = new Thread(new ThreadStart(ThreadMain));
			m_thread.Name = "LuaDebuggerThread";
			m_thread.Start();
		}
Example #2
0
		public ThreadedHost(Form form)
		{
			mMessageQueue = new MessageQueue();
			mEvent = new AutoResetEvent(false);
			mForm = form;
		}