Hi,
Code snippets seem to work fine for me except when invoked anywhere after a collapsed region. I get the following exception. Is this a known bug? I'm running v4.4.0.51. Thanks!
System.ArgumentOutOfRangeException was unhandled
Message="Index was out of range. Must be non-negative and less than the size of the collection.\rParameter name: startIndex"
Source="mscorlib"
ParamName="startIndex"
StackTrace:
at System.String.ToCharArray(Int32 startIndex, Int32 length)
at Syncfusion.Windows.Forms.Edit.Implementation.IO.StreamsWrapper.GetParsePoint(Int32 line, Int32 column, IParsePoint& leftNearest, IParsePoint& rightNearest, Boolean create, Boolean bAllowVirtualSpace)
at Syncfusion.Windows.Forms.Edit.Implementation.IO.StreamsWrapper.GetParsePoint(Int32 Line, Int32 Column, Boolean Create)
at Syncfusion.Windows.Forms.Edit.StreamEditControl.InsertCodeSnippet()
at Syncfusion.Windows.Forms.Edit.Utils.CodeSnippets.CodeSnippetsManager.Activate(CodeSnippet snippet, String selected)
at Syncfusion.Windows.Forms.Edit.StreamEditControl.m_codeSnippetsPopupController_ContextChoiceClose(IContextChoiceController controller, DialogResult dialogresult)
at Syncfusion.Windows.Forms.Edit.Utils.ContextChoiceController.RaiseCloseEvent()
at Syncfusion.Windows.Forms.Edit.Utils.ContextChoiceController.m_form_Closed(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnClosed(EventArgs e)
at Syncfusion.Windows.Forms.Edit.Forms.Popup.BasePopupForm.OnClosed(EventArgs e)
at System.Windows.Forms.Form.WmClose(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at Syncfusion.Windows.Forms.Edit.Forms.Popup.BasePopupForm.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)
at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)
at System.Windows.Forms.Form.Close()
at Syncfusion.Windows.Forms.Edit.Forms.Popup.ContextChoice.CloseOk()
at Syncfusion.Windows.Forms.Edit.Forms.Popup.ContextChoice.ProccessKeys(KeyEventArgs keys)
at Syncfusion.Windows.Forms.Edit.Utils.ContextChoiceController.ProccessKeys(KeyEventArgs keys)
at Syncfusion.Windows.Forms.Edit.Utils.CodeSnippets.CodeSnippetsPopupController.ProccessKeys(KeyEventArgs keys)
at Syncfusion.Windows.Forms.Edit.StreamEditControl.OnKeyDown(KeyEventArgs e)
at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
at System.Windows.Forms.Control.WmKeyChar(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at Syncfusion.Windows.Forms.Edit.ScrollControl.WndProc(Message& msg)
at Syncfusion.Windows.Forms.Edit.IntelliScrollableControl.WndProc(Message& m)
at Syncfusion.Windows.Forms.Edit.StreamEditControl.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at MetraConfig.Program.Main(String[] args) in C:\ICE\Source\MetraTech\ICE\Program.cs:line 124
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
AD
Administrator
Syncfusion Team
May 1, 2007 05:40 AM UTC
Hi Travis,
Could you please create a Direct Trac incident with the forum id as incident title, so that we can update you with more information regarding this issue.
Thank you for your patience.
Regards,
Ebenezer.P