http://bugs.winehq.org/show_bug.cgi?id=16491
Summary: monthcal: MONTHCAL_GetMonthRange not implemented Product: Wine Version: 1.1.10 Platform: All URL: http://www.pindersoft.com/dotnettest.htm OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: comctl32 AssignedTo: wine-bugs@winehq.org ReportedBy: focht@gmx.net
Hello,
just a small showcase bug. Someone emailed me a link to a .NET test app to check its "usefulness".
That app isn't sophisticated nor particularly useful at all (despite its name). Just a small GUI app with month calendar and hyperlink control.
Its only purpose seems to be to show Wine month calendar control insufficiency ;-)
Steps to reproduce:
1. clean WINEPREFIX 2. sh winetricks dotnet20 3. download from: ftp://ftp.pindersoft.com/DotNetTestDNF2.zip 4. run: wine ./DotNetTestDNF2.exe
When you advance the month in calendar control (arrows), it bails.
WINEDEBUG=+tid,+seh,+monthcal
--- snip wine trace --- ... 0036:trace:monthcal:MONTHCAL_LButtonDown e00a3 0036:trace:monthcal:MONTHCAL_GoToNextMonth MONTHCAL_GoToNextMonth 0036:trace:monthcal:MONTHCAL_WindowProc hwnd=0x8009c msg=1007 wparam=1 lparam=d913cc 0036:trace:monthcal:MONTHCAL_GetMonthRange 0036:trace:seh:raise_exception code=e0434f4d flags=1 addr=0x7b8434b0 0036:trace:seh:raise_exception info[0]=80131502 0036:trace:seh:raise_exception eax=7b82c6a5 ebx=7b8b3840 ecx=00000000 edx=0032e3f0 esi=0032e3f0 edi=e0434f4d 0036:trace:seh:raise_exception ebp=0032e3b8 esp=0032e354 cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00000246 --- snip wine trace ---
--- snip CLR backtrace -- System.ArgumentOutOfRangeException: Year, Month, and Day parameters describe an un-representable DateTime. at System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day) at System.Windows.Forms.DateTimePicker.SysTimeToDateTime(SYSTEMTIME s) at System.Windows.Forms.MonthCalendar.GetMonthRange(Int32 flag) at System.Windows.Forms.MonthCalendar.BoldDates(DateBoldEventArgs e) at System.Windows.Forms.MonthCalendar.WmDateBold(Message& m) at System.Windows.Forms.MonthCalendar.WmReflectCommand(Message& m) at System.Windows.Forms.MonthCalendar.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) --- snip CLR backtrace ---
Aric Stewart fleshed out MONTHCAL_GetMonthRange with a patch: http://www.winehq.org/pipermail/wine-patches/2008-August/060414.html
... but it didn't make it in. Maybe this bug report can give it the proper push ;-)
Regards