I am working in an environment when I can not install the debugger...
My Code -> Dataset.FieldByName('FIELDNAME').AsString:='0';
Terminates the app... same code in command line, runs perfectly. Change to AsInteger:=0, same thing.
When calling AsString or AsInteger - what is actually happening? I tried to follow the source on github, without seeing anything - hopefully someone can simply trace the code and reply with a dump. The Dataset is THalcyon7Dataset - tested and works perfectly outside of Apache. On Apache, Reads of .AsAnything work, but the writes of .AsAnything fail. (and note, running same code outside of Apache works perfectly, so it is either a memory restriction as a .so, or some other type of permission restriction) - again the Apache module works fine reading the field data.
I assume the TField.AsAnything is calling TField.TDataset.GetFieldData(Self, Buffer) or something similar, so I can put more debug messages in the TDataset (do not have db.pas source on this environment).
FPC v2.6.4 Linux 64bit, CentOS Server in my office, then I upload the .so to the Cloud... ssh access only... so I am doing a lot of ap_log_error() calls right now.
Ozz