Message: Значение счетчика не может быть меньше нуля.

TheWitch Открыто

Незнаю из-за чего это произошло

Message: Значение счетчика не может быть меньше нуля.
Имя параметра: count
StackTrace: в System.String.CopyTo(Int32 sourceIndex, Char[] destination, Int32 destinationIndex, Int32 count)
в System.IO.StreamWriter.Write(String value)
в TurboConf.Core.LogTraceListener.Write(String message)
в TurboConf.Core.LogTraceListener.WriteLine(String message, String category)
в TurboConf.Core.TurboAPI.TurboApi.TraceWarning(Object message, Boolean showNotification, Int32 timeout)
в TurboConf.Service.MainForm.ShowPopupNotification(String title, String text, Int32 timeout, MessageStatusEnum status, Action action, Int32 height, Script script, String actionName, Boolean animate)
в TurboConf.HostApplication.HostApplicationForm.<>c__DisplayClass5_1.<ExecuteScript>b__1()
в System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
в System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
в System.Windows.Forms.Control.InvokeMarshaledCallbacks()
ProductVersion: 6.4.9343.31499
UAC: True
CompatibilityMode: True
SystemInfo: Microsoft Windows NT 6.2.9200.0 x64
CPU: 28
TurboConf Settings: {
"CompatibilityMode": false,
"DontShowUacForm": false,
"UseWindowsTheme": false,
"UseWaitHack": true,
"DelayMultipler": 10,
"AllowEnterprise": false,
"InsertCarriageReturns": true,
"ClearMessageWindowBeforeCheck": true,
"FormatAllText": true,
"Windows8Mode": true,
"ParametersWindowPosX": -1,
"ParametersWindowPosY": -1,
"PinMessageWindow": false,
"AgreementShown": true,
"InsertSpaces": true,
"CheckForUpdates": true,
"InspectParameters": true,
"InspectVars": true,
"InspectFunctions": true,
"InspectAssignments": true,
"InspectReturns": true,
"GoToDefinition": true,
"EditDataType": true,
"ReplaceSystemMenu": false,
"AddAlignSpaces": true,
"RemoveExtraLineBreaks": true,
"InsertIBNameBefore": true,
"T9AutoShowAfterPeriod": false,
"T9AllowSwitch": true,
"SetForegroundWindowDelay": 50,
"EmbeddedInspector": false,
"AutoCompleteOnEnter": false,
"TurboMenuOnCtrlRMB": false,
"T9Enabled": true,
"JumpToAutoSettings": true,
"T9StyleVS": false,
"BetaEnabled": false,
"ShowStartForm": false,
"UpgradeRequired": false,
"ShowUpdateForm": true,
"CloseSearchWindowAfterJump": true,
"AlignCommas": true,
"T9AlwaysShowOnCtrlSpace": false,
"T9PasteTextOnEscape": true,
"V8DataVersion": "8.3.5.1383",
"CheckForDataUpdates": true,
"ShiftT9Window": false,
"ShowT9OnCtrlShiftSpace": false,
"RemapDefaultParametersInfoOnCtrlP": true,
"MultiClipboardEnabled": true,
"OpenHistory": "",
"OpenFilesHook": false,
"OpenFileConfirmation": false,
"LastOpenPath": "",
"T9IncludeStrings": true,
"NetlenkaFormatResult": false,
"NetlenkaEncryptStrings": true,
"NetlenkaByteCode": false,
"NetlenkaControlFlow": false,
"AutoTitleEnabled": true,
"CheckForBetaVersions": false,
"SaveWindowsHistory": true,
"MaxWindowsHistorySize": 100,
"MaxJumpToHistorySize": 100,
"OneTrackerEnabled": false,
"OneTrackerIdleTime": 10,
"OneTrackerSaveInterval": 30,
"OneTrackerAddIBSuffix": true,
"OneTrackerSaveToFolder": 1,
"DebugMode": false,
"ToDoEnabled": true,
"AutoContextMenu": true,
"JumpToIncludeMatches": true,
"PinHintWindow": false,
"HintWindowPosX": 400,
"HintWindowPosY": 533,
"ShowStartWizard": false,
"TurboIconEnabled": false,
"JumpToAllObjects": false,
"TurboMenuEnabled": true,
"AutoContextMenuDelay": 25,
"JumpToPasteSelectedText": false,
"ShowVersionChangesPage": true,
"AutoContextMenuEnterpiseMode": false,
"T9AlwaysAssists": false,
"T9AssistEnabled": false,
"T9AllowFields": true,
"AutoFilterSyntaxHelper": false,
"CheckForPreviewVersions": true,
"ScriptsSettings": "",
"WebClientWidth": 0,
"WebClientHeight": 0,
"WebClientLeft": -1,
"WebClientTop": -1,
"T9AssistSmartFieldsEnabled": true,
"T9AssistGetMenuItems": false,
"T9HybridModeEnabled": true,
"AutoSaveEnabled": false,
"LogLevel": "Debug",
"AllEventSubsFormWidth": 936,
"AllEventSubsFormHeight": 761,
"PinAllEventSubsForm": true,
"LiveTemplatesEnabled": true,
"QuotesSurroundEnabled": true,
"BracketsSurroundEnabled": true,
"LiveSpellCheck": true,
"InspectSpellCheck": true,
"SettingsFormWidth": 800,
"SettingsFormHeight": 742,
"AllowInsInEditMode": true,
"WndPanelFormWidth": 713,
"WndPanelFormHeight": 592,
"PinWndPanelForm": false,
"AutoAddSemicolon": true,
"AutoCloseBrackets": true,
"AutoQuestionExpression": true,
"TurboSearchEnabled": true,
"TrimLinesOnFormat": true,
"FastCodeSearchBsp": true,
"FastCodeMaxResultsCount": 50,
"SwitchLayoutMode_LShift": "",
"SwitchLayoutMode_RShift": "",
"SwitchLayoutMode": "Отключено",
"TurboSearchFormWidth": 1616,
"TurboSearchFormHeight": 876,
"PinTurboSearchForm": true,
"TSTextBoost": 0.5,
"TSTitleBoost": 2.0,
"TSKeywordsBoost": 2.0,
"NotDPIAware": false,
"ShowMouseLangIndicator": false,
"MouseLangIndicatorTimeout": 1500,
"TurboBookmarks_OpenFolders": true,
"ToDoExtFiles": true,
"AutoTemplates": false,
"TurboBookmarks_FoldersHistory": false,
"ShowKeyboardLangIndicator": true,
"EdtEnabled": true,
"IBFormatString": "",
"TurboTask_MyTasks": false,
"TurboTask_OpenTasks": false,
"TurboTask_PinForm": true,
"OneTrackerGlobalMode": true,
"MinVersion1C": "8.3.8.1652",
"TurboTask_ShowTaskTime": true,
"ShowT9OnAltSpace": true,
"PinInspectorForm": true,
"SafeAreaSize": 40,
"ForceOverlayDisable": false,
"LegacyMode": false,
"DontShowLegacyForm": false,
"DontShowDpiForm": false,
"T9TabAssist": true,
"DataPath": "C:\Users\shushlebin_d\Documents\TurboConf",
"FormatBlock_UseTabs": false,
"FormatBlock_SpacesInTabs": 4,
"ScriptHandlersDisabled": false,
"ContextMenuPasteEnabled": false,
"DebuggerEnabled": false,
"DebuggerPort": 5318,
"SaveLogToFile": true,
"AutoTitleEnterpriseEnabled": true,
"T9ScriptHandlersEnabled": true,
"CurrentAppTheme": "DefaultTheme",
"AutoMaximizeEnabled": true,
"T9AssistAdjustContextMenuSize": true,
"T9AssistContextMenuMaxWidth": 560,
"T9AssistContextMenuMaxItemsCount": 10,
"CheckForDevelopersVersions": false,
"UIAutomationConnectionTimeout": 4000,
"UIAutomationTransactionTimeout": 20000,
"NonStandardLayoutsSupport": false,
"ShowМeasurements": false,
"AddExtensionsToMetadataCache": true,
"ApiCompatibilityMode": false,
"UpdateAutoRestart": false,
"UseDragDropPaste": true,
"CloseDDEServerWindow": false,
"UseDirectX": true,
"JumpToINameOnly": false,
"AutoTurboSearchModuleButtonEnabled": true,
"ShowKeyboardEvents": false,
"DpiChangedWarningEnabled": true,
"WndManagerSortEnabled": true,
"PrintElementsHierarchy": false,
"T9AllowAutoInvokeInsideCommonStrings": false,
"SettingsKey": "",
"IsSynchronized": true
}
Details: System.ArgumentOutOfRangeException: Значение счетчика не может быть меньше нуля.
Имя параметра: count
в System.String.CopyTo(Int32 sourceIndex, Char[] destination, Int32 destinationIndex, Int32 count)
в System.IO.StreamWriter.Write(String value)
в TurboConf.Core.LogTraceListener.Write(String message)
в TurboConf.Core.LogTraceListener.WriteLine(String message, String category)
в TurboConf.Core.TurboAPI.TurboApi.TraceWarning(Object message, Boolean showNotification, Int32 timeout)
в TurboConf.Service.MainForm.ShowPopupNotification(String title, String text, Int32 timeout, MessageStatusEnum status, Action action, Int32 height, Script script, String actionName, Boolean animate)
в TurboConf.HostApplication.HostApplicationForm.<>c__DisplayClass5_1.<ExecuteScript>b__1()
в System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
в System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
в System.Windows.Forms.Control.InvokeMarshaledCallbacks()

