Why StorageFolder.CreateFileAsync(String) creates file fail without any exception thrown?

I need to develop a windows phone store app to test file system. And I use
StorageFolder.CreateFileAsync to create a file on ApplicationData.Current.LocalFolder path and write
1MB text content, and read it, modify it, and re-write it. But after about 5000 times write/read.I found that the applicaition blocked at
StorageFolder.CreateFileAsync through a test method of log. However, there isn't any exception thrown. Why did the
StorageFolder.CreateFileAsync  fail? And how to solve this problem? We need to write/read about 150000 times.

Hi jinchanglin,
Have you ever tried with profiling the app while debug the app,
Analyze app performance and
Analyze memory usage (VB, C#, C++)
Is it possible that CPU or memory usage reach to the limitation as you need execute the same code with nearly 150,000 times. Also you mentioned, 5000 times is ok, personally I think the code is fine, but you may need to care more about performance behavior.
As I know if you are working with a Phone device, there is some limitation for memory usage, you cannot let your app use more memory set than that value, try to find the limitation from
AppMemoryUsageLimit | appMemoryUsageLimit property
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

Similar Messages

  • StorageFile.DeleteAsync() delete file fail without any exception sometimes.

    I develop a test tool to Write a file, then delete it, over and over again.
    Using "await StorageFile.DeleteAsync()" to delete file , sometimes, it run successfully without any exception, but the file to be deleted wasn't deleted as expect. Why the API " StorageFile.DeleteAsync" doesn't work?
    Thanks.

    Hello,
    Code is as this:
     private async void SDCardFile(String basename)
                while (true)
                    if (this.isStop)
                        return;
                    Boolean isWirteSuc = await WriteSDCardFile(fileName, writeText);//writefile
                    if (isWirteSuc)
                    else
                    Boolean isDeleteSuc = await DeleteSDCardFile(fileName);  //deletefile
                    if (isDeleteSuc )
                    else
     private async Task<bool> DeleteSDCardFile(String filename)
                try
                    StorageFolder externalDevices = KnownFolders.RemovableDevices;
                    StorageFolder sdCard = (await externalDevices.GetFoldersAsync()).FirstOrDefault();
                    StorageFile storageFile = await sdCard.CreateFileAsync(filename, CreationCollisionOption.OpenIfExists);
                    await storageFile.DeleteAsync();
                    return true;
                catch (Exception ex)
                    return false;
    I use a timer to stop the test after 12 hours, during this test, most of the file delete success, but some failed, it still return "true"  from "DeleteSDCardFile(String filename)", so there is no exception, but the file is not deleted,
    I can find these files on SD card.
    Look forward to your answer, thanks for your comments.

  • Publishing of the translation for an Iview fails without any notice

    We face the followoing problem with an custom IView in SAP portal:
    The publishing of the translation for an Iview fails without any notice it only works directly after the IView was deployed.
    The translation is done by first generating the translation data then translating to the several languages, marking the data as translated. After that the translation is published via the Translation Worklist Coordination.
    All is done in the Portal under Contenet-Administration->Portal Content Translation, Translation Worklist Coordination and Worklist Translation
    The publishing works directly after deployment of an iView but if one tries to retranslate the translation is saved in the repository but not published. If we delete the translation Worklist and start over again the translations that are not published are still in the generated data but still we can’t publish them.
    There is no Information that the publication failed or anything. In the Worklist it just goes back to normal state where we can again generate the translation data.
    The Iview is a Java IView for the translation a properties file was created and all the words from properties file show up in the generated data from the Worklist.
    We could deploy the Iview every time the translation needs to be changed but the customer wants to do the translation without that step.
    We use the following Versions:
    Sap Portal nw2004s
    sap.com/SAP-JEECOR 7.00 SP10 (1000.7.00.10.0.20061026144500) 20070119122211
    sap.com/SAP-JEE 7.00 SP10 (1000.7.00.10.0.20061026144500) 20070119121940
    Thanks 4 Help

    Please review the terms of your Comcast agreement. Many agreements include scheduled price increases, and typically state that prices will return to the prevailing (almost always higher) rates when the agreement expires.
    If you still have questions contact one of their Billing reps at the phone number on your bill or 1-800-Comcast, chat with them using one of the "Account and Bill" options at https://www.comcastsupport.com/chatentry/, or visit a Service Center if one is nearby (check locations and hours at http://customer.xfinity.com/service-center-locations).
    Comcast sometimes responds to questions here in the forums, and sometimes they do not. When they do the typical response time is somewhere between a few hours and a few days.

  • AR Autoivoice fails without any error

    Autoivoice fails without any error, the lines remains in the Interface Lines. I do not get any exception or error, but the invoice is not created. After running Autoinvoce, Sales Order status is closed, so the problem is with the Autoinvoice..
    Any ideas of solving this problem? Thank you..

    It is completed, there is nothing in the log file but this Warning: some records remaining in ra_interface_lines..it looks as if it had completed normally, but the invoices are not created..there is no error shown..
    Could it be the problem the Accounting and Invoicing rules that are set to Monthly?
    Thank you.

  • Payables Open Interface Pgm fails without any error(Very urgent)

    All,
    I'm into an integration project where in I'm pushing Invoice doc from a third party appln to Oracle apps (11.5.10.2) thru payables open interface. The integration is smooth till today. We pushed a record today, but the concurrent neither picks up the data but failed with 'completed error' status. When I delete the same record from the interface, the concurrent runs fine. So we are sure there is some issue with the data in my record. Since concurrent is failed without any reason, from where I can get the log to know what is the actual problem with that record? Pls help me with your inputs.
    Thanks,
    Sen

    Sen,
    To enable trace, please refer to this document (skip the part about generating TKPROF, just check the concurrent request output file if more details about the error are logged after enabling trace and setting the profile option).
    Note: 453527.1 - How To Trace a Concurrent Request And Generate TKPROF File
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=453527.1
    The database log file can be usually found under $ORACLE_HOME/admin/<SID>_<hostname>/bdump directory (or from SQL*Plus, issue "show parameter background_dump_dest").
    Regards,
    Hussein

  • Creating a DVD without any Menus (No Themes)

    I know how to set iDVD to create a DVD to play immediately when inserted in a DVD player. However, when the show is over, it goes to a menu. Which I do not want it to do. How can I create a DVD without any menu?

    How can I create a DVD without any menu?
    WIth iDVD, the best you can do is autoplay. You can loop the autoplay movie, which would prevent it from going to the menu (unless the menu button is pushed).

  • Oracle XE 10g install fails without any error or message

    Hi,
    I searched many posts in this form, and could not find an answer to my problem.
    Trying to install XE on a server 2003. Installation proceeds successfully almost to an end, and then installation window disappears, without any message, error or warning.
    New ORACLE_HOME, created up to this point, also disappears.
    Logfile has the following entries, C:\WINDOWS\OracleDatabaseXEServerInstall.log:
    MSI (s) (F8:C0) [16:04:44:540]: Note: 1: 1708
    MSI (s) (F8:C0) [16:04:44:540]: Product: Oracle Database 10g Express Edition -- Installation operation failed.
    I know that the server is behind the firewall, and does not have connection to the internet. It is connected to the network, and other servers and desktops, though.
    Does it have to have access to the outside world to install XE?

    Hi,
    I am having the same issue, both on a windows 2003 server and on a XP client PC. The installation progresses up to a point after which the installation window disappears without errors or messages. I tried as a domain administrator, as a local administrator and removed other Oracle software, rebooted, checked for virus scanners etcetera, withou result.
    I searched through the forums but could not find a solution.
    Any idea's?
    Regards,
    Gerrit
    Hi,
    I searched many posts in this form, and could not
    find an answer to my problem.
    Trying to install XE on a server 2003. Installation
    proceeds successfully almost to an end, and then
    installation window disappears, without any message,
    error or warning.
    New ORACLE_HOME, created up to this point, also
    disappears.
    Logfile has the following entries,
    C:\WINDOWS\OracleDatabaseXEServerInstall.log:
    MSI (s) (F8:C0) [16:04:44:540]: Note: 1: 1708
    MSI (s) (F8:C0) [16:04:44:540]: Product: Oracle
    Database 10g Express Edition -- Installation
    operation failed.
    I know that the server is behind the firewall, and
    does not have connection to the internet. It is
    connected to the network, and other servers and
    desktops, though.
    Does it have to have access to the outside world to
    install XE?

  • How to create a report without any data

    HI All, <BR> Can anyone help me in writing a report without any data. I want to create a report with list of memebers from a dimension where UDA is "My UDA". I wrote a report "<UDA(CHANNEL,'My UDA')" but this fetches me data too in the report. How to eliminate the data in the report. <BR><BR>Thanks<BR>Murali

    Hi<BR><BR>Assuming you are using the essbase report writer the following script will work: <BR><BR>{ SUPPAGEHEADING }<BR>{ SUPCOLHEADING }<BR>{ SUPFORMATS }<BR>{ SUPFEED }<BR>{ NOINDENTGEN }<BR>{ FIXCOLUMNS 1 }<BR> <ROW("Dimension") <BR> <UDA(Dimension,MyUDA)<BR>!<BR><BR>the fixcolumns 1 will ensure that you only get the UDA without it you will get the variable followed by the corrosponding value.<BR>

  • FCC configuration in Sender File Channel Without any key field name

    Hi Everyone,
    We have below flat file generated from ECC using standard tcode.
    The flat file is fixed length file and first record is header record followed by line items.
    There is no key field name in the file name.
    Can we read the file and convert into xml without any key field name?
    I want to understand if the FCC configuration for above file can be done without key name or not.
    Thanks,
    Vertika

    Hello,
    AFAIK, using FCC i really doubt u can convert file into xml.
    So technically, there are two options either read each line one by one and then do conversions in ur mapping or write a custom module which will read ur input file and convert into xml.
    Configuring Generic Sender File CC Adapter
    Thanks
    Amit Srivastava

  • FM's to create an invoice without any reference

    Hi,
    I want to create a billing document in R3 without any reference with sales order or delivery.
    Are there any FM or procedure to achieve this.
    If you can send me the sample code it will be really helpful.
    Regards,
    sasi

    hi
    can you tell me one scenario where we need to create a billing with out sales or delivery
    if all there is some situation like that one like
    if there is only FI module implemented but not SD then this can be achived by the FI functional consultant.
    get some advise from him.
    Regards
    Edited by: Chaitanya V Kumar Naru on Jun 9, 2008 9:34 PM

  • Would a MacBook Air run PowerPoint files created in Windows without any problems?

    I am considering buying a MacBoo9k Air. However, I need to be sure that it would be able to run, edit, save without problems files created in PowerPoint with a Windows-based PC. Do I need a special software for this?

    Yes, Powerpoint Mac should be identical to Powerpoint PC. Powerpoint on the Mac will open Powerpoint files created with the Windows version.
    In practice, that isn't entirely the case, as there are different versions of both Powerpoint Mac and PC.
    You need to be running the latest versions of both on the Mac and PC.
    Even then you may have some minor formatting issues. Whether you consider that a problem, is up to you.
    I only way to ensure that the Powerpoint files edited on the Mac display correctly on your Windows PC is to run the Windows version of Powerpoint either in Bootcamp or Parallels/Fusion on your MacBookAir.
    It's not as seemless as it should be, however, Bootcamp or virtualization ensures you can run the Windows version of Powerpoint if you need to.

  • Why did many of my files fail to tranfer to LR3 from the Beta?

    I have many missing images that are readable on my hard drive. They were registered as part of the catalog in the beta. Now I have hundreds of files that LR3 lists as missing. If I go through the find file menu and select the file it will tell me the file has a different name when I restore it. The file names are not different. I then have a missing file and the recovered file both with the same name. It would take weeks to go through and find each of these missing files. The database appears to be hopelessly screwed up. It I uninstalled Lightroom and reinstalled it would it fix the problem?
    If not how do I fix it.
    And again, yes the files exsist, have not been moved or renamed and can be opended and edited. The problems is in LR3 database not the files.

    I am running XP SP3.
    LR3 Beta 1 was my first exposure to LR. Never used or saw LR before I loaded the Beta. I updated to LR3 Beta 2 with no problems.
    I was running CS4 with the beta. I purchased the upgrade to CS5 and LR3 at the same time to get the discount. I installed LR3 first and immediatly noticed the problem.
    When I installled LR3 I noticed that it was rebuilding or doing something to update the catalog. As I would open a subdirectory in LR containing images it would take a while for each image to appear. I had to click on every subdirectory before the images were listed on the tree. But this did not work on all directories. On some directories there are no images just a blank rectangle with the correct file number, a ? which says Photo is missing when the cursor is hovered over it. If I select one of the "missing files" and then follow the menu for find missing file and then go to the subdirectory where the file exsists LR will ask is I want to restore the file with the new number. But it is the same number. It will be restored with the same number and the old blank place holder will remain, but it can be deleted. I do not want to do this for hundreds images.
    When I installed the production release LR3 I also lost all the collectionsd I had created in the Beta's.
    CS5 upgraded with no problems.
    John Yanko

  • Publishing an ERD to a file fails without feedback

    I am using Designer 10.1.2.0.2 and am trying to publish an ERD to a jpeg file. I have tried turning on diagnostics but get no indication of errors, warnings, or failures in the log file. I can edit and save changes to the ERD but cannot get it to write to a local file on my Windows XP 2002 Sevice Pack 3 system. Any suggestions are welcome.

    Will this work around do the trick?
    Choose select all from the edit menu and then copy the elements of the ERD (edit -> copy). Then open i.e. Microsoft Paint and paste the ERD inside paint. Now you are able to save your ERD as jpeg.
    Regards,
    Mark

  • Backup failing without any errors in sys prefrerences time machine

    What happens: Time Machine scans, prepares, but does not actually back up. It does not report any errors through System Preferences > Time Machine.
    I've used Disk Utility to verify both my local disk and my time machine disk (external USB drive).
    I've done a full reset of Time Machine ("A4").
    Here's the relevant log:
    Nov 26 03:07:31 computerName com.apple.backupd[522]: Starting standard backup
    Nov 26 03:07:31 computerName com.apple.backupd[522]: Backing up to: /Volumes/Time Machine Backups/Backups.backupdb
    Nov 26 03:07:32 computerName com.apple.backupd[522]: Event store UUIDs don't match for volume: Macintosh HD
    Nov 26 03:07:32 computerName com.apple.backupd[522]: Node requires deep traversal:/ reason:must scan subdirs|new event db|
    Nov 26 03:10:18 computerName mds[34]: (/Volumes/Time Machine Backups/.Spotlight-V100/Store-V1/Stores/039F4DE9-98EB-4474-A60B-665902E6BC99)(E rror) IndexSDB in dbflushdatastore:/Volumes/Time Machine Backups/.Spotlight-V100/Store-V1/Stores/039F4DE9-98EB-4474-A60B-665902E6BC99/st ore.db : dbsyncdatastore: !WARNING! prior write-errors invalidate sync.
    Nov 26 03:10:18 computerName mds[34]: (/Volumes/Time Machine Backups/.Spotlight-V100/Store-V1/Stores/039F4DE9-98EB-4474-A60B-665902E6BC99)(E rror) IndexCI in _ContentIndexSyncIndexBulk:preSync error:22 0
    Nov 26 03:10:18 computerName mds[34]: (/Volumes/Time Machine Backups/.Spotlight-V100/Store-V1/Stores/039F4DE9-98EB-4474-A60B-665902E6BC99)(E rror) IndexSDB in dbflushdatastore:/Volumes/Time Machine Backups/.Spotlight-V100/Store-V1/Stores/039F4DE9-98EB-4474-A60B-665902E6BC99/st ore.db : dbsyncdatastore: !WARNING! prior write-errors invalidate sync.
    Nov 26 03:10:18 computerName mds[34]: (/Volumes/Time Machine Backups/.Spotlight-V100/Store-V1/Stores/039F4DE9-98EB-4474-A60B-665902E6BC99)(E rror) IndexCI in _ContentIndexSyncIndexBulk:preSync error:22 0
    Nov 26 03:11:00 computerName com.apple.backupd[522]: Error: Flushing index to disk returned an error: 0
    Nov 26 03:11:00 computerName com.apple.backupd[522]: Backup canceled.
    Thanks for any pointers you can provide.
    - Evan

    evan_j wrote:
    Hi Pondini!
    Thanks for your help.
    I added the entire Time Machine disk to the spotlight privacy exception, waited for a bit, and removed it. From this line, I assume that it triggered the re-indexing of the drive:
    Nov 27 10:26:58 computerName mds[34]: (Normal) DiskStore: Creating index for /Volumes/Time Machine Backups
    Yup.
    I think one of the issues was that I had the power settings to shut down disks.
    That shouldn't be a problem, as they should "spin up" when necessary. Some external HDs respond to that setting, some don't -- they have their own settings. But unchecking the option sometimes fixes the problem, so at least you know what it is.
    Nov 27 05:57:05 computerName mds[34]: (/Volumes/Time Machine Backups/.Spotlight-V100/Store-V1/Stores/039F4DE9-98EB-4474-A60B-665902E6BC99)(E rror) IndexSDB in dbflushdatastore:/Volumes/Time Machine Backups/.Spotlight-V100/Store-V1/Stores/039F4DE9-98EB-4474-A60B-665902E6BC99/st ore.db : dbsyncdatastore: !WARNING! prior write-errors invalidate sync.
    Nov 27 05:57:05 computerName mds[34]: (/Volumes/Time Machine Backups/.Spotlight-V100/Store-V1/Stores/039F4DE9-98EB-4474-A60B-665902E6BC99)(E rror) IndexCI in _ContentIndexSyncIndexBulk:preSync error:22 0
    . . . {that pair of lines repeats ~ 6 times} . . .
    Nov 27 06:15:16 computerName mDNSResponder[35]: PenaltyTimeForServer: PenaltyTime negative -180458, (server penaltyTime -1014959037, timenow -1014778579) resetting the penalty
    It repeats the 1st and 2nd lines every ~ 6 minutes, then the PenaltyTimeForServer, then the cycle starts again.
    Any ideas?
    The UUID mismatch message sent by backupd in your first post is because TM hasn't completed a backup, and isn't sure what's changed on your system and needs to be saved. So it does a "deep traversal," comparing your system to the backups (that's the "scanning" in the messages). That has to be repeated every time, until a backup is completed. On subsequent backups, it can use a log of changes that OSX keeps, and will be much quicker.
    It sounds like something is corrupted, somewhere. Exclude your TM drive from Spotlight again,but leave it excluded. Verify your internal HD and Repair the TM drive again. (Unfortunately, those will find directory errors and the like, but not necessarily problems within files.)
    Then try another backup.
    How old is your external HD? Are you just starting with TM or that disk, or have you been backing-up successfully for a while?
    Are you running any kind of Sync application? A couple of the messages mention some sort of sync, but I don't know enough about Spotlight to know whether that's relevant.
    Are you running Windows via Parallels, VmWare, or the like?

  • Creating Apple ID Without Any Credit Card to Use.

    Hello Guy's. I can't register or fully activate my Apple ID because of Required Credit Card Information. My Apple ID was already verified in Apple Site but not i iTunes. It Requires me to Review my account information via iTunes.I live in the Philippines. I followed every tips and instructions in how to register without Credit Card info. I tried in the PC and iTouch itself. But only appears in Visa , Master Card and another type of Card. The "None" Option is not available. I tried my OFW BDO Debit card to fill the blank info's but it was rejected and i don't know why. What should i do to get the "None" Option or register without Credit Card. Please Help.

    Does this help?
    http://support.apple.com/kb/ht2534

