Search found 747 matches
- Sat Nov 25, 2023 8:19 am
- Forum: C++ Development
- Topic: Stop wxRichTextCtrl Text Shifting
- Replies: 3
- Views: 1899
Re: Stop wxRichTextCtrl Text Shifting
Another followup on this. I identified the code that was causing it. It appears it was patched in version 3.1.4 in textmeasure.cpp in the function DoGetTextExtent() with this code: // the result computed by GetTextExtentPoint32() may be too small as it // accounts for under/overhang of the first/las...
- Sat Nov 25, 2023 8:13 am
- Forum: C++ Development
- Topic: Socket Timeout Exceeded
- Replies: 4
- Views: 1686
Re: Socket Timeout Exceeded
Just to followup, it appears the issue was the server, perhaps because it was Windows on KVM. I switched to a Windows on Hyper-V and the problem hasn't come back.
- Fri Oct 27, 2023 10:08 am
- Forum: C++ Development
- Topic: Socket Timeout Exceeded
- Replies: 4
- Views: 1686
Re: Socket Timeout Exceeded
doublemax, my old friend. How are you? Yeah, I'm starting to realize it can happen at various lines in the code, there must be some problem outside of the program causing these crazy delays. I'm going to tentatively blame my VPS while I keep testing.
- Fri Oct 27, 2023 9:37 am
- Forum: C++ Development
- Topic: Socket Timeout Exceeded
- Replies: 4
- Views: 1686
Re: Socket Timeout Exceeded
I've made some more headway when this happens. I recorded the time before and after a Sleep in my loop. Here is the code: time1 = stopwatch.Time(); Sleep(500); time2 = stopwatch.Time(); time1 was 5500 time2 was 73000 Very strange. I think I will switch to a count-based method where I count how many ...
- Wed Oct 25, 2023 7:20 pm
- Forum: C++ Development
- Topic: Socket Timeout Exceeded
- Replies: 4
- Views: 1686
Socket Timeout Exceeded
Hi. I have a thread that reads in a loop for socket input from a client. In order to detect disconnects, I have found the need to use a stopwatch and if no input is received after a certain period of time, terminate the client myself. This is because other socket operations like IsConnected() seem t...
- Wed Jun 02, 2021 5:00 am
- Forum: C++ Development
- Topic: Stop wxRichTextCtrl Text Shifting
- Replies: 3
- Views: 1899
Stop wxRichTextCtrl Text Shifting
Hi. I've noticed a weird issue that doesn't happen on all fonts. But, if you highlight text (select the text) in a wxRichTextCtrl, the text will shift depending where you are highlighting. For instance, in the sample, if I try to select the line that begins with "Naturally" as seen in the ...
- Tue Feb 03, 2015 6:50 am
- Forum: C++ Development
- Topic: wxListCtrl Column Artifacting
- Replies: 10
- Views: 3366
Re: wxListCtrl Column Artifacting
It appears to not occur unless you use a Windows classic theme. So, might just be a Windows issue.
- Wed Jan 28, 2015 1:43 am
- Forum: C++ Development
- Topic: wxListCtrl Column Artifacting
- Replies: 10
- Views: 3366
Re: wxListCtrl Column Artifacting
Here are two, one for my test, one for the original test. http://duke3donline.com/test1.avi http://duke3donline.com/test2.avi I found the area that causes it is at the end of wxConvertToMSWListCol where it sets image flags like lvCol.mask |= LVCF_IMAGE; and lvCol.fmt |= LVCFMT_BITMAP_ON_RIGHT | LVCF...
- Tue Jan 27, 2015 1:00 am
- Forum: C++ Development
- Topic: wxListCtrl Column Artifacting
- Replies: 10
- Views: 3366
Re: wxListCtrl Column Artifacting
Right, I forgot to add that. In my real app, I do have that. That doesn't change the artifact issue though, in XP or 7.
- Mon Jan 26, 2015 1:50 am
- Forum: C++ Development
- Topic: wxListCtrl Column Artifacting
- Replies: 10
- Views: 3366
Re: wxListCtrl Column Artifacting
Ok, I simplified the sample a bit. I found that the issue only happens if I keep the SetImage() line in. /* wxListCtrl Column Artifact Test Move a window repeatedly over the Column 1 heading and it will eventually artifact. Comment out the SetImage() line and it won't artifact. */ #include <wx/wx.h>...
- Mon Jan 26, 2015 1:06 am
- Forum: C++ Development
- Topic: wxListCtrl Column Artifacting
- Replies: 10
- Views: 3366
Re: wxListCtrl Column Artifacting
I tested on Windows 7 to to be sure. I will look into the later code, unless doublemax has already tested the listctrl sample with a newer version?
- Sun Jan 25, 2015 3:15 am
- Forum: C++ Development
- Topic: wxListCtrl Column Artifacting
- Replies: 10
- Views: 3366
wxListCtrl Column Artifacting
I'm using wxWidgets 2.8.10 and Windows XP. Sometimes my list control columns get their text / arrows messed up. If I switch tabs, resize, click on a column, call Refresh(), etc., it fixes this, but I'm curious as to why it happens to begin with and my other controls seem to be immune to it. I found ...
- Sat Apr 12, 2014 10:30 pm
- Forum: C++ Development
- Topic: Weird Issue with wxURL
- Replies: 3
- Views: 1963
Re: Weird Issue with wxURL
Seems to work. Thanks, dude!
- Sat Apr 12, 2014 9:46 pm
- Forum: C++ Development
- Topic: Weird Issue with wxURL
- Replies: 3
- Views: 1963
Re: Weird Issue with wxURL
Yeah the random thing was an idea I thought of too. I will see how it works for him. He told me that it was after using a proxy that he could download it properly. So, I think it must be his ISP. Anyway, it doesn't seem to like the &, so I'm trying ? instead...
- Sat Apr 12, 2014 6:26 am
- Forum: C++ Development
- Topic: Weird Issue with wxURL
- Replies: 3
- Views: 1963
Weird Issue with wxURL
I use wxURL to provide client updates. One client was getting a weird problem. He would constantly download an old version of the update that was no longer on my server (replaced by the new version). Somehow, his computer kept getting the old one which no longer existed. Is this some type of cache o...