[20253108 11-31-Ссылка скрыта

Комментарии

bolsun
#1, ред. 08 августа 2025 13:02

@tormozit
пока не знаю относится ли к проблеме, но на всякий случай сообщаю, в логе куча ошибок в обработчиках ИР Адаптера

[08.08.25 11:13:18:359] Warning: Не удалось выполнить скрипт ИРАдаптер->ПриВыбореЗначенияТ9: ScriptEngine.Machine.ExternalSystemException: {Модуль C:\Users\...\Documents\TurboConf\apps\8552\RDT.os / Ошибка в строке: 7908 / Внешнее исключение (System.Reflection.TargetInvocationException): Результирующий код COM не реализует IDispatch.} НовыйШаблон = ПолеТекстаПрограммы.Адаптер_ПриВыбореСтрокиАвтодополнения(Параметры.Значение, Параметры.ЭтоМетод, Параметры.КлючСловаря, ШаблонДляВставки, ФорматироватьТекст, ЛиГенераторСПоглощениемНачалаСтроки); ---> System.Reflection.TargetInvocationException: Результирующий код COM не реализует IDispatch. в ScriptEngine.Machine.Contexts.UnmanagedCOMWrapperContext.CallAsFunction(Int32 methodNumber, IValue[] arguments, IValue& retValue) в ScriptEngine.Machine.MachineInstance.ResolveMethodFunc(Int32 arg) в ScriptEngine.Machine.MachineInstance.MainCommandLoop() --- Конец трассировки внутреннего стека исключений --- в ScriptEngine.Machine.MachineInstance.MainCommandLoop() в ScriptEngine.Machine.MachineInstance.ExecuteCode() в ScriptEngine.Machine.MachineInstance.ExecuteMethod(IRunnable sdo, Int32 methodIndex, IValue[] arguments) в ScriptEngine.Machine.Contexts.ScriptDrivenObject.CallAsFunction(Int32 methodNumber, IValue[] arguments, IValue& retValue)0 в TurboConf.HostApplication.HostApplicationForm.ExecuteScript(Script script, Keys ctrl, Keys alt, Keys shift, ScreenForm statusForm, String entryPoint, ScriptOptions options, IVariable[] parameters)

[08.08.25 11:13:18:671] Error: Не удалось выполнить скрипт ИРАдаптер->ПослеВставкиЗначенияТ9
ScriptEngine.Machine.ExternalSystemException: {Модуль C:\Users\....\Documents\TurboConf\apps\8552\RDT.os / Ошибка в строке: 7869 / Внешнее исключение (System.Runtime.InteropServices.COMException): Сервер RPC недоступен. (Исключение из HRESULT: 0x800706BA)}    
	ПолеТекстаПрограммы.Адаптер_ОбновитьСтатистикуВыбораСлова(Параметры.Значение, Параметры.ЭтоМетод, Параметры.КлючСловаря, ЛиСохранитьСтатистикуВыбора);
 ---> System.Runtime.InteropServices.COMException: Сервер RPC недоступен. (Исключение из HRESULT: 0x800706BA)
   в ScriptEngine.Machine.Contexts.UnmanagedCOMWrapperContext.CallAsProcedure(Int32 methodNumber, IValue[] arguments)
   в ScriptEngine.Machine.MachineInstance.ResolveMethodProc(Int32 arg)
   в ScriptEngine.Machine.MachineInstance.MainCommandLoop()
   --- Конец трассировки внутреннего стека исключений ---
   в ScriptEngine.Machine.MachineInstance.MainCommandLoop()
   в ScriptEngine.Machine.MachineInstance.ExecuteCode()
   в ScriptEngine.Machine.MachineInstance.ExecuteMethod(IRunnable sdo, Int32 methodIndex, IValue[] arguments)
   в ScriptEngine.Machine.Contexts.ScriptDrivenObject.CallAsFunction(Int32 methodNumber, IValue[] arguments, IValue& retValue)
   в TurboConf.HostApplication.HostApplicationForm.ExecuteScript(Script script, Keys ctrl, Keys alt, Keys shift, ScreenForm statusForm, String entryPoint, ScriptOptions options, IVariable[] parameters)

и другие


Для вставки изображения или файла, перетащите его в поле редактора или вставьте файл из буфера