Maybe you are looking for

  • My macbook is getting the question mark folder and also my start up disks are gone

    A few weeks back I turned on my macbook and discovered that it cannot boot up anymore. There was absolutely no precedent to this. I didn't drop it (I've dropped it many times in the past if that matters, and may have placed it down on my desk a littl

  • Trying to focus in on a DateField component

    Has anyone ever had trouble sending keyboard focus to the DateField component? Try this: create a new Flash document and insert a TextInput component named textItem, a DateField component named dateItem and a ComboBox component named ComboItem. Then

  • I now have problems with downloading, particularly when downloading books to Adobe digital. How do I fix this?

    I recently put in a lot of software updates that I had not done before. Previously, I could download a book to Adobe Digital with no problem. Now, it tries to download to Adobe reader. I don't know how to correct this. I did check and I still have th

  • My form will not come out of query mode. Why?

    I have a simple form with 2 canvases the second canvas apears as a modal window and inherits the main menu (6i Smartbar menu). I place the modal screen in query mode and execute query, if the form returns no records it then becomes stuck in query mod

  • Cannot select last lines on page?

    I'm using Pages 09 and I am writing a novel. I have put the novel in the correct size/format for printing (so it isn't A4), and I want to make one or two minor tweaks and changes before I finish. However, I can't select the last 6-7 lines or page num