www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - ColumnView tooltips?

reply Bill Baxter <wbaxter gmail.com> writes:
Howdy,
I just tried adding tooltips to a ColumnView following the model of
this snippet:
    http://tinyurl.com/bsjbdz

But I get a crash in HashMap when afterHideTooltip tries to set the
tool tip to "null".

Since this isn't one of the snippets that has been ported, I suspect
chances are about even that this is a problem in DWT itself.
If someone has time on their hands it would be cool to see a port of
that snippet.

--bb


Here's the stack trace:
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc0000005) at
tango.util.container.HashMap.__T7HashMapTC6ObjectTC6ObjectZ.HashMap.add.Object.Object
f:/usr/pkg/d/dsss/bin\..\include\d\tango\util\container\HashMap.di:223
(0x0041b48e) thread(7620)
->us

f:/usr/pkg/d/dsss/bin\..\include\d\tango\util\container\HashMap.di:223

f:/usr/pkg/d/dsss/bin\..\include\d\tango\util\container\HashMap.di:522

f:\usr\pkg\d\dsss\bin\..\include\d\dwtx\dwtxhelper\Collection.d:318

f:\usr\pkg\d\dsss\bin\..\include\d\dwtx\jface\window\ToolTip.d:157

dwtx.jface.viewers.ColumnViewerToolTipSupport.ColumnViewerToolTipSupport.afterHideToolTip
() at f:\usr\pkg\d\dsss\bin\..\include\d\dwtx\jface\viewers\ColumnViewerToolTipSupport.d:214

f:\usr\pkg\d\dsss\bin\..\include\d\dwtx\jface\window\ToolTip.d:462

dwtx.jface.window.ToolTip.ToolTip.ToolTipOwnerControlListener.handleEvent
() at f:\usr\pkg\d\dsss\bin\..\include\d\dwtx\jface\window\ToolTip.d:672

dwt.widgets.EventTable.EventTable.sendEvent(class
dwt.widgets.Event.Event, void*) () at dwtgui.d:3250 from EventTable

dwt.widgets.Event.Event, void*) () at dwtgui.d:3250 from Widget

dwt.widgets.Display.Display.runDeferredEvents(void*) () at
dwtgui.d:3250 from Display

dwtgui.d:3250 from Display
...
-
Jan 30 2009
parent reply Frank Benoit <keinfarbton googlemail.com> writes:
Thanks for reporting.

I added this snippet to the dwt-samples repo.

The problem is, tango container crashes on storing a null value for
HashMap!(Object). I added a tango ticket (1468) and a workaround in
dwt-addons.
Feb 01 2009
parent Bill Baxter <wbaxter gmail.com> writes:
Excellent!  Thanks as always for your efforts on dwt!

--bb

On Mon, Feb 2, 2009 at 3:46 AM, Frank Benoit <keinfarbton googlemail.com> wrote:
 Thanks for reporting.

 I added this snippet to the dwt-samples repo.

 The problem is, tango container crashes on storing a null value for
 HashMap!(Object). I added a tango ticket (1468) and a workaround in
 dwt-addons.
Feb 01 2009