When I add 10.000-20.000 or more items to a CListCtrl object, when I close the dialog box, wich contains that CListCtrl, I have to wait 30sec or more than a minute in some cases, while he finishes, wathever it does. Why is that ? Could it be solved somhow ?
Or is there any other similar...
My code looks like this. Without "The modification" part, at least worked. I don't know why the dcb can't be changed. But anyway the obtained time is not better. (A single SetCommState takes about 200ms)
port.Close()
port.Open(1, 9600, CSerialPort::MarkParity, 8...
The problem is, that the sent data is espected to be sent in different parity modes(the first byte in mark, the rest in space parity). I'm comunicating with some kind of equipment (fuel pomp), so I can't make changes on that side.
I was trying to fool him somhow, by sending with no parity, and...
I have to switch (when using the serial port) between parity modes(mark->space parity) wery often in my application. The problem is, that I have to close and reopen the port, or change the Dcb(it is not working by changing it, don't know why) to do that, and this takes a lot of time (>200ms)...
I have to switch between parity modes(mark->space parity) wery often in my application. The problem is, that I have to close and reopen the port, or change the Dcb(it is not working by changing it, don't know why) to do that, and this takes a lot of time (>200ms). This slows down my comunication...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.