[CLOSED] CGI brookfreepascal+lighttpd EAccessViolation lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- kqha · 2020-05-18 04:38 I just created a simple CGI hello world using brookfreepascal from brookfreepascal example (https://github.com/risoflora/brookfreepascal) and run the resulted .bf file on lighttpd. The test in browser run just fine but in lighttpd console there are some EAccessViolation: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i An unhandled exception occurred at $0000000100037B00:EAccessViolation: Access violation  $0000000100037B00  $0000000100008640  $0000000100037E8E  $0000000100008640  $000000010002E899 line 99 of ../brokers/brookfclcgibroker.pas  $000000010000917C  $000000010000845B  $0000000100012318  $0000000100009FAA  $000000010000A282  $000000010000A31A  $00000001000016C8 line 13 of brookhello.lpr  $00000001000016D6 line 13 of brookhello.lpr  $000000010000F773  $0000000100010271  $00007FFFA91E7BD4  $00007FFFA9C0CE51  line 13 on brookhello.lpr is just a simple "end." lighttpd.conf I modified: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i ...server.modules              = (       ...       "mod_cgi",       ...)...cgi.assign = (".bf" => "")...  Did I miss something somewhere? ---------------------------------------------------------------------- kqha · 2020-05-20 05:25 After some searching I decided to use lazarus CGI project instead brook, because it probably related to "legacyrouting" thing (https://f orum.lazarus.freepascal.org/index.php/topic,39867.msg358562.html#msg35 8562) which I believe brook didn't handle yet (or handled somewhere just not documented and/or I can't find yet)