Board index » off-topic » Help with Tsession
Tuto
Delphi Developer |
Help with Tsession2007-09-28 05:43:27 AM off-topic12 Hi, i'm using D5, Pdx Tables, BDE I've 5 datamodules, each one with tdatabase and tsession component, so i want to define my NET and PRIV dir, but when i try to do this i've got delphi error "access violation", the Tsession is given me crazy, i've used for long time, but now i'm loosing data from the tables and i think it's because net/priv dir. i've my app in diferent dir of the tables, but now i want to create NET/PRIV dirs. i use this code in the .DPR unit and on the datamodule.oncreate session.Privatedir:= extractfilepath(paramstr(0)) + '..\PRIV'; session.Netfiledir:= extractfilepath(paramstr(0)) + '..\NET'; |