Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Value does not fall within the expected range in Popup
9 replies. Latest Post by neal.gabriel on January 14, 2009.
(0)
neal.gab...
Participant
789 points
161 Posts
01-06-2009 10:40 AM |
Hi All,
I am getting an Unhandled Exception when I try to move / close a popup [I am not sure whether the exception occurs in popup, since it is an application unhandled exception].
The scenario is as follows,
I have a popup which has a Textbox in it
<
The Code behind for Mouse Leave is as follows
{
dtN.Stop();
}
dtN.Interval =
dtN.Start();
---------------------------------------------------------------------------------
Dispatcher.BeginInvoke(
The popup is opened when a Listbox Item [in DataTemplate] is clicked (<Border Width="180" Cursor="hand" MouseLeftButtonDown="Border_MouseLeftButtonUp">) ;
The Poblem occurs when i move the mouse after activating the popup!
The Exception is as follows
e.ExceptionObject{System.ArgumentException: Value does not fall within the expected range. at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.Control_Raise(Control control, INativeCoreTypeWrapper arguments, Byte nDelegate) at System.Windows.Controls.Control.NativeMouseMove(MouseEventArgs e) at System.Windows.Controls.TextBox.OnMouseMove(MouseEventArgs e) at System.Windows.Controls.Control.OnMouseMove(Control ctrl, EventArgs e) at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)} [System.ArgumentException]: {System.ArgumentException: Value does not fall within the expected range. at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.Control_Raise(Control control, INativeCoreTypeWrapper arguments, Byte nDelegate) at System.Windows.Controls.Control.NativeMouseMove(MouseEventArgs e) at System.Windows.Controls.TextBox.OnMouseMove(MouseEventArgs e) at System.Windows.Controls.Control.OnMouseMove(Control ctrl, EventArgs e) at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)} Data: {System.Collections.ListDictionaryInternal} InnerException: null Message: "Value does not fall within the expected range." StackTrace: " at MS.Internal.XcpImports.CheckHResult(UInt32 hr)\r\n at MS.Internal.XcpImports.Control_Raise(Control control, INativeCoreTypeWrapper arguments, Byte nDelegate)\r\n at System.Windows.Controls.Control.NativeMouseMove(MouseEventArgs e)\r\n at System.Windows.Controls.TextBox.OnMouseMove(MouseEventArgs e)\r\n at System.Windows.Controls.Control.OnMouseMove(Control ctrl, EventArgs e)\r\n at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)"
What could be the possible reason for this!
Please help me solving this.
Thanks
Neal Gabriel
bryant
Star
9937 points
1,629 Posts
01-06-2009 11:10 AM |
Do you have a MouseMove event attached to anything in your page? It seems like this is the source of the issue but I don't see that in any of the code you posted.
01-08-2009 4:51 AM |
Hi, Sorry for the late reply!The only MouseMove event is with the VSM, which is for the Listbox, But Even after removing that, it shows the error!
01-12-2009 1:12 AM |
I am still not able to find a solution to this, I think I missing something with popComments.IsOpen, Just because, When I Commented this in the Code Behind, It Is not showing any error, I tried placing an if condition bfore this, But nothin happened - Still Shows the Same error..
I have no Idea in finding a solution to this, If it seems there is no solution, please let me know an alternate solution, that colud work without a popup.
Thanks....
Amanda W...
All-Star
17241 points
1,466 Posts
01-12-2009 3:47 AM |
Hi Neal,
You can try to check this link to find the cause of the problem.
Or you can try to post a simpler sample application here, so we can use them to reproduce your problem on our local, which will be able helpful further.
01-12-2009 4:50 AM |
Hi Amanda,
Thank you very much for the reply.
The Link which you have mentioned is not working, Any way I m attaching a sample program, which has a similar problem
Here is the link
http://cid-fd21c739fb2150e8.skydrive.live.com/self.aspx/Public/TestPopup.rar
If you want me to upload it somewhere else, let me know..
01-12-2009 9:52 PM |
Thanks for your sample project.
But when we run it on our labs, it works fine without any exception.
Could you please tell us how to reproduce your problem with your sample project?
01-12-2009 11:54 PM |
Sorry about I missed the scenario where I used to get the Error.
Click the Subject [Last Column] in the ListBox, You will see the popup which has a TextBox!
Try selecting the Text in the Textbox,
Hold the Mouse LeftButton and when you move outside the Popup [To the ListBox], it errors...
[The Popup is in Open State thou I have written a popup.IsOpen = false in the mousemove of the TextBox in the popup] -
Andre Mi...
Member
240 points
35 Posts
01-13-2009 11:47 AM |
The product team has been made aware of this issue.
Please let me know if this doesn;t work for you and thanks for reporting the issue!
-Andre-
01-14-2009 1:07 AM |
Hi Andre,
It worked..
Thanks a lot..