risoflora / brookframework

Microframework which helps to develop web Pascal applications.
https://risoflora.github.io/brookframework
GNU Lesser General Public License v2.1
238 stars 54 forks source link

Message and/or error suppression or callback function #43

Closed vectorkovacspeter closed 8 months ago

vectorkovacspeter commented 2 years ago

Hello,

for better usability I think a feature to suppress libsagui messages and/or errors or forward them to a callback function would be very nice.

For example when the port is not free the libsagui dll shows error message, instead of raise some specific exception or call an OnError callback, or something can be handled by the caller application.

silvioprog commented 8 months ago

Hey @vectorkovacspeter, you mean something like this? Source/BrookHTTPServer.pas#OnError 🙂

vectorkovacspeter commented 8 months ago

Thank man. I found this project also, and make some pilots with it, and also with mormot project, but finally use Indy with some modifications.

As I remember the performance tests for the http requests, mormot was the winner, but it was too complex for that particular job.

silvioprog commented 8 months ago

Alright, so let's close as solved. BTW feel free to reopen if you need something. 🙂