ToolTip problem?

Jan 15, 2013 at 4:59 AM

Hi! Once I set nodexl.ShowVertexToolTips as true, NodeXl will show vertex's tooltip when the mouse hovers on it. But sometimes my program will pop up a window ---Assert failed. Here are some information:

At NodeXlControl.CreateDefaultVertexToolTip(String sToolTip)

at NodeXlControl.VertexToolTipTracker_ShowToolTip(Object oSource, ToolTipTrackerEventArgs oToolTipTrackerEventArgs)

at ToolTipTrackBase.FireShowToolTipEvent(Object oObject)

at ToolTipTrackBase.TimerTick(Object oSource, EventArgs oEventArgs)

at DispatcherTimer.FireTick(Object unused)

at ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

at ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

at DispatcherOperation.InvokeImpl()

at DispatcherOperation.InvokeInSecurityContext(Object state)

at ExecutionContext.runTryCode(Object userData)

at RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

at ExcutionContext.RunInternal(ExcutionContext excutionContext, ContextCallback callback, Object state)

at ExcutionContext.Run(ExcutionContext excutionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)

at ExcutionContext.Run(ExcutionContext excutionContext, ContextCallback callback, Object state)

at DispatcherOperation.Invoke()

at Dispatcher.ProcessQueue()

at Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)


But this error window only occasionally come out, sometimes it does not appear in a whole day. Is this a bug of NodeXl? How should I solve this problem?

Jan 15, 2013 at 11:30 PM

I think you're setting the ReservedMetadataKeys.PerVertexToolTip value to null for at least one vertex.  It's supposed to be a String.  It can be an empty string, but it can't be null.

-- Tony

Jan 16, 2013 at 4:29 AM

Yeah! You're right. I set some vertices' ReservedMetadataKeys.PerVertexToolTip value to null. Dear tcap479, thanks a lot! :P :P :P