I'm a wine beginner.
I using wine(wine-mono) to launching a simple winform apps(.net framework 4.5) under ubuntu 22.04 os.
This apps need to access the serialport.
The memory increasing quickly during serialport commucation(Data sending and receiving).
If someone can give a solution or suggestion, I will really grateful to you, the following information for reference.
Found the following message during serialport commucation(please reference attached picture 02)
0124:fixme:comm:wait_on EV_RXFLAG not handled
Enviroment:
OS:Ubuntu 22.04 lts(VirtualBox 6).
wine version:wine 9.0(please reference attached picture 03).
wine-mono version:wine-mono-9.1.0-x86.
serialport permission:sudo usermod -aG dialout pi
serialport connection:PIN 2 has connected to PIN3.
serialport hardware:USB TO RS232
mono version:mono 6.12.0.200 installed.(installed after found wine memory leak)
For the screen shoot, please see the attachment:
The following is sample code:
//Data sending
serialPort1.Write(cmdData, 0, len);
//Data receving
int byteLen = serialPort1.BytesToRead;
if (byteLen<= 0)
{
Thread.Sleep(1);
continue;
}
Thread.Sleep(10);
while (serialPort1.BytesToRead != 0)
{
byte[] byteData = new byte[serialPort1.BytesToRead];
byteCnt = serialPort1.Read(byteData, 0, byteData.Length);
if (byteData.Length <= 0)
{
Thread.Sleep(1);
continue;
}
//Do something
}
Wine memory leak
Re: Wine memory leak
Your best bet is to open a bug report.
https://bugs.winehq.org/
https://bugs.winehq.org/