草庐IT

cxa_free_exception

全部标签

c# - string.split() "Out of memory exception"读取制表符分隔文件时

我在我的C#代码中使用string.split()来读取制表符分隔的文件。我正面临下面代码示例中提到的“OutOfMemory异常”。这里我想知道为什么文件大小为16MB时会出现问题?这是正确的方法吗?using(StreamReaderreader=newStreamReader(_path)){//...........Loadthefirstlineofthefile................stringheaderLine=reader.ReadLine();MeterDataIPValueListobjMeterDataList=newMeterDataIPValueL

c# - 起订量参数 TargetParameterCountException : Parameter count mismatch Exception

以下是我的通用基础存储库界面publicinterfaceIRepository{IQueryableAllIncluding(paramsExpression>[]includeProperties);}我的实体publicclassSdk{publicSdk(){this.Identifier=Guid.NewGuid().ToString();}publicvirtualICollectionAccessibleResources{get;set;}publicstringIdentifier{get;set;}}下面是具体的repopublicinterfaceISdkRepo

c# - VS 2015 智能感知 : Exceptions Thrown not Previewed

我刚刚升级到VS2015企业版并且正在使用C#。在VS2013中,我能够将XML异常标记添加到我的方法中,并且在尝试使用该方法时,我会看到可以抛出哪些异常的预览。但是,在VS2015中,当我将鼠标悬停在我的方法调用上或尝试进行调用时,我无法预览可以抛出哪些异常。我如何让VS2015显示方法可以抛出哪些异常?下面是我的测试类。谢谢。对比2013对比2015 最佳答案 此问题已在VisualStudio2015Update1中得到解决。可以下载here. 关于c#-VS2015智能感知:Ex

c# - LINQ to SQL Basic 插入引发 : Attach or Add not new entity related exception

我正在尝试插入一条记录。此代码有效但已停止工作我不知道为什么。这是代码:using(SAASDataContextdc=newSAASDataContext()){tblAssessmenta2=newtblAssessment();a2.AssessmentCentreId=centreId;a2.AttemptNumber=1;dc.tblAssessments.InsertOnSubmit(a2);dc.SubmitChanges();CurrentAssessmentId=a2.AssessmentId;}代码编译但在下面的dc.SubmitChanges();行抛出异常。抛出

c# - Visual Studio express : free class diagram tool

关闭。这个问题不符合StackOverflowguidelines.它目前不接受答案。我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以便用事实和引用来回答。关闭8年前。Improvethisquestion我正在使用c#express并希望使用免费工具来设计我的类图。您有什么推荐的免费工具?

c# - 用于 C# 开发的 NoSQL FREE alternative (alternative to ravendb)

关闭。这个问题不符合StackOverflowguidelines.它目前不接受答案。要求我们推荐或查找工具、库或最喜欢的场外资源的问题对于StackOverflow来说是偏离主题的,因为它们往往会吸引自以为是的答案和垃圾邮件。相反,describetheproblem以及迄今为止为解决该问题所做的工作。关闭9年前。Improvethisquestion我发现了raven-db,我喜欢它,但后来我看到了许可证……GPL或付费所以我正在寻找适用于闭源C#开发的免费raven-db替代品。似乎MongoDB和Berkley也是GPL。找到嵌入式解决方案对我来说要好得多。

c# - Win32Exception 存储空间不足,无法处理此命令

通过我对MaxTo的自动崩溃收集我收到以下崩溃报告:V8.12.0.0-System.ComponentModel.Win32Exception-:VoidUpdateLayered():0Version:MaxTo8.12.0.0Exception:System.ComponentModel.Win32ExceptionErrormessage:NotenoughstorageisavailabletoprocessthiscommandStacktrace:atSystem.Windows.Forms.Form.UpdateLayered()atSystem.Windows.For

c# - "Only catch exceptions you can handle"到底是什么意思?

我的任务是为我正在处理的.NET/C#项目编写异常处理策略和指南文档。我很难做到。关于如何/何时抛出、捕获、包装异常,有很多可用的信息,但我正在寻找描述除了包装和抛出异常之外的catchblock内应该进行哪些类型的事情。try{DoSomethingNotNice();}catch(ExceptionICanHandleex){//Lookingforexamplesofwhatpeoplearedoingincatchblocks//otherthanthroworwrappingtheexception,andthrowing.}提前致谢 最佳答案

已解决elasticsearch.exceptions.RequestError: TransportError(400, ‘search_phase_execution_exception’, ‘[

已解决(python操作elasticsearch模块查询失败)elasticsearch.exceptions.RequestError:TransportError(400,‘search_phase_execution_exception’,‘[terms]querydoesnotsupport[ti]’)文章目录报错代码报错翻译报错原因解决方法千人全栈VIP答疑群联系博主帮忙解决报错报错代码粉丝群里面的一个小伙伴想用python操作elasticsearch模块查询数据(当时他心里瞬间凉了一大截,跑来找我求助,然后顺利帮助他解决了,顺便记录一下希望可以帮助到更多遇到这个bug不会解决的

c# - 如何使用 Json.net 反序列化从 Exception 类派生的对象?

我正在尝试反序列化从Exception类派生的对象:[Serializable]publicclassError:Exception,ISerializable{publicstringErrorMessage{get;set;}publicError(){}}Errorerror=JsonConvert.DeserializeObject("jsonerrorobjstring");它给我错误:ISerializabletype'type'doesnothaveavalidconstructor. 最佳答案 添加一个新的构造函数p