• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Air Application freez after generation?

New Here ,
Jul 03, 2012 Jul 03, 2012

Copy link to clipboard

Copied

Dears,

I create Flex project than Action Script file,

in this file i create this function

private function ReadDataFromDB(dbRead:String):ArrayCollection

{

    var dbReaded:File = File.applicationDirectory.resolvePath(dbRead);   

    var dbcon:SQLConnection =new SQLConnection();

    var readtable:SQLStatement = new SQLStatement();

    var Resultat:SQLResult = new SQLResult();

       

    dbcon.open(dbReaded);

    readtable.sqlConnection = dbcon;

    readtable.text = "select * from tprule_table;";

    readtable.execute();

    Resultat = readtable.getResult();

    var res:ArrayCollection = new ArrayCollection(Resultat.data);

    dbcon.close();

    return res;

}

I populate variables with it eg :

[Bindable] public var C_ProjectType_R:ArrayCollection = ReadDataFromDB("tprules.db");

My problem is :

it's work when i excute it from fb 4.6

but the air program generate function Export realease build ... dosn't work and it's 24 Mb on windows task Manager

What I can do ?

Thank's for help

Views

509

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

New Here , Jul 04, 2012 Jul 04, 2012

Dears,

I resolve problem by populating variables inside the function

[Bindable] public var C_ProjectType_R:ArrayCollection;


private function ReadDataFromDB(dbRead:String):Void

{

    var dbReaded:File = File.applicationDirectory.resolvePath(dbRead);   

    var dbcon:SQLConnection =new SQLConnection();

    var readtable:SQLStatement = new SQLStatement();

    var Resultat:SQLResult = new SQLResult();

       

    dbcon.open(dbReaded);

    readtable.sqlConnection = dbcon;

    readtable.text = "select * from t

...

Votes

Translate

Translate
New Here ,
Jul 04, 2012 Jul 04, 2012

Copy link to clipboard

Copied

LATEST

Dears,

I resolve problem by populating variables inside the function

[Bindable] public var C_ProjectType_R:ArrayCollection;


private function ReadDataFromDB(dbRead:String):Void

{

    var dbReaded:File = File.applicationDirectory.resolvePath(dbRead);   

    var dbcon:SQLConnection =new SQLConnection();

    var readtable:SQLStatement = new SQLStatement();

    var Resultat:SQLResult = new SQLResult();

       

    dbcon.open(dbReaded);

    readtable.sqlConnection = dbcon;

    readtable.text = "select * from tprule_table;";

    readtable.execute();

    Resultat = readtable.getResult();

     C_ProjectDomain_R = new ArrayCollection(Resultat.data);

    dbcon.close();

}

Thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines