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

delphi package - automated exception handling

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

Postby MarkusD » Wed Jan 11, 2017 8:30 am

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
Attachments
2017-01-11_092608.png
The truncated text
2017-01-11_092608.png (31.71 KiB) Viewed 186 times
2017-01-11_092539.png
The complete text in the .mes file
2017-01-11_092539.png (32.47 KiB) Viewed 186 times
MarkusD
 
Posts: 9
Joined: Wed Jan 04, 2017 9:32 am

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

Postby madshi » Mon Jan 30, 2017 12:14 pm

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?
Attachments
255.png
255.png (40.17 KiB) Viewed 164 times
madshi
Site Admin
 
Posts: 9203
Joined: Sun Mar 21, 2004 5:25 pm

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

Postby MarkusD » Thu Mar 23, 2017 9:44 am

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
MarkusD
 
Posts: 9
Joined: Wed Jan 04, 2017 9:32 am

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

Postby madshi » Tue Mar 28, 2017 3:49 pm

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?
madshi
Site Admin
 
Posts: 9203
Joined: Sun Mar 21, 2004 5:25 pm


Return to madExcept

Who is online

Users browsing this forum: No registered users and 1 guest

cron