Writing in the app-storage inside the worker directory

Hello

In my Adobe AIR (desktop) application, I wrote a class FileDownloader using insternally an instance of FileStream to write remote files in the application storage directory

The problem is that the user interface crashes during the download process (even if I open the local file asynchronously)

As a solution, I thought it might be a good idea to use a worker to download these files, but when I try to write to the directory of storage app of my worker thread

the worker, he writes in this folder: %appdata%\[Worker].null\Local Store

As you can see, app storage directory is inside this folder named ".null [worker]" instead of being in my true app-storage dir (named by my ID app)

A solution I found to write downloaded files in a tmp file, then, in the main Worker Thread, use moveToAsync to move the file to my app-storage directory, but it's not very clean... and moveToAsync takes time with large files...

Has anyone experienced this problem?

This is the normal behavior or is it a bug? I think that the worker should have the same app as application storage directory that integrate it (especially when you set giveAppPrivileges = true in the createWorker method)

Thank you

(and sorry for my English)

Hello

Having worked with several workers on my own project, I had the same behavior.

The solution I found was to set a property that is shared on the worker and the native path of the application.

So, on the key worker, you get the native path of applicationStorageDirectory and then set the property shared on the worker.

It will be useful.

Kind regards

Leo

Tags: Adobe AIR

