public CapiApplication(int messageBufferLenght, int maxLogicalConnections, int maxBDataBlocks, int maxBDataLen) { _BDataBlocks = maxBDataBlocks; _BDataLenght = maxBDataLen; _appID = CapiPInvoke.Register(messageBufferLenght, maxLogicalConnections, maxBDataBlocks, maxBDataLen); _serializer = new CapiSerializer(this); _messageQueueThread = new Thread(WaitForConfirmation); _messageQueueThread.IsBackground = true; _messageQueueThread.Name = string.Format("CAPI Application: {0} message queue", _appID); _messageQueueThread.Start(); }