Jump to content

Kachar ganyalong

uniGUI Subscriber
  • Posts

    47
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Kachar ganyalong

  1. I've read this http://www.unigui.com/doc/online_help/importance-of-memory-managemen.htmand don't understand because it is a bit complicating.

     

    How can I simply store session's  string variable(currentuser:string)?

     

     

     

    unit MainModule;

    interface

    uses
      uniGUIMainModule, SysUtils, Classes;

    type
      TUniMainModule = class(TUniGUIMainModule)
        procedure UniGUIMainModuleCreate(Sender: TObject);
      private
        { Private declarations }

      currentuser:string;  // can I store session variable like this on UniMainModule?
      public
        { Public declarations }
      end;

    function UniMainModule: TUniMainModule;

    implementation

    {$R *.dfm}
     

  2. I used to have this problem with the older 0.9  trial version , now I've purchase the license and download the latest.

     

    the old setting that caused problem:

    Delphi 2010

    unigui 0.9

    Firebird 2.5

    IBX

    I use IBDATASET to connect

    link unidatagrid to Ibdataset

     

     

    Error are:

    1. Out of memory - this one, I think it is because the " select * " (I have checked Task manager, It was using massive RAM) -> SQL should fix by limit record request

     

    2. "Access violation" when new user enter the web and click login. it will send SQL to Firebird sever and it Error-> this happen randomly and when it happened, it always  happen until restart.

          I think it's cause by IBX or Firebird transaction so I will change to MySQL

     

     

    new setting i will use:

    Delphi 2010

    Lastest Unigui

    MariaDB

    ZEOS

    clientdataset connected to ZeosDataset

    Fastreport -> each report will have it own Database connection (ZeosFrxDB)

     

    will it ok? any recommendation? is ADO better?

     

     

     

     

    I will re-create my project by using this demo(is it the best practice?) :"Demo_FastReport_corrected.rar" from http://forums.unigui.com/index.php?/topic/2669-fastreport-demo/?hl=fastreport  

×
×
  • Create New...