Air Application freez after generation?

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

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

Similar Messages

  • Adobe Air Application Crash After installation

    Hi,
    We have developed a windows application "DsNetHTML5Player" in Adobe Air which shows HTML pages in sequence using <mx:HTML> control. When I run application in "Flash Builder" all plays fine.After creating its build and installing on system (Windows 7) application crashes with following error.
    Faulting application name: DsNetHTML5Player.exe, version: 0.0.0.0, time stamp: 0x4d7a7dd2
    Faulting module name: WebKit.dll, version: 6531.9.0.0, time stamp: 0x50fcd627
    Exception code: 0xc0000005
    Fault offset: 0x000a99ac
    Faulting process id: 0x19c0
    Faulting application start time: 0x01d00ae266bc2b46
    Faulting application path: C:\Program Files\DsNetHTML5Player\DsNetHTML5Player.exe
    Faulting module path: c:\Program Files\Common Files\Adobe AIR\Versions\1.0\Resources\WebKit.dll
    Report Id: 99882a24-76d6-11e4-a3ad-005056c00008
    If anyone has any idea what the problem could be here, please let me know.
    Thanks
    Umair

    Could you open a new bug report on this over at bugbase.adobe.com.  Please include a copy of your app (or a sample project) along with steps to reproduce.  Once added, please let me know the bug number and I'll have somone take a look ASAP.
    Thanks,
    Chris

  • Memory Leakage in AIR application

    Hi all,
        I have a performance issue with air application. After launching the application if we keep the application idle means also the memory is creeping up.Why is it so? . How to solve this.
    Thanks & Regards,
    Jayagopal.

    one main cause for memory lekage problem is unclosed database connection.
    so please check any unclosed database connection if any....

  • AIR Application Silent install

    Is it possible to start AIR application immediately after Silent install.
    We have already signed up Adobe AIR Runtime Distribution Agreement.
    and i am using below command line for silent install.
    Airinstaller.exe -silent -eulaAccepted -location "C:/Program Files/Abcd"  abcd.air
    It works fine. But i want to launch AIR application immediately after install. Is it possible?
    Thanks!

    Thanks for posting the log.  It appears that the install is failing during the MSI portion of the install.
    Microsoft has just released a brand new tool that should help you resolve this problem.  Would you mind giving it a try and let us know how it works for you?  When running the new tool, go through the uninstall process and try to remove AirWrite from your system.  Once that's done, give your command line another try.
    http://support.microsoft.com/mats/Program_Install_and_Uninstall/en-us
    Thanks,
    Chris

  • How to restart Air application

    I have the following questions any help would be appreciated.
    1. Is there a way to restart Air application
    2. How to get application directory path
    3. How to get application executeable name i.e.
    (myFlexApp.exe for windows)
    Thanks in advance.

    I know air application has .air application, but after
    installing the air application its extension is no longer ".air"
    for windows its extension become ".exe" for mac and linux it is
    some thing else.
    secondly global Object Application has limited functionality
    it doesn't provide the path of directory where application is
    installed and complete name of application with extension, someone
    can change the executable file name manually in installed
    directory, in that case Application.application.name + ".exe"
    doesn't work....

  • Bug: Custom AIR Application icons on Mac OS X don't display after install

    There are circumstances where custom AIR application icons don't display in certain Finder views after installation.
    This is apparent when viewing the application in a docked folder popup. The icon renders as a blank with a sort of no entry slash across it. Another example where this occurs is in a Downloads folder in the Dock (if you immediately create an alias to the app in the your Downloads folder, and your Downloads folder is in the Dock).
    In addition, the maximum icon size of 128x128 really not that large. I wish AIR applications could have larger icons, like real applications.

    I've seen this occur with numerous applications (native OS X and AIR) and typically restarting the dock (rebooting or logout/login) fixes it for me.  Doing a quick search on Google show's that it's a pretty common occurrence.  Are you still seeing this occur after rebooting?
    As for the large icon support, I would like to encourage you to vote for the following two feature requests!
    Application Icon Size
    512x512 Icon Support
    Thanks,
    Chris

  • Air application cannot be installed after 2017

    Hi all,
    i had a problem a few months ago, developing an air
    application using the beta air runtime, because the runtime stopped
    working after a certain amount of time and the application could
    not be installed.
    Now i have installed version 1.1 of the runtime and have
    rebuilt the application using a self signed key and added a
    timestamp to it. Having the previous incident of the application
    that could not be installed i decided to put the computer clock in
    the future and check if the application would be installed using
    1.1. runtime.
    Well..., It does not after the 30th of October 2017. The same
    thing occurs with other applications as well. e.g. The adobe media
    player application.
    Is this normal?
    The application install log mentions an error : "Invalid
    package signature" errorid=5022.

    It might be due to the Root Certificate expires by 2017.
    This is normal.

  • Turn on Distraction free mode on mac in Adobe AIR application

    Is there a possibility to turn on Distraction free mode in Adobe AIR application on OSX?

    Could you please open a new bug report on this over at bugbase.adobe.com?  When adding the bug, please include sample code or an application so we can quickly test this out internally.  If you'd like to keep this private, feel free to email the attachment to me directly ([email protected]). 
    Once added, please post back with the URL and I'll attach the symbolicated crash log to the bug report.  Out of curiosity, have you tried this with AIR 3.6?

  • Flex or AIR application is slowed down after continuous usage.

    Hello,
    I am facing two issues one each in Flex application and AIR application.
    1. First in Flex application.
    I have developed an Flex application in Flex 4.0 and is being used by around 10 to 15 users simultaneously.
    Now the problem is that when all the users start use of the application in the morning, it is running perfectly. But after usage of 3 or 4 hours, or let's say after lunch its speed is gettling slow. And due to low speed, application behaves abnormally. For example, I am calling multiple php files one by one through http service in one of the screens. And those php calls are dependent on each other. So due to low speed step 2 php call is over before the step 1 php call. And due to that application can't set the screen as per its normal behaviout.
    And this problem stays even after user clears the browser cache.
    So I am assuming that even after clearing browser cache flash player is not removing all the cache or something is still there on the server which is causing slow speed of the application. Because when next day users come to office and use the application they don't face such issues. Such issues are coming only after continuous usage of it.
    So please help me in solving this issue ASAP. Because our client is getting angry over this issue.
    2. AIR Application issue
    I have developed an AIR application which is using socket connection to use different designer softwares like In Design, Illustrator etc.
    Now sometimes happens that due to low speed of machine or internet my socket connection didn't get time to connect to some design softwares. So I have put a code that checks if the connection is lost then it reconnects it. But this connection lost problem starts coming after heavy usage of the application.
    And the second problem is regarding drag and drop. When I do continuous drag and drop of images of around 70 to 80 images, I get memory over error from the machine stating that please close the application as there is no memory available now.
    So please suggest a solution for this ASAP as our client will need to do lots of drag and drop operations and lots of socket connection to design software during the day.
    Thanks & Regards,
    Jigar Oza

    Here is the screen shot of my AIR application.
    When I do continuous drag and drop operation the highlighted VO or object instances are increased. These instances are increased and my system memory is used because of that. So how can I remove the instances of those objects which are used repeatedly?

  • After closing the AIR application, it still runs in the Task Manager

    Hi,
    I am very new to AIR application. I have made a product demo
    application in CS3 using AS2 and just for the sake of testing the
    AIR, I published an AIR installer of that application.
    Every thing works as it should be but I am facing one
    problem, when I close the application using the close button. It
    disappears from the desktop but when I checked the TaskManager...It
    still running there. And using large CPU resource (around 50%).
    Does any one know the reason behind it?....I also tried to
    installing other AIR application (made by other users) but that
    application is closing correctly..

    You might set the flag:
    NativeApplication.nativeApplication.autoExit
    to false?
    Otherwise your app. should exit.
    -ted

  • How have a free thawte key for my Air application

    I want sign my air apps.how to do it??

    Hi,
    could you please clearify what you mean when you say "I want sign my air apps.how to do it??"
    what do you mean sign... are u trying to create signature for a certificate during pakaging of your application?
    if thats the case it depends on the type of framework you are using to compile your air application . Are you using Flex, Flash or Ajax to develop an AIR app?.
    or do you want to publish your application onto the adobe air market place?
    if thats the case you need to register as a publisher and add an offering.
    if its none of the above then i might have misunderstood what you are requesting...
    surf

  • Loading and modifying a SWF file within an AIR application

    I bet you get this question a lot, but I was wondering, if possible, anyone knows how to edit and save the changes to a SWF file loaded inside an AIR application?
    Thanks in advance!

    I'm sorry, but I happen to digress greatly with Michael's approach. I started using AIR  just yesterday ( 3 hours or so ), and I firmly believe in reinventing the wheel as a strong method of learning. Just to be clear, I do this on my own free time, so I have no need to worry about COGs, after all, I'm just learning. Otherwise, though it's a strong and great response if I were to build a somewhat bigger application, it's way too much more than the original scope of the application. It's like using a bazooka to kill ants . Regarding the scope of the application, it should support loading / writing of SWFs, and editing of XMLs for certain pre-defined entities. As I stated already, I am certain that I'd be able to do this in a very short span of time with another approach (more xmls, embedding assets directly to the SWF that loads the edited swf, etc.) It's more of a challenge to myself than anything else . I'm really grateful for all your help, so if you want, I can keep you up to date on how I deal with the issue.

  • CPU/memory usage of AIR application under Mac 10.4.10

    As my AIR application uses a lot of CPU/memory under Mac
    (seems better in Windows), I decide to do some basic testing. I
    create several applications with different level of complexities.
    Below is a table of CPU/memory usage when the application is simply
    sitting there. A brief description of the application can be found
    in the end of each line.
    Here are some results:
    [1] Even for an empty application, CPU usage is not zero
    (most non-AIR application has 0 CPU usage when doing nothing). Also
    the memory usage is huge, comparable to Finder on my computer.
    [2] Empty application has 7 threads running.
    [3] Indetermined progress bar costs a lot of CPU; and I guess
    any other animation costs a lot of CPU too. But if they are
    invisible they are fine.
    [4] running timer costs CPU.
    PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE
    VSIZE application
    10093 adl 1.8% 0:01.85 7 100 292 15.0M 13.8M+ 22.8M 444M
    empty
    10094 adl 1.9% 0:01.55 7 100 299 15.2M 14.0M+ 23.1M 444M
    label
    10097 adl 1.9% 0:01.48 7 100 302 15.3M 13.4M 23.7M 445M
    progress bar
    10095 adl 5.7% 0:02.40 7 100 302 15.4M- 13.2M 23.5M 445M
    progress bar (indetermined)
    10125 adl 15.9% 0:03.66 7 100 304 15.7M- 13.4M 23.9M 445M 5
    progress bar (indetermined)
    10126 adl 29.7% 0:10.39 7 100 325 16.7M+ 13.4M+ 24.9M+ 445M
    10 progress bar (indetermined)
    10128 adl 1.9% 0:01.34 7 100 324 16.1M 13.7M 24.3M 445M 10
    progress bar (indetermined), visible=false
    10136 adl 1.8% 0:00.76 7 100 323 16.5M+ 13.9M+ 24.7M- 450M
    Empty datagrid
    10147 adl 1.9% 0:01.60 7 101 328 16.1M 13.8M+ 24.5M- 447M
    TabNavigator with two empty VBox children
    10138 adl 1.8% 0:01.59 7 100 372 19.4M 13.9M 27.7M 453M
    datagrid with 10000 simple rows
    10131 adl 3.1% 0:02.38 7 110 348 25.7M 19.3M 34.8M 458M 10
    Empty native windows
    10143 adl 1.9% 0:00.99 7 100 296 15.1M 13.9M+ 23.2M- 444M
    Timer, delay = 100ms, calling an empty function
    10145 adl 4.1% 0:02.35 7 100 298 15.0M 14.0M+ 23.2M- 444M
    Timer, delay = 100ms, calling function update label position
    As to my own application, it's much bigger than these simple
    ones. The CPU usually stablizes to 20% and VSIZE is about 1G. There
    is no timer running. When I leave the application open for a few
    hours, the application will eventually freeze and I have to kill
    it.
    I am wondering if there are any articles or documents
    explaining AIR's CPU/memory usage. And also if AIR is planning to
    improve the performance in the next release.

    James, thank you for the very fast answer! I did various tests on the weekend on my computer and computer of my friend.
    And I can say, that Debug flag doesn't affect memory consumption.   They still eat memory. My steps to reproduce are as follows:
    (Windows 7 32 bit)
    Photoshop CS5:
    1) set HKEY_CURRENT_USER\Software\Adobe\CSXS2Preferences\PlayerDebugMode to 0
    2*) check HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\CSXS2Preferences (just in case)
    3) Compile HelloPhotoshop example to ZXP and install via  Extension manager
    4) restart computer
    5) Run Photoshop CS5 - Memory consumption: 100 096 KB
    6) Open HelloPhotoshop and close it 10 times
    7) Memory consumption: 155 840 - 5,574 MB per one close/open
    Maybe a garbage collector is expected to run and free this memory, but it never happened in my case. The memory pool was increasing to 1 GB when I was working with one of my panels - with no documents open in Photoshop
    In InDesign I tried the same thing with HelloInDesign ( I had to close the panel completely and then open with Window | Extensions | HelloInDesign)
    Memory consumption on start: 118 516
    Memory consumption after 10 open/close cycles: 197 516
    It's 7,9 MB per one close/open
    It's the simpliest panel test. When I'm using AIR libraries the memory usage is increasing a lot faster.

  • Display image in standalone AIR application

    I have loaded images and like to display image in standalone AIR application. But I cannot get it work. The code as follows:
    private function ImageLoader(url:String):void
    var request:URLRequest = new URLRequest(url);
    var loader:Loader = new Loader();
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderComplete);
    loader.load(request);    
    private function loaderComplete(event:Event):void
    var scaleFactor:Number = 1;
    var uic:UIComponent = new UIComponent();
    try
    var bmp:Bitmap = event.target.content as Bitmap;
    var bmd:BitmapData = bmp.bitmapData; //Bitmap(event.target.content).bitmapData;
    var scaledBMD:BitmapData = new BitmapData(400, 400);
    var matrix:Matrix = new Matrix();
    matrix.scale(scaleFactor, scaleFactor);
    scaledBMD.draw(bmd, matrix, null, null, null, true);
    uic.x = 40;
    uic.y = 40;
    uic.addChild(new Bitmap(scaledBMD));
    catch (errObject:Error)
    trace(errObject.message);

    Found answer by adding mx:Canvas and add
    iconCanvas.addChild(uic);
    after
    uic.addChild(new Bitmap(scaledBMD));
    <mx:Canvas id="iconCanvas" width="10" height="10" horizontalScrollPolicy="off" verticalScrollPolicy="off" x="0" y="0" clipContent="false"/>
    Is anyone create "Canvas" by using new Canvas and get it works? example:
    var canv:Canvas = new Canvas(...);

  • Is it possible to make an air application maximizable/non-maximizable programmatically at runtime?

    Is it possible to make an air application maximizable/non-maximizable programmatically at runtime?

    Sort of. Technically it's a NativeWindow which is maximizable or not, not the app itself. A NativeWindow is created as maximizable or not via NativeWindowInitOptions, and it can't be changed after it's created. Now, when you setup the "default content" window options with AIR, the runtime is basically creating the first window for you as a convenience, with those settings. However, there's nothing stopping you from making your initial content nothing more than a hidden window which will create a new window as maximizable or not. At this point, it would not be hard to re-create your main window with different maximizable values. (This is also how I implement multiple-instance/window apps, since only 1 AIR app can be running at a time.)
    Hope that helps!
    -Aaron

Maybe you are looking for

  • I update to os x 10.9.3 and now my dvd player app says it's not supported

    I updated to os x 10.9.3 mavericks and now my dvd player app says it can't be used with os x 10.9.3(and the dvd player is 5.4,and can't find update in app store) What to do?

  • Using Century Optics 16:9

    Hi, im using a Century Optics 16:9 adaptor. My question is would i edit it using a 16:9 preset or should i use a 16:9 preset in FCE. I started using a 16:9 preset vor importing and exporting but one of the problems i get is that when i adjust a seque

  • Need to find last time a table was used.

    I am in the process of cleaning out a group of staging tablespaces and I would appreciate some help finding the last time a table was used. (ie: records added, deleted, ect.) Is there an SQL statement that will do it? Any other suggestions? I will Ap

  • Datagram socket reads its own output?

    If I use a DatagramSocket to broadcast UDP packets, and also use the same DatagramSocket to try and read broadcasts from other hosts, it looks like I also end up reading back in all the packets that I broadcasted which creates a really messy situatio

  • Missing photo albums

    I have lost all the 2011 photo albums.  Are they available through photoshop backup?