Posted 15 years ago
by Christer Bergström

I keep getting System.OutOfMemoryException when calling doc.FindReplace.Find method where doc is an object of Document class. The version is 4.0.273 so it is not the newest one, but according to the history lists I have not found anything relevant fixed in later releases.
My parameters seems OK to me, the only thing is that the text to find is fairly large, several hundreds characters or so.
Here is the call stack:
at System.String.Concat(String str0, String str1)
at System.String.Concat(Object arg0, Object arg1)
at r.b()
at r.a(Int32 A_0, Boolean A_1)
at r.a(Int32 A_0, Boolean A_1)
at r.a(String A_0, Boolean A_1, Boolean A_2, CaseSensitivity A_3)
at r.b(String A_0, Boolean A_1, Boolean A_2, CaseSensitivity A_3)
at ActiproSoftware.SyntaxEditor.FindReplaceOptions.b()
at ActiproSoftware.SyntaxEditor.DocumentFindReplace.a(FindReplaceOptions A_0, Int32 A_1)
at ActiproSoftware.SyntaxEditor.DocumentFindReplace.Find(FindReplaceOptions options, Int32 startOffset)
Can anyone explain why this occurs?
My parameters seems OK to me, the only thing is that the text to find is fairly large, several hundreds characters or so.
Here is the call stack:
at System.String.Concat(String str0, String str1)
at System.String.Concat(Object arg0, Object arg1)
at r.b()
at r.a(Int32 A_0, Boolean A_1)
at r.a(Int32 A_0, Boolean A_1)
at r.a(String A_0, Boolean A_1, Boolean A_2, CaseSensitivity A_3)
at r.b(String A_0, Boolean A_1, Boolean A_2, CaseSensitivity A_3)
at ActiproSoftware.SyntaxEditor.FindReplaceOptions.b()
at ActiproSoftware.SyntaxEditor.DocumentFindReplace.a(FindReplaceOptions A_0, Int32 A_1)
at ActiproSoftware.SyntaxEditor.DocumentFindReplace.Find(FindReplaceOptions options, Int32 startOffset)
Can anyone explain why this occurs?