Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Access Violation in module ewbmodule.dll... Read of address 00000019
Thu, May 31 2018 10:29 AMPermanent Link

Alvaro

Hello: I have problems with an ewbmodule, in which I receive three parameters, I consult a ElevateDB table and then with FastReport, I send a PDF as streaming to the requesting terminal. I used as a basis of the project, an example of PDFs, published by ElevateSoft.
I looked in the forum about how to debug the ewbmodule, but it has not been clear to me how to do it. The error is random. It is developed for a medical shift application. I enclose a screenshot of the error.
I am using the latest version of EWBuilder and the latest version of ElevateDB. FastReport is the latest release of version 5.
If applicable, I will attach the source.
In principle I would like to know how to do a debugging.
Thank you
Cordially



Attachments: ewbmodule.JPG
Thu, May 31 2018 11:21 AMPermanent Link

Ralf Mimoun

There is not much we can do, especially without the sourcecode of your dll. But there is much you can do. It seems that you can't reproduce the bug in a reliable way. First of all, you need better intel: What happened right before the crash, and what exactly happens in general? Adding something like madExcept to a DLL is tricky, but absolutely worth the work. A full stack trace and call log, with line numbers and method names, is a neccessity for fast bug hunting. Then, log. Log everything that might be of interest, and all that might not. There is no such thing like too much logging when you try to find a bug. I use SmartInspect, but there are other, similar products around.

Think about it: An error occurs in a product that's running live at the customers site, and you get an email. Automatically, with very detailed informations of what happened. 9 out of 10, you can send the customer a fixed version within a day.

Ralf

Alvaro wrote:

Hello: I have problems with an ewbmodule, in which I receive three parameters, I consult a ElevateDB table and then with FastReport, I send a PDF as streaming to the requesting terminal. I used as a basis of the project, an example of PDFs, published by ElevateSoft.
I looked in the forum about how to debug the ewbmodule, but it has not been clear to me how to do it. The error is random. It is developed for a medical shift application. I enclose a screenshot of the error.
I am using the latest version of EWBuilder and the latest version of ElevateDB. FastReport is the latest release of version 5.
If applicable, I will attach the source.
In principle I would like to know how to do a debugging.
Thank you
Cordially
Fri, Jun 1 2018 3:17 AMPermanent Link

Uli Becker

Alvaro,

in addition to Ralfs's good recommendations you can debug your modules
like this:

(Quoted from this thread:
https://www.elevatesoft.com/forums?action=view&category=ewb&id=ewb_general&page=1&msg=12418#12418)

<<
You can debug a module quite easy:
with the module project open in the Delphi IDE, select Run/Parameters
and specify the EWB Web Server (ewbsrvr.exe) as the Host Application. Be
sure to use the complete path to the executable.
Then you can set any breakpoints or display messageboxes in your code.
>>

<<
In addition to this great tip, it must also be noted that you don't even
need to use the external web server.  You can put the IDE (ewbide.exe)
as the host application and debug modules directly while they're loaded
in the IDE with the internal web server.
>>

Hope that helps.

Uli
Fri, Jun 1 2018 7:04 AMPermanent Link

Alvaro

Ralf and Uli:
Thank you for answering my questions. There are almost 600 consultations a day. And only the mentioned error appears 1 or 2 times. I have tested the simulated application on two terminals and can not recreate the error.
With the information that you have given me, I will see how to do the corresponding debug.
I am grateful for your contribution.
Cordially
Alvaro
Image