Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 210184

Summary: [CDateTime] Date Picker uses too many handles
Product: z_Archived Reporter: Peter Centgraf <peter>
Component: NebulaAssignee: Jeremy Dowdall <jeremyd>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jeremyd, Konstantin.Scheglov
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Peter Centgraf CLA 2007-11-17 17:47:54 EST
The current implementation of the CDateTime date picker uses a grid of individual buttons and labels to render the calendar.  This approach consumes many SWT widget handles, which can cause serious scalability problems when running on Win32.

Windows XP has a limit of 10k window handles per application.  Each date picker consumes on the order of a hundred of these handles, which puts the upper limit on the number of CDateTime instances at near 100.  This limit can be easily reached in practice with Form-based editors in RCP.

A lightweight approach to drawing the calendar could provide an equivalent user experience with an order of magnitude reduction in handles and a corresponding increase in the total number of instances supported.

P.S. This issue was first raised by a post on the newsgroup, but I have since lost track of who reported it.
Comment 1 Jeremy Dowdall CLA 2009-01-24 18:56:28 EST
CDateTime is now built using completely virtual subcomponents.