Page 1 of 1

Issue with "MailBody" field in the ".mes" file

PostPosted: Wed Jan 11, 2017 8:30 am
by MarkusD
Hi,

there is an issue with the length of the "MailBody" field in the ".mes" file. It seems that it is not able to handle more than about 255 characters. I can edit that field in the dialog "madExcept 4.0.16 settings", and everything goes fine into the .mes file, but when I open the dialog "madExcept 4.0.16 settings" again, the whole text is truncated. See screenshots.

TIA, Markus

Re: Issue with "MailBody" field in the ".mes" file

PostPosted: Mon Jan 30, 2017 12:14 pm
by madshi
Can't seem to reproduce that problem here. I've added 280 chars to the MailBody field, then saved the project, closed Delphi, restarted Delphi, opened the project, and all 280 chars are still there.

Maybe you've edited the mes file with a text editor which can't handle lines longer than 255 chars?

Re: Issue with "MailBody" field in the ".mes" file

PostPosted: Thu Mar 23, 2017 9:44 am
by MarkusD
madshi wrote:Can't seem to reproduce that problem here. I've added 280 chars to the MailBody field, then saved the project, closed Delphi, restarted Delphi, opened the project, and all 280 chars are still there.

Maybe you've edited the mes file with a text editor which can't handle lines longer than 255 chars?

I'm using Notepad++ 7.3.3. :wink:

I recorded a short video https://www.hidrive.strato.com/lnk/0SmkOuHC to show what is going wrong. (I hope the German language is ok.)

TIA, Markus

Re: Issue with "MailBody" field in the ".mes" file

PostPosted: Tue Mar 28, 2017 3:49 pm
by madshi
Thank you for the video.

I've just retested this with Delphi 7. I supppose I could also make a video, but I hope you'll believe me without one. Here's what I did:

1) Added a 13KB text file into the "mail body" memo in the madExcept settings dialog.
2) Saved the project.
3) Closed Delphi.
4) Opened Delphi.
5) Checked the "mail body" memo. Oooops, the text was cut down!
6) Copied the text to a text file and saved it. File size exactly 10000 bytes.
7) Checked the madExceptWizard.pas/dfm file, which is reponsible for the "mail body" memo. The TMemo field has the "MaxLength" property set to 10000. Oh, it makes sense now!

I don't know what else I can do here... :cry:

Which exact Delphi version are you working with? Maybe it only occurs with a specific Delphi version, although I'm not sure why that should be the case...

If you copy & paste the cut down text from the memo into a text file and save that text file to harddisk, how big (in bytes) is that file exactly?