Similar Questions

  • Change the working directory of the MathScript node in the working directory of the VI in which the node is added

    Hello

    I want to automatically change the working directory of the node Mathscript in a VI in the working directory of the VI, while I don't have to specify every time where is my file ".m", as most likely, it will be in the same folder as the VI.

    Thank you

    Walid F. van

    Hi Wade,

    The following picture illustrates how to add the directory to your VI to MathScript search paths.

  • Impossible to change the working directory

    I'm trying to change the working of a computer virtual directory so that snapshots are stored in a different data store.

    I used the following two articles for instruction:

    "Create snapshots in a different virtual directory default location"

    http://KB.VMware.com/selfservice/microsites/search.do?cmd=displayKC & docType = kc & docTypeID = DT_KB_1_1 & externalId = 1002929

    "Record or adding a virtual machine to inventory".

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 1006160

    I recorded my VM.  I added the following line to my .vmx:

    workingDir = "/ vmfs/volumes/4cb6d8b0-45f1b122-3a3a-d48564535eca/vm-snapshots.

    This has been copied directly from management.  The only thing I changed was the part of the path that identifies my data store.

    Note: I also tried to use 'vmsnapshots' to ensure that the hyphen was not my problem, but I got the same error message.

    I recorded my VM.  I have no problem adding the .vmx inventory.  When I right click on my VM and go change the settings > Options, the workplace of VM looks OK.  4cb6d8b0-45f1b122-3a3a-d48564535eca translated correctly to the identifier for the data store (it looks like this: [DL360G7DS1] vm-snapshots /).  I turned on my virtual computer.  I get the following error message:

    "This virtual machine cannot be turned on because its working directory is invalid. Use the configuration editor to define a valid working directory and then try again. »

    I didn't know if the "vm-pictures" directory would be created automatically or if I have to create it, so I tried both ways.  There is no space in my path name or a folder.  I had not changed anything else in my .vmx and when I remove the line workingDir, VM powers on without problem.

    There is a good chance I'm missing something simple here.  The path seems to be accepted and pointing in the right direction.  I don't know what I have to do to "vm-shots" to make it valid.  The instructions didn't about the requirements for this directory.

    Any advice would be greatly appreciated.  Please let me know if I does not provide enough information or if the rest of my .vmx file should be displayed.

    I would just put the hard in the home folder of the new virtual machine after I have it create?

    From what I understand so far, there is not enough free disk space on the data store "2MB" to host the virtual machine! If there is enough free space on the disk so you can just migrate the virtual machine in this data store using vCenter Server. If there is not enough disk space, you can create a new virtual machine on the data store "2MB" and leave the virtual disks on the data store '1 MB' for now. Just make sure that you document it (for example in the annotations of the virtual machine) If you don't accidentally delete the old folder with the the.vmdk file.

    André

  • Problem of CVI Working Directory

    I am runing a program compiled in the CVI 8.5 which gives me a random problem.

    The function GetDir (gExecFolder) does not return the same value all the time, which causes an error when accessing the files that do not have a full path.

    for example, MyFunction ("FileName.ext");

    The error is file not found.

    Please take a look at these 2 images showing the different outputs of the GetDir (gExecFolder).

    Good performance:

    Bad output:

    Note that I stopped running after this executed line.

    Thanks for your help.

    I personally resolved to set the paths to the extent possible, as the current working directory is not always constant throughout the life of the application. For example, it is changed when you browse the PC with FileSelectPopup or DirSelectPopup: I normally have a timer or a secondary thread that periodically records status running the disk while it is running even when the popup is on and I get errors for non-existent file in the working directory changed.

    An alternative to GetDir is to use GetProjectDir which returns the directory EXE (or PRJ) in all conditions.

  • File snapshot working directory / Suspend?

    I use Fusion 3.0 and I have one of my virtual machine stored on a NAS.  I have access to the content of the image of the virtual machine on the network.  When I suspend the virtual machine, I get the following warning:

    "The snapshot file / suspend is stored on a remote file system."  You will get better performance if you specify a directory on a local file system for this file. You can specify a directory for your snapshot file / suspend setting the working directory in the Virtual Machine configuration Options.  Click OK to continue, Cancel to abort. »

    However, I find no setting anywhere we will tell me the location of the file snapshot/suspend.  Can somone tell me where this setting is to?

    You can separate the VHD in management of VM files.  First of all, you should shut down your virtual machine and remove any instant assets via the Snapshot Manager to suspend the machine.  Go to Virtual Machines > settings and delete your virtual hard disk.  Merge you will be asked if you want to move the virtual disk in the trash, answer NO (or the disc may be removed).

    Then, open the package of virtual machine on your NAS and exit the virtual disks to a common location.  If the disc is in split format, you need to move all parties, for example disk.vmdk, s001.vmdk - disk, disk-s002, vmdk, and al. set.

    Return the rest of the VM package to your local Mac, i.e. Documents > Virtual Machines.  This should be a small, fast, copy before everything, including the .vmx virtual machine configuration file.  Open the package VM in Documents > Virtual Machine.  Go to the Virtual Machine > settings and add your virtual drive on the NAS with + (add the hard drive).  Use the open dialog box to locate the virtual disk on the NAS.  If requested, do not choose the option to copy the ramdisk (defeats the purpose), but the share of the choose option disc.

    In this configuration, your files of disruption/recovery will be local, but the virtual disk (99%) of the space of your VM's on the NAS.

  • Hi, I'm developing a simple mobile app in DW CC 2015 using JQuery Mobile. LIKE I need the list view with description of the product, functionality and image, I would like to connect with database instead of "writing" all the tables in the bearings inside

    Hi, I'm developing a simple mobile app in DW CC 2015 using JQuery Mobile. LIKE I need the list view with description of the product, functionality and image, I would like to connect with database instead of "writing" all the tables in the bearings inside the Jquery page. In the future I would also be able to add, to remove the DB records. Any help, tutorial... Thanks TG

    I would like to connect with the database instead of "writing" all the tables in the bearings inside the Jquery page

    This is usually done with a CMS (content management system). There are commercial products CMS like WordPress, Joomla and perch. You create one or several layouts and then create pages of these page layouts using the CMS. In this way, it is possible to have hundreds of pages, each with unique content, but a page layout that can be managed in a place of sharing.

    CMSs on shelf don't require programming skills. Otherwise, some of us write our own CMS with custom functions, but this requires back-end, as with PHP programming.

  • my browser cannot open google and facebook and other https sites that it does not open even the app store does not work, I tried to change my DNS google DNS and disable IPv6 but still no use, help PLZ!

    my browser cannot open google and facebook and other https sites that it does not open even the app store does not work, I tried to change my DNS google DNS and disable IPv6 but still no use, help PLZ!

    You may have installed one or more variants of the malware "VSearch' ad-injection. Please back up all data, and then take the steps below to disable it.

    Do not use any type of product, "anti-virus" or "anti-malware" on a Mac. It is never necessary for her, and relying on it for protection makes you more vulnerable to attacks, not less.

    Malware is constantly evolving to work around defenses against it. This procedure works now, I know. It will not work in the future. Anyone finding this comment a couple of days or more after it was published should look for a more recent discussion, or start a new one.

    Step 1

    VSearch malware tries to hide by varying names of the files it installs. It regenerates itself also if you try to remove it when it is run. To remove it, you must first start in safe mode temporarily disable the malware.

    Note: If FileVault is enabled in OS X 10.9 or an earlier version, or if a firmware password is defined, or if the boot volume is a software RAID, you can not do this. Ask for other instructions.

    Step 2

    When running in safe mode, load the web page and then triple - click on the line below to select. Copy the text to the Clipboard by pressing Control-C key combination:

    /Library/LaunchDaemons

    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.

    A folder named "LaunchDaemons" can open. If this is the case, press the combination of keys command-2 to select the display of the list, if it is not already selected.

    There should be a column in the update Finder window. Click this title two times to sort the content by date with the most recent at the top. Please don't skip this step. Files that belong to an instance of VSearch will have the same date of change for a few minutes, then they will be grouped together when you sort the folder this way, which makes them easy to identify.

    Step 3

    In the LaunchDaemons folder, there may be one or more files with the name of this form:

    com Apple.something.plist

    When something is a random string, without the letters, different in each case.

    Note that the name consists of four words separated by dots. Typical examples are:

    com Apple.builins.plist

    com Apple.cereng.plist

    com Apple.nysgar.plist

    There may be one or more items with a name of the form:

    com.something.plist

    Yet once something is a random string, without meaning - not necessarily the same as that which appears in one of the other file names.

    These names consist of three words separated by dots. Typical examples are:

    com.semifasciaUpd.plist

    com.ubuiling.plist

    Sometimes there are items (usually not more than one) with the name of this form:

    com.something .net - preferences.plist

    This name consists of four words (the third hyphen) separated by periods. Typical example:

    com.jangly .net - preferences.plist

    Drag all items in the basket. You may be prompted for administrator login password.

    Restart the computer and empty the trash.

    Examples of legitimate files located in the same folder:

    com.apple.FinalCutServer.fcsvr_ldsd.plist

    com Apple.Installer.osmessagetracing.plist

    com Apple.Qmaster.qmasterd.plist

    com Apple.aelwriter.plist

    com Apple.SERVERD.plist

    com Tether.plist

    The first three are clearly not VSearch files because the names do not match the above models. The last three are not easy to distinguish by the name alone, but the modification date will be earlier than the date at which VSearch has been installed, perhaps several years. None of these files will be present in most installations of Mac OS X.

    Do not delete the folder 'LaunchDaemons' or anything else inside, unless you know you have another type of unwanted software and more VSearch. The file is a normal part of Mac OS X. The "demon" refers to a program that starts automatically. This is not inherently bad, but the mechanism is sometimes exploited by hackers for malicious software.

    If you are not sure whether a file is part of the malware, order the contents of the folder by date modified I wrote in step 2, no name. Malicious files will be grouped together. There could be more than one such group, if you attacked more than once. A file dated far in the past is not part of the malware. A folder in date dated Middle an obviously malicious cluster is almost certainly too malicious.

    If the files come back after you remove the, they are replaced by others with similar names, then either you didn't start in safe mode or you do not have all the. Return to step 1 and try again.

    Step 4

    Reset the home page in each of your browsers, if it has been modified. In Safari, first load the desired home page, then select

    ▹ Safari preferences... ▹ General

    and click on

    Set on the current Page

    If you use Firefox or Chrome web browser, remove the extensions or add-ons that you don't know that you need. When in doubt, remove all of them.

    The malware is now permanently inactivated, as long as you reinstall it never. A few small files will be left behind, but they have no effect, and trying to find all them is more trouble that it's worth.

    Step 5

    The malware lets the web proxy discovery in the network settings. If you know that the setting was already enabled for a reason, skip this step. Otherwise, you should undo the change.

    Open the network pane in system preferences. If there is a padlock icon in the lower left corner of the window, click it and authenticate to unlock the settings. Click the Advanced button, and then select Proxies in the sheet that drops down. Uncheck that Auto Discovery Proxy if it is checked. Click OK, and then apply.

    Step 6

    This step is optional. Open the users and groups in the system preferences and click on the lock icon to unlock the settings. In the list of users, there may be some with random names that have been added by the malware. You can remove these users. If you are not sure whether a user is legitimate, do not delete it.

  • navigateToURL, app / app-storage dirs: what's the problem?

    I am using flash.net.navigateToURL to open the browser to display an HTML file located in the application directory (or the application storage directory, if necessary). None of the following two approaches work...

    // (1)
        var target:File = File.applicationDirectory.resolvePath(filename);
        navigateToURL(new URLRequest(target.url));
    // (2)
        var target:File = File.applicationStorageDirectory.resolvePath(filename);
        navigateToURL(new URLRequest(target.url));
    

    The PlayBook browser is opened, the HTML content is not displayed, but the following error message is:

    "This file could not be opened. Make sure you have the proper permissions and try again. »

    (Http:// URL works fine, but I was not able to get local files in the directories of the app or app-storage to work according to the approach above, or by using the path native discrimination, etc.).

    Any ideas, or operating code? (I'm running OS 2.0.1.358, BTW.)

    The error message says it all...

    The PlayBook, the apps are sandboxed. An application cannot access an another apps files. The browser is an application too. He cannot access the files in the private area of your application. This would have caused all sorts of security issues.

    Solutions: either copy your HTML in a public folder somewhere, or incorporate a StageWebView into your application and load the page in this.

  • Get a permissions error while trying to open Adobe illustrator "to work properly, Adobe Illustrator requires the permission of folder preferences to" reading / writing ".» The current permission setting is incorrectly set to "read only".

    Get a permissions error while trying to open Adobe illustrator "to work properly, Adobe Illustrator requires the permission of folder preferences to" reading / writing ".» The current permission setting is incorrectly set to "read only".

    I put permissions in the preferences and on hard drive - the same error.

    What is a current version of CC (CC2015.2.1) or an earlier version. Your best bet may be uninstalled, run the cleanup tool (Google it) and reinstall.

  • I just tried to install the Adobe Creative Cloud trail and the apps tab does not work and I tried to uninstall several times and nothing. Any suggestions?

    I just tried to install the Adobe Creative Cloud trail and the apps tab does not work and I tried to uninstall several times and nothing. Any suggestions?

    An error keeps poping up on creative cloud without work and it's really annoying that I can't use it anymore or even try anything at all.

    Help, please

    Using creative cloud | Download error in the applications tab of Creative Cloud Desktop Application

  • Some time ago I bought Photoshop Elements in the apple App Store. I worked well. Now, if I try to start the application I get the message "Please do not run this application within this application package. On the other hand, it please launch Adobe Photos

    Some time ago I bought Photoshop Elements in the apple App Store. I worked well. Now, if I try to start the application I get the message "Please do not run this application within this application package. "Instead, please run Adobe Photoshop elements 13 of your Application folder. I tried this but it does not work. What to do to run the program?

    Follow these steps, Editor does not start | Mac App Store version

  • I have upgraded to Windows 10 64 Pro and all my apps Adobe has stopped working; I get the popular "MSVCP110.dll is missing" issue; I uninstalled everything, including the creative cloud, rebooted the PC and installed it back again! Same thing! I tried thi

    I have upgraded to Windows 10 64 Pro and all my apps Adobe has stopped working; I get the popular "MSVCP110.dll is missing" issue; I uninstalled everything, including the creative cloud, rebooted the PC and installed it back again! Same thing! I tried this several times. I'm really stuck! Can someone help with how this is solved; I follow online (two solutions) and tried both; not good! No matter what I do, I get the error! The rest of the applications say they are absent from the other files like this; It seems that there is something to do during the installation that keeps this issue alive!

    Run the command to check the file system once:

    https://support.Microsoft.com/en-in/KB/929833

    Also repair Microsoft Redistributable packages from the control panel > programs and features.

    If not installed, download and install the Visual C++ 2013 package.

    Let me know if you need more assistance.

  • Hi my creative cloud App tabs is not working means the loading of spent 2 hrs

    Hi my creative cloud App tabs is not working means the loading of spent 2 hrs

    Hello

    I think you found the turning wheel on the Adobe CC application.

    Please check the help below document:

    Does not open App | Wheels of progress turn continuously

    You can also view the nets below where this issue has been addressed:

    Adobe Creative Cloud / Desktop App / Home Screen: constant spinning wheel

    Creative Cloud Desktop App taped blue spinning wheel after update.

    Kind regards

    Sheena

  • Hello. I do not understand what that error for Adobe Illustrator and Adobe Muse creative cloud products: I open the app and they are closed today. In the writing of Muse: app error #1009 in Illustrator just closed.

    Hello. I do not understand what that error for Adobe Illustrator and Adobe Muse creative cloud products: I open the app and they are closed today. In the writing of Muse: app error #1009 in Illustrator just closed.

    Please check:

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    Adobe Flash Player Error #1009 Windows 8.1

    TypeError: Error #1009

    Flash Player ' TypeError: Error #1009: cannot access one - Microsoft Community

    It seems to be an error in the Flash Player rather than illustrator.

    Concerning

    Stéphane

  • How can I hide/remove the work in mode column list of Videos at home?

    I just upgraded to El Capitan, and with it comes iTunes 12.  I loaded a few videos in my iTunes library I see the list of home videos view includes a column for 'Work' which doesn't seem to have a way to remove it (i.e., it is not in the list of questions for the customization of view column).  There is also no option to "Hide the work" under the menu bar show the item.  I don't want to see this 'work' (especially since it's some random frame of the video, which gives zero information!)

    Seen this work (even at the "small" setting) really expands my quite large list of videos needs space.  I want to turn it off.  But how? ! ?

    Thank you.

    I'm confused.

    KERIAH wrote:

    As I loaded some videos in my iTunes library...

    I don't know what that means «videos»  Then later you refer to 'videos' which confuses me even more.

    I don't see any category in the iTunes menu' called «Vidéo»  In my view, these are all categories:

    In addition, if 'home video' means something like an iPhone or iPad-production video, don't manipulate you in the app Photos?

Maybe you are looking for

  • Free up ram memory

    Hello my MAC started to slow down a lot and sometimes appears a warning window telling me that there is no more memory, so I have to close some applications. The problem is that I just safari and finder, what is the problem? Thanks in advance

  • Satellite L500-1GE - cannot use hotkeys

    Hello everyone!I'm Tibor of Hungary. I'm not a big forum user, but now I need a little help. I have a Satellite L500-1GE and I use Windows 7 ultimate (64 bit). My problem is the following:I can't use shortcut keys (FN + F1... 9 buttons) and so I can

  • Message States remove hardware safely

    In the toolbar, background and on the right there is a checkbox go over it and he says "probably delete material. What is this message? I have never seen this? Help, please!  I'm not irritable Lorrie Miller E-mail address is removed from the privacy

  • 64 OR 32

    IT IS ALWAYS ADVISABLE TO USE WINDOWS 7 64-BIT WITH MY 1 GIG OF RAM SUPPORT WITH ONLINE GAMES

  • Error Nr: 0X8024400A does not update. SP3 required to solve the problem, but can not download through updates.

    Error Nr: 0X8024400A Updates will not be updated. Microsoft said SP3 required to solve the problem "update", but cannot download SP3 as "updates" do not work. Does anyone have a solution?  * E-mail address is removed from the privacy * drop me a line