EditControl - LoadStream() Exception
Hi,
I'm using Syncfusion 4.3.0.30 on WinXp SP2.
When loading a file stream into the editcontrol via the LoadStream() method a SystemStackOverflow exception is thrown. I think that this only happens if the stream doesn't end with CRLF or 0D 0A!
I think this is related to "Defect #1385 - EditControl does not display the last line in a file which does not terminate with CRLF".
I attached a sample with illustrates the issue.
I also need a bugfix or workaround for this. Using the LoadFile() method is not an option.
Yours
Christian
CRLF_BUG.zip
I'm using Syncfusion 4.3.0.30 on WinXp SP2.
When loading a file stream into the editcontrol via the LoadStream() method a SystemStackOverflow exception is thrown. I think that this only happens if the stream doesn't end with CRLF or 0D 0A!
I think this is related to "Defect #1385 - EditControl does not display the last line in a file which does not terminate with CRLF".
I attached a sample with illustrates the issue.
I also need a bugfix or workaround for this. Using the LoadFile() method is not an option.
Yours
Christian
CRLF_BUG.zip
SIGN IN To post a reply.
5 Replies
AD
Administrator
Syncfusion Team
January 30, 2007 02:31 AM UTC
Hi Christian,
Our apologies for the delayed response. We are looking in to this issue and will update you with more information within a day.
Thanks for your patience.
Regards,
Ebenezer.P
Our apologies for the delayed response. We are looking in to this issue and will update you with more information within a day.
Thanks for your patience.
Regards,
Ebenezer.P
CT
Christian Teufel
January 31, 2007 09:22 AM UTC
Hi,
any news about this issue?
Is there a possible workaround
Yours
Christian!
any news about this issue?
Is there a possible workaround
Yours
Christian!
AD
Administrator
Syncfusion Team
January 31, 2007 07:18 PM UTC
Hi Christian,
It is possible to workaround this issue. I have attached a sample that illustrates this. Let me know if this meets your requirements.
Thanks for your patience.
Regards,
Ebenezer.P
sample
It is possible to workaround this issue. I have attached a sample that illustrates this. Let me know if this meets your requirements.
Thanks for your patience.
Regards,
Ebenezer.P
sample
DW
dwedewdew
February 2, 2007 01:02 PM UTC
Hi,
thanks for the workaround.
However, this will only suffice for small files.
It seems that setting the text property directly ignores all perfomrance improvements you developed.
Thus, opening large files (e.g. > 10000 lines) causes extrem performance loss on file loading.
I attached a sample file, please try yourself.
Is there another workaround or maybe a fix?!?!
Yours
Christian!
preprocessed.zip
thanks for the workaround.
However, this will only suffice for small files.
It seems that setting the text property directly ignores all perfomrance improvements you developed.
Thus, opening large files (e.g. > 10000 lines) causes extrem performance loss on file loading.
I attached a sample file, please try yourself.
Is there another workaround or maybe a fix?!?!
Yours
Christian!
preprocessed.zip
PR
Purusothaman R
Syncfusion Team
February 2, 2007 05:37 PM UTC
Hi Christian,
We regret for the inconvenience caused.
To increase the performance of the Edit Control when loading a larger file, you can set the ParsingMode to PartialParsingNoFallback as follows.
this.editControl1.ParsingMode = Syncfusion.Windows.Forms.Edit.Enums.TextParsingMode.PartialParsingNoFallback;
Also I have attached a Sample. Please look in to the sample.
CRLF_BUG.zip
Thanks for your interest in Syncfusion Products.
Regards,
Purusothaman.R
We regret for the inconvenience caused.
To increase the performance of the Edit Control when loading a larger file, you can set the ParsingMode to PartialParsingNoFallback as follows.
this.editControl1.ParsingMode = Syncfusion.Windows.Forms.Edit.Enums.TextParsingMode.PartialParsingNoFallback;
Also I have attached a Sample. Please look in to the sample.
CRLF_BUG.zip
Thanks for your interest in Syncfusion Products.
Regards,
Purusothaman.R
SIGN IN To post a reply.
- 5 Replies
- 4 Participants
-
DW dwedewdew
- Jan 23, 2007 06:12 PM UTC
- Feb 2, 2007 05:37 PM UTC