air and sqlite - accumulation of results problem

Hello

I had problem with sqlite in air.

The problem is that sqlStmt.getResult () .data is collecting data from Select statements separate, when there are separate results. As in this example where I call the function "select" once and AFTER this result I call again with different query.

public void select(q:String):void {}

Conn.Open (DBFile);

sqlStmt.addEventListener (SQLEvent.RESULT, selectComplete);

sqlStmt.text = q;

sqlStmt.execute ();

}

private void selectComplete(e:SQLEvent):void {}

oSqlReturn = sqlStmt.getResult () .data;          It's here sqlStmt.getResult () .data remembers previous results and adds those current in the table.

Conn.Close ();                                                  but here sqlStmt.getResult () is null

sqlStmt.removeEventListener (SQLEvent.RESULT, selectComplete);

}

So after the second returns Select I'm .data (sqlStmt.getResult with results of the first and the second statement).

Maybe one of you had a similar problem and is able to help me with this.

Thanks for help. It is recommended to use different instances of SQLStatement. But it wasn't the case.

I changed to an asynchronious connection and I added SQLMode and now it works.

So instead of

Conn.Open (DBFile)

now, I got this:

conn.openAsync (dbFile, SQLMode.UPDATE);

So I think that the problem was because I was listening to events connect synchronious result.

Tags: Flex

Similar Questions

  • my laptop will not configure adobe air, I've uninstalled and reinstalled and still have the same problem

    my laptop will not configure adobe air, I've uninstalled and reinstalled and still have the same problem

    Hi David,

    1. what exactly happens when you try to configure Adobe Air?

    2. you receive all of the error codes or error messages?

    If the installation of AIR was very good and you are facing problems with the configuration, you may need to contact Adobe support for further assistance.

    Adobe support

  • I just downloaded Adobe XI on my macbook air, and now I can't save or print the PDF files. Don't let me do print - save as PDF, and if I do record as I get a message indicating that the file is corrupted. I had NO PROBLEMS of all do this several times unt

    I just downloaded Adobe XI on my macbook air, and now I can't save or print the PDF files. Don't let me do print - save as PDF, and if I do record as I get a message indicating that the file is corrupted. I had NO PROBLEMS of all do this several times until I downloaded the new version. I uninstalled and reinstalled it, nothing helps. I am super frustrated.

    lrfrustrated wrote:

    I just downloaded Adobe XI on my macbook air, and now I can't save or print the PDF files. Don't let me do print - save as PDF, and if I do record as I get a message indicating that the file is corrupted. I had NO PROBLEMS of all do this several times until I downloaded the new version. I uninstalled and reinstalled it, nothing helps. I am super frustrated.

    Print > save as PDF - use an excerpt (part of Mac OS X), so Adobe Reader should have no effect on that at all.

    As for the error "file corrupted", simply uninstall the Reader app will not affect it. Follow these steps:

    Mac/HD/Library/Internet Plug-ins

    Trash the files AdobePDFViewer.plugin and AdobePDFViewerNPAPI.plugin

    Mac HD/Applications

    Trash the application Adobe Reader

    [user] / Library/Preferences

    Trash the com.adobe.Reader.plist file

    To access the [user] / Library, hold down the 'Option' and click on 'Go' in the FInder menu.

    Mac HD/Library/Application Support/Adobe

    Trash the drive (full record)

    Empty the trash.

    Download the installer FULL here: http://get.adobe.com/reader/enterprise/

    Quit your browser, and then reinstall the drive.

    Run it from the Applications folder and agree to the license agreement.

    You should have no problem with Safari PDF files download.

    Unfortunately, ANY PDF file that says it is damaged.... You will need their trash.

  • I got a virus that affects my Firefox browser. It distorts Google, Y! and others and provides different search results. How can I fix it?

    By mistake, I downloaded a virus. It prohibits many Web sites and provide incorrect search results. I uninstalled Firefox and downloaded a new version, but the problem persists.

    Hello, please remove the extension named Addons engine 3.0.1 - it sounds rather unusual and perhaps malicious: disable or remove modules

  • Reboot and select good Boot Device problem - my PC does not start!

    Hi all

    Whenever I turn on my computer I get the message "Reboot and select proper boot device or Insert Boot Media in selected boot device and press a key.

    I checked the diagonistics material and these are the results:

    Test CPU-

    Hard drive: failure of the connection Test - Error Code: BIOHD1

    Memory - past

    I don't think that the issue is a faulty connection. My reason to believe so because I think that I had a virus on my computer (I was not able to confirm) I tried to delete the last time I was able to use the computer. Then I turned off the computer to restart, but unfortunately, that's when I got this error message.

    I had this problem once before (about 3 years ago) and I was not able to solve this problem, so I just stopped using the PC. Then one day my Dad turned on the computer (a few months later) and it worked all of a sudden.

    Anyone know what this problem is? How can I solve this problem?

    Any help is greatly appreciated! Thank you very much for your time and effort!

    Additional information:

    It was originally a windows 7 PC, but I have upgraded to windows 10, which is the current operating system.

    Product: HP p6620f

    I managed to start my PC again.

    I have unplugged all connections and left it that way for about 24 hours. Then I plugged everything back in and all of a sudden the PC worked again. I don't know if it will last, but right now it works.

    I'll write another post if something changes.

  • I have a new mac air and can not get the bookmark to be deleted in Safari.

    I have a new mac air and can not get the bookmark to be deleted in Safari.  It has default Favorites - I don't want to see them--when I right click and select Remove - I get this error message.

    You are using Safari with bookmarks, history, and imported passwords of Firefox. To change your Favorites, you must first keep or delete data from Firefox.

    When I click on "do not keep" nothing happens.

    Please, back up all data before proceeding.

    Triple-click anywhere in the line below on this page to select this option:

    ~/Library/Preferences/com.apple.Safari.plist

    A right click or Ctrl-click on the line and select

    Services ▹ reveal in Finder (or just to reveal)

    of the contextual menu.*, a file must open with a selected item. Quit the application runs. Move selected item to the office, leaving the window open. Restart the application and test. If there is no change, leave again and place the item you back where he was, crushing the that may have been created in its place. If not, remove the item you moved. If possible, restore from a backup prior to the problem.

    * If you do not see the item context menu copy the selected text in the Clipboard by pressing Control-C key combination. In the Finder, select

    Go ▹ go to the folder...

    from the menu bar and paste it into the box that opens by pressing command + V. You won't see what you pasted a newline being included. Press return.

  • I have a book and an Air and would like to keep in sync how can I do?

    I have a Macbook and Mac Air and you want to keep them in sync, how do I do it?

    Mail can be synchronized by storing it in an e-mail server that uses the IMAP protocol, like iCloud. Mail remains on the server, it is automatically synchronized with all e-mail clients.

    Documents and several other types of data can be synchronized via iCloud, such as calendars, contacts, photos, Safari tabs and bookmarks and passwords. iCloud is easy to use, for the most part. The disadvantages of its use are, firstly, that it synchronizes everything; and second, that some of your personal information will be potentially accessible to foreigners. Read the list features iCloud and privacy notice carefully before deciding if or how to use it. There should be no problem with iCloud Keychain Access privacy, because data is encrypted end-to-end and are not accessible to anyone at Apple - but of course, you have to take the word Apple for that.

    A more complete solution and one that does not raise issues of confidentiality, is set up an OS X Server on your network and create mobile accounts on your other Mac. You will then be able to synchronize all files in the home folder automatically disconnected, or at any other time manually. The main drawback here is that OS X Server would be difficult for non-technical users more to install and maintain. Another is that synchronization only works with the Mac, mobile no.

    Third-party software can also be used to sync files on a network. I don't have a specific recommendation. The software may not be easy to implement in a way that does not lead to conflicts when files are changed on the various devices between synchronizations. To synchronize more than two Mac in this way, you'll want to use it as the master and synchronization between her and the others.

  • I've recently updated to the latest version of the air and now itunes 'flashes' and I think that it corrupted an iPad?  Someone at - he seen this kind of behavior before?

    I've recently updated to the latest version of the air and now itunes 'flashes' and I think that it corrupted an iPad?  Someone at - he seen this kind of behavior before?

    When you have installed iTunes, and you download it from anywhere other than the Apple servers. There is a new version of the 12.3.2.35 installer that came out some time around 23/24, which can solve the problem for you. Download and install on your existing copy.

    TT2

  • When you save a file, a message that Ecore: notation and midi has encountered a problem and needs to close.

    Original title: print the problem

    I use Windows xp. and still 4.5 to write and play music.  "When I try to save my score I get a message:" Ecore: notation and midi has encountered a problem and needs to close. Please inform Microsoft problem.  We have created an error report that you can send us' I sent this report several times, but have had no response.  Can you please help.    Thank you very much.   R.Windmill

    Hi R.Windmill,

    Thanks for the reply with the status of the issue.

    I understand that you are unable to download the clean boot article, receive error message: access is denied.

    What browser do you use to download the article?

    If you use Internet Explorer, I suggest to reset Internet Explorer to default values and check if it helps.

    See this link:

    http://support.Microsoft.com/kb/923737

    NOTE: Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    Alongside this, perform method 2, 3 of the suggested method in the previous post and we will reply with the results.

  • Questions about the Extension of JavaScript and SQLite

    Hi all

    I worked with some my colleague on projects related to WebWorks applications, but there are technical issues that our developers want to know and seek professional advice.

    (1) extension JavaScript & PlayBook

    According to the literature, we know that BlackBerry WebWorks Application have the ability to integrate with data, characteristics and features of the development environment Java® underlying as well as the native phone smart BlackBerry® using special JavaScript® (Extension of JavaScript) objects. So, we should be able to create® for Java (JAR) libraries and program the WebWorks app for BlackBerry Java API to call in libraries. Now, we know that BlackBerry® PlayBook provide a SDK WebWorks (Beta) for us to develop apps for PlayBook WebWorks, also means that in the environment of the PlayBook we can also use the JavaScript Extension trick to call the Java API of BlackBerry?

    (2) SQLite on HTML5

    HTML5 standard offer of SQLite for us to store data in a SQLite database format. But the SQLite file seems limited only to be used in the Application of WebWorks. I wonder if there are ways we can read these file to another application (Application Java or other applications WebWorks) SQLite?

    In fact, what I want to know is the possibility of having a WebWorks Application capable of handling a SQLite file that is received from the server side on-the-fly, and then return the entire SQLite file to the server.

    It would be appreciated if some of you can give some tips about this, thank you.

    Wowzzz

    lasterra is right about these two points...

    We have not yet published the details on creating extensions in the AIR for WebWorks on PlayBook. We are currently working to finalize the open source on the WebWorks for PlayBook SDK so that we can download on github.  The complete source code for the platform will be available on github so that you can see what's going on under the hood.

    Creating extensions in the AIR for WebWorks is very different from Java. We started to use a new architecture that should be able to provide the URI and proceedings access to APIs and placing more procedural API code in JavaScript itself vs. the ScriptableObject Java code existing today.

    This new architecture will be a foretaste of the platform architecture WebWorks to proceed.

    It welcomes more details about creating extensions in the AIR... but currently the API underlying main platform on the BlackBerry PlayBook is AIR and the functionality of an extension will be limited to what is possible on the AIR platform and its extensions.

    In the development of the PlayBook options evolve, so too will be the architecture of the platform WebWorks... I can't really say much more than this now

  • Friend upgrade XP to windows 7. not authentic Windows message receipt. Buy Windows 7 and downloaded to "fix the problem".

    Friend upgrade XP to windows 7. not authentic Windows message receipt.  Buy Windows 7 and downloaded to "fix the problem". Computer crashed, but I got a new drive. Should I try install

    Hello

    So the Windows 7 machine is fine, but its also empty! That we can help you. The XP machine is another matter. If you want to upgrade these machines to Windows 7, and the minimum hardware requirement is met, you can buy discs of software of Windows 7 operating system for each machine (1 motherboard = 1 license for purchased software).

    In addition, I highly recommend you reformat two machines for them to XP RID completely, not to mention viruses / malware. If you plan to update the two XP machines with own versions of XP, that's fine, but this isn't the forum for this, the Windows XP forum would be the place, go here: http://answers.microsoft.com/en-us/windows/forum/windows_xp?tab=QnA .

    Thus, the machine to Windows 7. To take no chances. Allows to run several scans on the new machine. You said "didn't work any more", I suppose you can't start Windows, ways to correct? If so, the answer is a program you burn on a CD called BootMed; Download 64-bit here: http://download.cnet.com/BootMed-64Bit/3000-2094_4-75450831.html and the 32-bit version from here: http://download.cnet.com/BootMed/3000-2094_4-75448200.html (only use the Direct download link).

    Once downloaded, burn it to a CD, load this CD in Windows 7 computer and ensure that the CD drive is the first boot device, restart the computer. This will load a modified version of Ubuntu on your system, which includes antivirus and anti-malware programs. Run and remove anything they find. When they have finished their trial scans restarting the computer without the CD installed. What happens now?

    Post your results here and let me know how you fare.

    Kind regards

    BearPup

  • I reinstalled creative cloud and Dw after having a problem with Windows 10, but they do not work after restarting my computer. It's as if they are not installed

    I reinstalled creative cloud and Dw after having a problem with Windows 10 and I restored it to windows 7, but they do not work after restarting my computer. It's as if they are not installed.  I worked through all the steps without result troubleshooting.  Everyone experienced similar?

    Hi Trickstar777,

    Please follow the steps below:

    • Please check if you have installed browser security extensions, please disable them. (For example: AD BLOCK, Advisor to Mcafee website, toolbar of internet security etc.)
    • Disable the firewall on your machine.
    • Turn off the firewall of the security program installed on the computer Internet. (Norton 360 - disable the following in it: Surf safely, firewall, browser protection, download intelligence)

    These changes are temporary you can restore these changes back to normal once your creative cloud application is in place and functioning *.

    (1) uninstall Creative Cloud Desktop Manager:

    Using creative cloud | Uninstall the creative cloud desktop application

    (2) delete following folders: (if you do not see any folder skip this step)

    C:\Program Files (x 86) \Common Files\Adobe\OOBE

    C:\Program Files (x 86) \Common Files\Adobe\Adobe Application Manager

    C:\Program Files (x 86) \Adobe\Creative Cloud files

    C:\Users\\AppData\Local\Adobe\ MAA UPDATER and two OOBE (App data & Program Data is folder hidden please see, Show files and folders hidden in Windows 7, 8.x, 10, or Vista)

    \Adobe\ DONNÉES C:\Program rename SL-STORE like SL-STORE_OLD

    3 - Click on the link below and download Creative Cloud Installer file and use them to install the creative Cloud Desktop application.

    Download Adobe Creative cloud apps | Free trial of Adobe CC

    Let us know if that helps.

  • Soft Proofing and adjustment brush / Spot removal problems

    Hello

    Since the last update (at least I think) to 6.5 that I have a problem when soft proofing is turned on. In particular, the adjustment brush and the brush of spotting does not work smoothly. The first problem is that when you try to make smaller or larger brush (keyboard and Tablet) the brush shows the size have immediately brush outside the window or click on the image to see the size of the brush (brush of detachment and adjustment) and the cash withdrawal is very slow and if I want to spend the part I want to remove to make it better appearance it does not update immediately when moving. Also when using either the computer fans brush starts to kick in and work hard. Tried two GPUs and extinguish the same result. but as I turn soon soft proofing off the coast of the brushes as planned work and also the fans to stay out of

    so if someone has problems with these two brushes you might want to look into the option to see if Proofing is enabled

    I have not noticed this. However, I usually do all my withdrawal in cash without proofing turned on. Normally, the only thing I do when the soft proofing is set things like saturation, lights and shadows. Things that affect the overall appearance of printing based on the book that I use. What are the specifications of your computer? OS, RAM, etc.

  • I'm trying to download the trial version for Acrobat DC edit PDF files, but when download initializes, it gets to 11%, gets stuck, then gives the message "request from Web Get failed. I canceled, downloaded the installer again and got the same result.  I'

    I'm trying to download the trial version for Acrobat DC edit PDF files, but when download initializes, it gets to 11%, gets stuck, then gives the message "request from Web Get failed. I canceled, downloaded the installer again and got the same result.  I'm on a PC running Windows 8. Any suggestions?

    Hiddm93421458,

    Restart your system and then try again to install Acrobat Reader DC using this link Download Adobe Acrobat free trial | Acrobat Pro DC.

    Let me know if the problem persists.

    Kind regards

    Nicos

  • just upgraded to ch 2014, when using contact sheets and by adjusting the results of font sizes in the spacing between the images bigger and bigger while the size of police remains the same. See you soon,.

    upgrade to ch 2014, when using contact sheets and by adjusting the results of FontSize to spacing between the images grows while the font remains the same size.

    Someone at - it ideas on why this is happening.

    See you soon,.

    PAul

    Hi Paul,.

    There is a bug in the script that affects text attributes. We are now studying.

    In the meantime, xbytor updated the plug contact to work around the problem. You can find it here: ContactSheetX 2.1 released

    Kind regards

    Steve

