Benjamin Jessup wrote: > I am developing an application that can require as many as 200,000 > objects to be added to the floatcanvas.
wow! I'm curious what that application of that is. And how the performance is. > This was giving me problems > since the GDI Object limit for XP and Vista is 10,000. Although, I do > not require that all the objects be of a different pen and brush. By > commenting out the SetPen and SetBrush commands from floatcanvas I can > take over that process and just pass pointers to a given set of pens and > brushes, thus keeping the GDI Object count very low. Does anyone see any > problems with doing this? I'm confused -- FloatCanvas caches pens and brushes, but if you have a bunch of objects that have the same one, it only used one instance. Also, wx itself is supposed to keep a list of existing brushes so that it doesn't duplicate them (which makes the FC code probably redundant). In addition, when SetPEn and SetBRush are called, they are passing in an existing reference. In short -- I don't get how this could be happening. Which SetPen and SetBrush commands have you had to comment out? -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [email protected] _______________________________________________ FloatCanvas mailing list [email protected] http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
