Delphi CGI trouble when it's called by URL but worked if I fix the parameters

Viewed 33

I have inherited an old CGI project which receive several data from parameters using GET method. Then, queries a DB in postgreSQL and left into a folder results in PDF format, several files and later change a status field into a table. The process continues after this mark sending emails, giving a link to download the files, etcetera. The process is more complex in the second part because it searchs a lot of data for building PDF files. The project is in Delphi 2007. It was made using Zeos Access components to get access to DB and they used design mode components (I don't like this but is a lot to be changed). The problem, when I fixed variables that got parameters with data; it worked perfectly. But, when those parameter are passed via navigator calling then exe by my local Xampp server, it processed first 3 or 2 PDFs but aftter that fail looking for data. The misterious is that some times fails after 2 and another times fails after 3; sometimes fails in the first access to DB and sometimes fails after the second.

This brings me crazy. I looked many solutions, and I got nothing. Please, can anybody help me with this issue?

0 Answers
Related