Maybe you are looking for

  • Should I make a new Apple ID?

    A week ago my twitter has been hacked and I use the same email to my ID Apple and twitter. I changed my password on the Apple ID, just in case but you think it would be smart to just a new Apple ID?

  • Health app missing 'Steps' after update 9.2

    My 6s 9.2 upgrade iPhone software last night.  After the update, I noticed the health application no longer displays the graph "steps".  How can I get that back? I see that this had been a problem on the previous updates.  What I've tried so far doin

  • How to save an email my documents, such as an Office Word Document.

    Original title: how to save an email the My Documents folder, and as an Office Word Document AND so to BE ABLE to IPEN IT UP, I CAN'T OPEN THEIR PLACE, Please HELP ME. Can you tell me how to REGISTER my letters / Emails on my record and under a TAB D

  • My pc won't open windows 7

    I have a Compac Presario model # CQ5320F Windows 7 64 bit. My problem is that when I start my computer, it goes to a screen that displays the compac logo and it gives 4 options and when I select one of them, I get a BIOHD-2 error message. I do not ha

  • Windows updates downloading the critical updates and fails to install several times.

    Original title : Updates the Windows Updates downloads, but will not install one of them. No error code, just fails to install one of them... many, many times. It is a Dell Inspiron 1525 laptop. Windows updates downloading the critical updates, but w