iOS 8 - FileStream throwing error 2038 on open for write?

Hey all,.

Through iOS compatibility 8 checks with our Adobe AIR application (tested with AIR 13 and 14 of the AIR), I notice changes to the file storage.

In short, my code has always been so to simply store a player profile file (correspondence documentation iOS for FAS as I know: File System Programming Guide: basics of file system). And it worked well to avoid the purges when the unit is low on storage as well as data maintaining it during the update of the app.

This code doesn't seem to work for iOS 4 iOS 7:

var storagePath:File = new File(File.applicationDirectory.nativePath + "/\.\./Documents");

try
{
     var targetFile:File = storagePath.resolvePath("profile.bin");
     var stream:FileStream = new FileStream();
     stream.open(targetFile, FileMode.WRITE);
     stream.writeBytes(<byteArray here>, 0, 0);
     stream.close();
}
catch (err:Error)
{
     <informs user something went wrong, retries, etc. basic error handling>
}

This running on iOS 8 will always throw a SecurityError (#2038) of stream.open.

Now, we can still save the data and solve this problem by replacing the first line by:

var storagePath:File = new File(File.applicationStorageDirectory.nativePath);

But it leaves me with a few things, in descending order of importance:

(1) reading something like that scares me because our game has a large amount of daily players: 'I use applicationStorageDirectory to store files. The problem is that these files are deleted when the user updates his approx... " (AIR App Apple data storage directives compliance, last comment)

(2) what has changed in the iOS file system 8 which my original code suddenly fails? Apple Developer documentation is still describing this must be valid. Is this a possible AIR bug?

(3) I guess I need to define indicators of "do not backup" on registration to the appStorageDir files?

(4) is anyone else running into this?

Thanks in advance!

Does make a difference if you replace:

var storagePath:File = new File (File.applicationDirectory.nativePath + "/ \.\./Documents");

with:

var storagePath:File = File.documentsDirectory;

??

You should really use File.documentsDirectory and not this hypothesis on foot of a relative path to File.applicationDirectory anyway.

Tags: Adobe AIR

Similar Questions

  • QuickTime gives error - 2048 when opening for mht files

    When you try to open a .mht file, "error - 2048: could not open the .mht file because it is not a QuickTime file.»

    This just started happening in the last week.  Any suggestions on how to fix?  I'm not finding anything.

    As you can see in the next document in Apple...
    . MHT is not a supported format.

    Media formats supported by QuickTime Player
    http://support.Apple.com/kb/HT3775

    Maybe the file association for. MHT has been
    accidentally changed.

    I would say... Right-click the. A MHT file... and
    choose... Open with / Internet Explorer.

    The following link might be worth a visit:

    . MHT file extension
    http://www.FileInfo.com/extension/mht

  • Two updates - for "SQL Server 2005 Service Pack 3 'and 'Power Poin 2007", throwing errors when installing Code FF Code 80070663

    Original title: two updates - for "SQL Server 2005 Service Pack 3 'and 'Power Poin 2007", throwing errors during installation

    For several months, one day each on ' Windows Vista Bussiness "and"MS Office Professional 2007' install.

    Relevant updates are:-

    1 security Update for SQL Server 2005 Service Pack 3 (KB2494113)

    2 update for Microsoft Office PowerPoint 2007 (KB2535818)

    The lifted message when the update is "patch installer has stopped working".

    Finally, the "errors:" are: -.

    Code FF  Windows Update has encountered an unknown error

    Code 80070663  Windows Update has encountered an unknown error

    I tried nmerous solutions suggested on the forums but nothing helped.

    Please suggest what you please!

    Hello

    Have what troubleshooting steps you tried?

    Answer to the above question could help us by providing the best troubleshooting steps.
    However, visit the link below to download and install the update of security for Microsoft Office PowerPoint 2007 (KB2535818) update.
    http://www.Microsoft.com/download/en/details.aspx?ID=24723

  • ALTER database open resetlogs throw error

    Hi all

    My db version is 10.2.0.4

    Trying to open the database

    ALTER database open resetlogs throws error like

    ORA-04098: trigger ' APPS. LOGON_TRGR' is invalid and does not re-validation

    suggestion?

    Thank you
    Baskar.l

    Unresolved questions 45 / 48?

  • Error # 2038

    After the purchase and download an ebook from BooksonBoard, I get on the msg

    "License to make mistake.

    Split the E_ADEPT_IO of communication problem.

    and he kept trying to re-download again and no there not even not open the ebook.

    Try to add the downloaded in the continuous \restore\books record book to give the message-

    "Open local file - Error # 2038 i/o error."

    Can anyone help please?

    Am really very frustrated and disappointed with Adobe! as usual, any DRMed or other detritus player assistance, does not as usual! My $ 30 would have been much better spent on order from Amazon!

    Now I stick to the format MS and seldomly!

    The error message you receive goes along with a few questions that may occur - have seen us it and were able to recreate on a compuiter - he troubleshoot and resolve the problem

    (1) generally when you receive this error message, you can check the following points:

    Open the My Documents / My Digital Editions directory - click on the 'Restore' folder - open the TASK folder and delete items "pending" tasks.

    Open the My Documents / My Digital Editions directory - click on the 'Restore' folder - folder FAIL and delete items "pending" tasks.

    (2) make sure that you have not a Proxy Server / Firewall or anti-virus application put an end to your computer to communicate with the Internet - it's one of the big problems - when you try to download - if the machine does not complete ' URLLINK' file which is the central element loaded down to your machine - so that the book can not open - where your error IOAdept - 2038.

    (3) If you are clicking on 'Open' on the document for download and the software Adobe Digital Editions does not open the file - try to fill out a 'SAVE' to the My Digital Editions directory - this will place the 'URLLINK' in the folder - once the item is downloaded - open the My Digital Editions folder and right-click on the URLLINK - choose "OPEN WITH" - Adobe Digital Editions. , you will need to give it a minute or two in most of the cases that the document opens immediately and can be used from there, on the without any problem.

    Hope this helps, if not I'll keep my eyes on and see if we run into any other problems with this same error message.

  • SE error message cannot open the XPCOM and impossible to open ALL pages

    After loading the updates, I get this error "Couldn't OPEN XCOM" I can't open any programs or emails, does not open Firefox or IE. Have tried the system restore several times without a bit of luck, even that properly ends, begins to tear my hair out now.

    You should not need to use windows, set up of the disks.

    You only need to remove the Firefox program folder to make sure that all files are removed before installig a freshly downloaded version of the Firefox installer.

  • I just tried to update Firefox to version 9.0.1. Extract of 13%, and then I got an error message cannot open output file. Can you help me please?

    I just tried to update Firefox to version 9.0.1. Extract of 13%, and then I got the error message cannot open output file.

    The file can be uploaded incorrectly. Could you it redownload again from http://getfirefox.com?

  • Question of TrueSuite of fingerprint - error: could not open impression fingerprint sensor

    Hello

    A few days ago my TrueSuite reinstalled himself and then asked to restart the computer, which I did. But things, when I turned on the computer laptop back to reboot, TrueSuite will have to reboot again. This happened a few times, so I reset the laptop to a system restore point, I had created a few days ago.

    This deleted all my fingerprints, which I don't mind, but when I go to re-register my fingerprints, it says: "error: could not open impression fingerprint sensor.»

    PLEASE HELP ME WITH THIS!

    Thank you.

    See European driver of Toshiba for the most recent software TrueSuite to fingerprints.
    Remove your old software of fingerprint of the computer and reinstall the new software downloaded from the site driver of Toshiba.

    Then set it up again, create fingerprints and take advantage of the laptop.

  • TypeError: EM.addUpdateListener is not a function I get this error eveytime I open FF

    TypeError: EM.addUpdateListener is not a function I get this error everytime I open FF I have to click ok every time that has happened before so I took but FF gave him another chance and still the same error

    This has happened

    Each time Firefox opened

    Is immediately

    You have or had an installed extension (MegaUpload toolbar) that changed the user agent of Firefox/3.6.6 Firefox/2.0.0.11.

    You can see the version of Firefox at the top and at the bottom of the window user agent "help > About" (Mac: Firefox > Mozilla Firefox).
    You check (compare), which Web sites: http://whatsmyuseragent.com/ - Whats My User Agent?

    You can check the general.useragent preferences on the topic: config page.
    You can open the topic: config page through the address bar just like you open a Web site.
    Filter: general.useragent
    If general.useragent prefs are "BOLD" (user set), then you can right-click in the prefs and choose reset.

    See also http://kb.mozillazine.org/about:config

  • When I try to install Firefox, I get an error "could not open the output file. I used Firefox before and it doesn't work anymore, so I uninstalled. Cannot re - install now.

    When I try to install Firefox, I get an error "could not open the output file. I used Firefox before and it doesn't work anymore, so I uninstalled. Cannot re - install now.

    This has happened

    Each time Firefox opened

    I tried to download firefox.

    User Agent

    Mozilla/4.0 (compatible; INTERNET EXPLORER 6.0; Windows NT 5.1; SV1; AntivirXP08; GTB6.3; .NET CLR 2.0.50727; MS - RTC LM 8)

    When you click on the download link on GetFirefox.com, you should be asked if you want to run or save the file. If this situation occurs when you try to run the download, try instead to record and put the file on your desktop or in a similar place, where you are certain that you can find.

    When the download is complete, try double-clicking on the downloaded file in the normal Windows Explorer (browse your way to the file from the desktop). This should start the installation.

    If, in the Explorer window, you notice that the file seems to be missing the Firefox icon orange/blue, right click the file and select Properties. The image should look like the attached picture (except that mine is in Danish, but that is irrelevant) if saved correctly - if it don't look like this, would you please describe the content or attach a screenshot of the box. Especially what it says under "File Type" - it must be 'program '. If this isn't the case, will have to focus on what could be the problem here.

    A bit off-topic, your Internet Explorer seems to be quite a bit outdated (IE 6, where the current version is IE 8), so I highly recommend that you try to run Windows Update to get your system up to date. Is it as a society (such as a thin client Terminal Server computer) system, this is not possible, and most likely, your system administrator will have to help you.

  • Satellite U405 - S2833 Fingerprint error: could not open the sensor

    Hello, I am very new to the forums so I apologize in advance if I don't give all the necessary accurate information in this thread.

    I have a Toshiba U405-S2833 and it came with the TrueSuite Access Fingerprint Software.

    I downloaded an update a few days ago, but I don't remember if it's for Vista or Toshiba. Since then, my fingerprints were all removed from the system, and when I try re - save, I get this error message "error: could not open the sensor" I can't find the material to fix the sensor manually without going through the TrueSuite software.

    Any help would be greatly appreciated.
    Thanks in advance

    I am also having the same problem.

    My boss uses a Satellite U405-2628 fingerprinting and with the sensor TrueSuite Access Manager. It worked fine, then I updated windows and it has stopped working. I was on the updates and noticed an update of TrueSuite and thought that maybe that was messed up things.

    Then there were other issues that went past me locked out of the machine (anti-virus and loss of relationship with the field... also my fault). So I decided to wipe the machine and install fresh Vista.

    I installed everything but the TrueSuite software still not able to open the sensor. After hitting my head on it, I decided enough was enough and I restored it using Toshiba recovery disks.

    It took a few hours and here I am logged in as administrator and the TrueSuite software still cannot open the sensor. I don't know what I can do, since it is to return to the factory settings.

    As the above poster said, HELP!

    Thank you.

    ... a little later...

    Well, I managed to do work, and this can be useful for some people out there since I found no easy answers. I can't guarantee anything, and it's really complicated... so here go us.

    First, I downloaded the latest update from Toshiba (util_fingerprint_27460A.exe) and nothing has worked.
    Then I uninstalled the sensor since (click right, uninstalled) Device Manager to uninstall the driver as well (it should invite you to do so)
    Then, still in the Device Manager, I scanned for new hardware and it came with my sensor. I said to look for drivers and when he could not find, I think it gave me an option for windows search for an answer... or something like that. He came back with a link to Authentec (www.authentec.com/win7update/w7wbf32.exe, I think). So I downloaded that and installed. He rose through the device under "Biometric devices" then before... I think it's under the "Personall security device" or something like that. But alas, still no luck. So I uninstalled all the device from the Device Manager (taking care of uninstalling the driver as well) and of the TrueSuite software. Then came the break I was looking for.

    Online research I came across this page... http://members.driverguide.com/driver/detail.php?action=download&driverid=1194755. I had the chance before to DriverGuide.com so I thought what the heck. It is a driver of HP for the same sensor and it is dated 2006. So I downloaded and installed. Still nothing...

    Disgusted, I thought, well let's try to install util_fingerprint_27460A.exe on top of that. So I did, restarted and I couldn't believe my eyes when he said to connect and register fingerprints not seriously. And so I did. I hope this helps people, I don't really know how the sensor I so messed up, but I'm glad it worked.

    Yet one thing... and this may be important. When I took TrueSuite first after doing all this, he told me that the storage of fingerprints was full... or something in that sense. So I clicked the button remove all traces of fingers button and it I would like to register my fingerprints. I'm starting to wonder if that was all I had to do in the first place... Guess I'll never know.

    Good luck.

    Post edited by: rewind22x

  • My iCloud and shared calendars has stopped working in MS Outlook today.  They worked yesterday.  Now, I get the error message "cannot open this series of records.  The information store cannot be opened?  I tried the fix standard support.

    My iCloud and shared calendars has stopped working in MS Outlook today.  They worked yesterday.  Now, I get the error message "cannot open this series of records.  The information store cannot be opened?  I tried the fix standard support.

    Same thing here.  Looks like Windows did an automatic update during the night, and now nothing iCloud associated work (calendars, contacts, etc.)

    I also noticed that the error message: "could not load file or Assembly ' MOM." Implementation ' or one of its dependencies.  The system cannot find the specified file. "It started after restarting the Windows Update as well.  I imagine that the two are related in the same problem to iCloud.

  • I can't change my ringtone (default) open for ringtones that I bought on the iTunes store. iOS 9.2. U CN understand? Thank you

    I can't change my ringtone (default) open for ringtones that I bought on the iTunes store. iOS 9.2. U CN understand? Thank you

    Hi go to settings - sounds - ringtones if the one, s you purchased are

    Not on the list, go to restoretones.apple.com

    See you soon

    Brian

  • fatal error C1083: cannot open include file: 'NiVisaComponent.h': no such file or directory

    I found the error of => niincludes.h (18) : fatal error C1083: cannot open include file: 'NiVisaComponent.h': no such file or directory

    I checked a few path, "C:\Program Files (x 86) \National Instruments\MeasurementStudioVS2005\VCNET\Include.
    I found a lot of files, but only does not NiVisaComponent.h, anyone know how to download or is this file has changed the name?

    I already install the driver NI-VISA v15.0 but still does not have this file.

    I have not "C:\Program NIUninstaller Instruments\MeasurementStudioVS2005\VCNET\Include" because my laptop is 64-bit.

    Hello

    If you see the file Readme VISA 15, you'll see that Visual Studio 2005 is not supported. It seems that the most recent version of VISA that supports VS 2005 is Version 5.2 for c# / VB.NET and 5.0.2 for MFC C++ (with Measurement Studio 2009).

  • Error 6 TDMS Open to PDM

    Hello

    I have an application that uses the TDMS VI to generate a log file.

    The application ran successfully for 12 days. (Each errors and some settings - hourly - has been correctly written in my TDMS file).

    Then, the following error has occurred:

    Error 6 TDMS Open to TDMS - write data Subvi V1.5.vi MULTIMETER D2XX V1.2.vi->

    Possible reasons:

    LabVIEW: File generic i/o error.

    =========================

    NOR-488: IO abandoned operation.

    I join my VI who manage the TDMS files.

    The error seems to come from the "OPEN TDMS" VI. The corresponding TDMS file is actually at the location specified, and its content is OK (all the news expected are present). The file is called LogFile_0_1.TDMS.

    Depending on the size of PDM, the application automatically creates a new file. I tried to force to get a new PDM from the file (assuming that the current file has been altered or blocked). A new TDMS file was created (LogFile_0_2.TDMS), but only the first tab (root) was created. Then, the same 'error 6' was still there, exactly as before.

    Don't you think that this problem can come from Windows?

    Or is it my application? This is not optimal, it is that this "TDMS - write data Subvi V1.2.vi" is called on every second and the function "OPEN TDMS" is called unconditionally (even if no changes on the TDMS file are required).

    How to explain that this bug appears after about 12 days only?

    I'll also the LogFile_0_1.TDMS that I have converted to Excel and the LogFile_0_2.TDMS file that was not created correctly.

    Thanks in advance for your support.

    Michael

    My guess is that you forgot to close the PDM file and whenever your VI is called a reference is created.

    It could be that after a week has reached the maximum possible number of references, and you got the error.

    Kind regards

    Marco

Maybe you are looking for

  • How do I replace the DVD player in a Tecra A5

    Hello Does anyone have the details on how to replace the DVD drive in a laptop Toshiba Tecra A5?I tried to find a service manual but not had any luck.Please can someone help? Thank you

  • Driver for HP Color LaserJet MFP Pro M PCL 6

    64-bit driver for HP Color LaserJet Pro MFP M477 PCL 6: I have one of these printers, which is able to print double-sided automatically.  The new driver (64-bit) will not accept when I switched to a new laptop, manual duplex printing.  Does anyone el

  • Transfer of software XP on new hardware

    If my version of XP is an OEM version, is there a way I can transfer to a new laptop?  I retired it came with the original equipment.

  • metro tiles does not work although they pan and are very dark

    Hi just received a pavilion with radeon amd metro tiles work well some jerks and are very dark can't see the characters on the screen on some of the tiles How to correct?

  • Blue error screen locale ID: 2057

    Bluescreening most of the day now - where can I fix? 6.0.6002.2.2.0.256.6 OS version 2057 locale ID BCCode: 1000008eBCP1: C0000005BCP2: 8743551CBCP3: B1AA6BECBCP4: 00000000 6_0_6002 OS versionService Pack 2_0Product 256_1 Any help gratefully received