View Full Version : Another one Send method
Alex Gilev
28-Aug-2006, 11:11 AM
Hello,
I would like to suggest to add and option for sending files like "Send
to additional storage".
I will describe a little. I have one client/server projects with many
client connections to one [database] server. Not all users have Internet
connections, so I can not receive error reports from them. I was prepare
special table in my database for storing .Elf files as blob objects in
this table. So, client programs while user login into database look the
..Elf file and save it into database. Problem what I have now is no one
option on the first preferences tab ("Send") is not activated if there
are not enabled Email or Web option. So, I can not use any option from
"Common Send Options", especially Screenshot options.
There are two main ways to solve this problem:
1. Store exception reports in XML format. This is hard way as I can see
after reading some topics about XML file format in this newsgroup.
2. Adding "Send to additional storage" method with some event occurring
after each exception. This event can contain path to some filename (.Elf
file or tar.gz archive) with latest report, so it will be possible for
my application to handle this event and store file in own database.
I hope it will be useful not only for me. Thanks in advance.
--
With best regards,
Alex Gilev,
http://www.xstarter.com
admin
30-Aug-2006, 09:43 AM
Hi,
Alex Gilev wrote:
> Hello,
>
> I would like to suggest to add and option for sending files like "Send
> to additional storage".
>
> [...]
>
> There are two main ways to solve this problem:
> [...]
> 2. Adding "Send to additional storage" method with some event occurring
> after each exception. This event can contain path to some filename (.Elf
> file or tar.gz archive) with latest report [...].
>
> I hope it will be useful not only for me. Thanks in advance.
>
> --
> With best regards,
> Alex Gilev,
I can you solve this problem so:
1)...set the EurekaLog options to send the log via email;
2)...create an "AttachedFilesRequest" event to see all the files to send, and
set the "EurekaLogRecord.CurrentModuleOptions.EmailSendMode := esmNoSend;" to
disable the email send (add the ECore unit to the uses clause).
I have just tested it and works, BUT ONLY with the last EurekaLog 5.1.9 RC 1
(just uploaded in the site). :)
--
Best regards...
Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!
Alex Gilev
04-Sep-2006, 08:17 AM
Thank you, Fabio, I will try to do this way.
admin wrote:
> I can you solve this problem so:
>
> 1)...set the EurekaLog options to send the log via email;
> 2)...create an "AttachedFilesRequest" event to see all the files to
> send, and set the "EurekaLogRecord.CurrentModuleOptions.EmailSendMode :=
> esmNoSend;" to disable the email send (add the ECore unit to the uses
> clause).
>
> I have just tested it and works, BUT ONLY with the last EurekaLog 5.1.9
> RC 1 (just uploaded in the site). :)
>
Alex Gilev
04-Sep-2006, 08:31 AM
Hello Fabio,
This version EurekaLog 5.1.9 have only 1 item in AttachedFiles in the
event "AttachedFilesRequest". But I can see screenshot in the temp folder...
--
With best regards,
Alex Gilev,
http://www.xstarter.com
admin wrote:
> I can you solve this problem so:
>
> 1)...set the EurekaLog options to send the log via email;
> 2)...create an "AttachedFilesRequest" event to see all the files to
> send, and set the "EurekaLogRecord.CurrentModuleOptions.EmailSendMode :=
> esmNoSend;" to disable the email send (add the ECore unit to the uses
> clause).
>
> I have just tested it and works, BUT ONLY with the last EurekaLog 5.1.9
> RC 1 (just uploaded in the site). :)
>
admin
04-Sep-2006, 04:59 PM
Hi,
Alex Gilev wrote:
> Hello Fabio,
>
> This version EurekaLog 5.1.9 have only 1 item in AttachedFiles in the
> event "AttachedFilesRequest". But I can see screenshot in the temp
> folder...
>
> --
> With best regards,
> Alex Gilev,
> http://www.xstarter.com
Is a .TGZ file?
--
Best regards...
Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!
Alex Gilev
05-Sep-2006, 02:08 AM
admin wrote:
> Hi,
>
> Alex Gilev wrote:
>> Hello Fabio,
>>
>> This version EurekaLog 5.1.9 have only 1 item in AttachedFiles in the
>> event "AttachedFilesRequest". But I can see screenshot in the temp
>> folder...
>>
>> --
>> With best regards,
>> Alex Gilev,
>> http://www.xstarter.com
>
> Is a .TGZ file?
>
No, this is .ELF file :(.
admin
05-Sep-2006, 03:29 PM
Hi,
Alex Gilev wrote:
> admin wrote:
>> Hi,
>>
>> Alex Gilev wrote:
>>> Hello Fabio,
>>>
>>> This version EurekaLog 5.1.9 have only 1 item in AttachedFiles in the
>>> event "AttachedFilesRequest". But I can see screenshot in the temp
>>> folder...
>>>
>>> --
>>> With best regards,
>>> Alex Gilev,
>>> http://www.xstarter.com
>>
>> Is a .TGZ file?
>>
>
> No, this is .ELF file :(.
Can you send this source project to me, please?
Just to analyze it, ok? :)
--
Best regards...
Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!
Alex Gilev
06-Sep-2006, 11:54 AM
Hi Fabio,
Ok, here is it. There are overloaded error form, to show modified
exception messages and to reconnect to DB if connection dropped. If
users don't press Additional button (and they are usually don't do this)
they have not Screenshot.png in the AttachedFiles. If they press
Additional and native Eureka window with exception showing, screenshot
filename exists in AttachedFiles.
What I can do to have this screenshot filename always? ;)
Many thanks.
--
With best regards,
Alex Gilev,
http://www.xstarter.com
admin wrote:
> Can you send this source project to me, please?
>
> Just to analyze it, ok? :)
>
admin
06-Sep-2006, 05:44 PM
Hi,
Alex Gilev wrote:
> Hi Fabio,
>
> Ok, here is it. There are overloaded error form, to show modified
> exception messages and to reconnect to DB if connection dropped. If
> users don't press Additional button (and they are usually don't do this)
> they have not Screenshot.png in the AttachedFiles. If they press
> Additional and native Eureka window with exception showing, screenshot
> filename exists in AttachedFiles.
>
> What I can do to have this screenshot filename always? ;)
>
> Many thanks.
I'm sorry but your project contains some non-standard controls (TEIPopupButton
and others), so I cannot compile and try it.
Can you replace them with standard controls, please?
--
Best regards...
Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!
Alex Gilev
07-Sep-2006, 03:27 AM
admin wrote:
> Hi,
>
> Alex Gilev wrote:
>> Hi Fabio,
>>
>> Ok, here is it. There are overloaded error form, to show modified
>> exception messages and to reconnect to DB if connection dropped. If
>> users don't press Additional button (and they are usually don't do
>> this) they have not Screenshot.png in the AttachedFiles. If they press
>> Additional and native Eureka window with exception showing, screenshot
>> filename exists in AttachedFiles.
>>
>> What I can do to have this screenshot filename always? ;)
>>
>> Many thanks.
>
> I'm sorry but your project contains some non-standard controls
> (TEIPopupButton and others), so I cannot compile and try it.
>
> Can you replace them with standard controls, please?
>
I am sorry for it, now only standart controls.
admin
07-Sep-2006, 10:36 AM
Hi,
Alex Gilev wrote:
> admin wrote:
>> Hi,
>>
>> Alex Gilev wrote:
>>> Hi Fabio,
>>>
>>> Ok, here is it. There are overloaded error form, to show modified
>>> exception messages and to reconnect to DB if connection dropped. If
>>> users don't press Additional button (and they are usually don't do
>>> this) they have not Screenshot.png in the AttachedFiles. If they
>>> press Additional and native Eureka window with exception showing,
>>> screenshot filename exists in AttachedFiles.
>>>
>>> What I can do to have this screenshot filename always? ;)
>>>
>>> Many thanks.
>>
>> I'm sorry but your project contains some non-standard controls
>> (TEIPopupButton and others), so I cannot compile and try it.
>>
>> Can you replace them with standard controls, please?
>>
>
> I am sorry for it, now only standart controls.
OK I have studied it.
The problem is that if you did not show the EurekaLog original dialog the
end-user cannot set the "Send Error via Internet" check-box, so the "Send
screenshot" check-box will be automatically disabled.
--
Best regards...
Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!
Alex Gilev
07-Sep-2006, 11:04 AM
Fabio,
That's what I mean, I need to have streenshot but don't want to Send it.
Can it be new "send" method, maybe "Store error report into ..."?
P.S. Or maybe more easy? Option "Always make screenshot"? ;)
--
With best regards,
Alex Gilev,
http://www.xstarter.com
admin wrote:
> OK I have studied it.
>
> The problem is that if you did not show the EurekaLog original dialog
> the end-user cannot set the "Send Error via Internet" check-box, so the
> "Send screenshot" check-box will be automatically disabled.
>
admin
08-Sep-2006, 10:31 AM
Hi,
Alex Gilev wrote:
> Fabio,
>
> That's what I mean, I need to have streenshot but don't want to Send it.
> Can it be new "send" method, maybe "Store error report into ..."?
>
> P.S. Or maybe more easy? Option "Always make screenshot"? ;)
>
> --
> With best regards,
> Alex Gilev,
> http://www.xstarter.com
>
> admin wrote:
>> OK I have studied it.
>>
>> The problem is that if you did not show the EurekaLog original dialog
>> the end-user cannot set the "Send Error via Internet" check-box, so
>> the "Send screenshot" check-box will be automatically disabled.
Why did not simply use the "SaveScreenshot" procedure in an OnExceptionNotify event?
http://www.eurekalog.com/docs/savescreenshotprocedure.html
--
Best regards...
Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG, every time!
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.