I've tested it and figured out, that the import crashes at function HTMLTools.BBCodeToHTML when executing the command
html = html.Replace("[b]", "<b> ");
Propably a problem with the avaiable memory of the thread? Everything till this point works fine.
A solution could be to use an own function insted of Replace, if the string in which the BBCode should be transformed to HTML is too long?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've disabled the rewrite of the Exception-message and so I saw the real error: (copied form debug.txt)
17:57 System.Exception: System.OutOfMemoryException: OutOfMemoryException
bei System.PInvoke.EE.FastAllocateString()
bei System.String.GetStringForStringBuilder()
bei System.String.GetStringForStringBuilder()
bei System.Text.StringBuilder.GetNewString()
bei System.Text.StringBuilder.Append()
bei System.String.ReplaceOrdinal()
bei System.String.Replace()
bei Cachebox.HtmlTools.BBCodeToHtml()
bei Cachebox.Geocaching.GpxImport.ImportGpx()
bei Cachebox.FormImportPocketQuery.threadEntryPoint()
bei Cachebox.Geocaching.GpxImport.ImportGpx()
bei Cachebox.FormImportPocketQuery.threadEntryPoint()
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've tested it and figured out, that the import crashes at function HTMLTools.BBCodeToHTML when executing the command
html = html.Replace("[b]", "<b> ");
Propably a problem with the avaiable memory of the thread? Everything till this point works fine.
A solution could be to use an own function insted of Replace, if the string in which the BBCode should be transformed to HTML is too long?
I've disabled the rewrite of the Exception-message and so I saw the real error: (copied form debug.txt)
17:57 System.Exception: System.OutOfMemoryException: OutOfMemoryException
bei System.PInvoke.EE.FastAllocateString()
bei System.String.GetStringForStringBuilder()
bei System.String.GetStringForStringBuilder()
bei System.Text.StringBuilder.GetNewString()
bei System.Text.StringBuilder.Append()
bei System.String.ReplaceOrdinal()
bei System.String.Replace()
bei Cachebox.HtmlTools.BBCodeToHtml()
bei Cachebox.Geocaching.GpxImport.ImportGpx()
bei Cachebox.FormImportPocketQuery.threadEntryPoint()
bei Cachebox.Geocaching.GpxImport.ImportGpx()
bei Cachebox.FormImportPocketQuery.threadEntryPoint()