On Tuesday 06 April 2010 12:32:53 pm Ed Leafe wrote: > On Apr 6, 2010, at 11:28 AM, John wrote: > > I continue to have issues with dDropdowns and the number of records > > associated with Choices and Keys. > > > > I have traced the issue to > > dControlItemMixin -> _resetChioices(). > > The code hangs at > > self.AppendItems(self._choices) > > > > If the number of records in Choices is relatively small (not sure what > > that number is) it works. If the number is much larger (around 3000 - in > > my case 2938) the above line of code just hangs. On Linux it does not > > complete on Windows it is slow but does complete at least once but later > > calls appear to hang. > > > > I have tested this against wx.Choices (in my code) and it works with the > > 3000 records. Does anyone have information regarding what steps to take > > next to help debug this. > > What do you mean by "I tested it against wx.Choices"? The code you say > hangs is a wx method, not a Dabo method. Are you calling AppendItems() with > the 3000-item list on both controls? > > Also, are your wx versions the same on both platforms? > > > -- Ed Leafe
Yes I'm aware that it does not appear to make sense because the call is a direct wx call. Yes I'm using the same number of records for both test. The only really difference is of course that I'm not using a DataSource and DataField. Actually, there is more to the difference between the wx.Choice call and the Dabo call. 1. I'm not trying to filter the wx.Choice and I'm trying to filter the Dabo call. However, I doubt the filter has anything to do with the issue because the code never gets that far (that is it never reaches the filtering code). 2. To populate the wx.Choice I'm creating the data and not attempting to use a table from the database. Since I have an immediate need I am setting the where clause for the data to limit the number of records retrieved and it's working. I was just using a filter but now I'm actually retrieving just the required data. Windows and LInux match for wxPython, Python, Dabo versions. What I need is good test code - but the simple tests appear to work. I have to believe that the interaction with other controls and "whatever" are the cause of the trouble. But then I don't understand why the number records would have anything to with the problem. If I just reduce the number of available records (i.e. delete all of the counties not CA) there is no problem with my old code. Like I said all works when the number is limited. Johnf _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
