File corruption on SDCard when multiple files are being written from WinCE 6.0R3

We currently have file corruption problems which we have been able to reproduce on our system which uses WinCE 6.0R3. We have an SDCard in our system which is mounted as the root FS.  When multiple files are being written to the file system we occasionally
see file corruption with data destined from one file, ending up in another file, or in another location in the same file.  We have already written test SW that we have been able to use to reproduce the problem, and have worked with the SDCard vendor to
check that the memory controller on the card is not the source of the problems.
We know that the data we send to WriteFile() is correct, and that the data which eventually gets sent through the SDCard driver to the SD card is already corrupted.
We believe that the problem is somewhere in the microsoft private sources between the high level filesystem API calls and the low level device calls that get the data onto the HW.
We have confirmed that the cards that get corrupted are all good and this is not a case ofpoor quality flash memory in the cards. The same cards that fail under WinCE 6.0R3 never fail under the same types of testing on Windows, Mac OX, or linux.  We
can hammer the cards with single files writes over and over, but as soon as multiple threads are writing multiple files it is only a matter of time before a corruption occurs.
One of the big problems is that we are using the sqlcompact DB for storing some data and this DB uses a cache which get's flushed on it's own schedule. Often the DB gets corrupted because other files are being written when the DB decides to flush.
So we can reproduce the error (with enough time), and we know that data into the windows CE stack of code is good, but it comes out to the SDcard driver corrupted.  We have tried to minimize writes to the file system, but so far we have not found a
way to make sure only one file can be written at once. Is there a setting or an API call that we can make to force the OS into only allowing one file write at a time, or a way of seeing how the multiple files are managed in the private sources?
Thanks
Peter

All QFE's have been applied we are building the image so we have some control.
I have build an image which used the debug DLL's of the FATFS and I have enabled all of the DebugZones.  The problem is still happening. From the timings in the debug logs and the timestamps in the data which corrupts the test file I have been able
to see that the file is corrupted AFTER the write is complete. Or at least that's how it seems.
We finished writing the file and closed the handle. Then more data is written to other files. When we get around to verifying the file it now contains data from the files that were subsequently written.
What I think I need to do is figure out in detail how the two files were "laid down" onto the SDCard.  If the system used the same cluster to write the 2 files then that would explain the issue.

Similar Messages

  • I purchased the Adobe PDF Pack but it won't allow me to convert any files to pdf or combine multiple files to into 1 pdf form. It keeps saying "Error occurred while trying to access the file". WHY

    I purchased the Adobe PDF Pack for $7.50/month (or $89.99/yr) but it won't allow me to convert any files to pdf or combine multiple files into 1 pdf form. It keeps saying "An error occurred while trying to access the service". WHY is this happening & How can I fix it?

    Hi hpmg,
    It seems you are trying to access the service via Adobe Reader. Make sure you are signed in with your Adobe ID. Is Reader updated to the latest patch v 11.0.09?
    It might be possible that a firewall or antivirus might be breaking the connectivity from Reader to the server.
    Try accessing the service from the browser: https://cloud.acrobat.com/exportpdf  and check if that works for you.
    Regards,
    Rave

  • Safari warning before quitting when multiple tabs are open?

    I'm a rather clumsy typist who often uses Apple+Tab to toggle through my open programs. This works great 99% of the time, but that other 1% is rather frustrating considering that the Q key is right next to Tab.
    Apple guys, please implement a pop up/drop down warning when attempting to quit Safari when multiple tabs are open (or at least the option to enable or disable it). I use this browser for work and often have many tabs open, so accidentally quitting the browser only impedes on my workday. I know I should be more accurate, but isn't that what part of progress is? The empowerment of laziness? =)
    Thanks for your time, and hopefully we see this included in soon-to-come upgrades!
    Oh, and if this feature is already available, feel free to show me the way.
    G4   Mac OS X (10.4.7)  

    jefftovar,
    I created and modified the Safari Keyboard Shortcut
    Quit (⌘+Q) command to (⌘ControlQ) by using System
    Preferences...>Keyboard Shortcuts.
    ;~)
    Great suggestion! But, the default Quit (⌘+Q) command is still in effect. I've looked about in trying to deactivate it, but can't seem to find it. How did you get rid of yours?
    G5   Mac OS X (10.4)  

  • A lot of memory is used when multiple tabs are open

    Is there anything that can be done about the insane memory usage in Firefox when multiple tabs are open? I often have 20+ tabs open and the amount of RAM that Firefox uses when I have it open with this many tabs is just ridiculous. As an example of this, I just restarted Firefox after checking the Windows Task Manager. The Task manager said that Firefox was using 1.2 GB of RAM. I did have 32 tabs open, but this seems excessive even for this many tabs. Some of the tabs were image heavy, but none of them had any video in them. I'd think 10 MB per tab of RAM would be plenty to cover these kinds of pages, maybe 20 MB at most. The upper end of that range would be 640 MB of RAM. Instead, it appears to be using an average of 40 MB of RAM per page when this many tabs are open.
    Is there anything that can be done to reduce amount of memory being used when multiple tabs are open? It really shouldn't need this much RAM to serve this many pages.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Error: Show Details cannot be executed when multiple items are selected in a report filter field or in a slicer

    I have connected TABULAR Model to Excel, and in the pivot the filter is on multiple dimensions. When doing the drillthrough action it gives error - Error: Show Details cannot be executed when multiple items are selected in a report filter field or in a slicer
    Is there any workaround to this error?  so that drillthrough can be done even with multiple selection.

    Hi Vikas,
    The reason behind the error message requires the knowledge on what happens at the backend. When you perform a drill-through action, a query is sent to Analysis Services. This query is expressed in a query language called Multi-Dimensional Expression (MDX).
    Since the MDX language doesnot support drill-through command against a set (collection of tuples) an error is persisted. 
    For now, there is no workaround as it is a limitation of the underlying language that is generating the query.
    When multiple items are selected you lose the ability to drill-down on individual metrics. To resolve you must either:
    1. Select a single Item.
    2. Select all items.
    Hope this helps!
    Please mark as Answer if this helps! Thanks, Rajasekhar.

  • Dynamic sql reurns no data when multiple values are passed.

    (Dynamic sql returns no data when multiple values are passed.)
    Hi,
    While executing the below dynamic sql in the procedure no data is returned when it has multiple input values.
    When the input is EMPID := '1'; the procedure works fine and returns data.Any suggestion why the procedure doen't works when input as EMPID := '1'',''2'; is passed as parameter?
    =======================================================
    create or replace PROCEDURE TEST(EMPID IN VARCHAR2, rc OUT sys_refcursor)
    IS
    stmt VARCHAR2(9272);
    V_EMPID VARCHAR2(100);
    BEGIN
    V_EMPID :=EMPID;
    stmt := 'select * from TEST123 where Empid is NOT NULL';
    IF V_EMPID <> '-1' THEN
    stmt := stmt || ' and Empid in (:1)';
    ELSE
    stmt := stmt || ' and -1 = :1';
    END IF;
    OPEN rc FOR stmt USING V_EMPID;
    END Z_TEST;
    ============================================================
    Script for create table
    ==================================================================
    CREATE TABLE TEST123 (
    EMPID VARCHAR2(10 BYTE),
    DEPT NUMBER(3,0)
    ===========================================
    Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('1',20);
    Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('2',10);
    Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('3',30);
    Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('3',30);
    Insert into PDEVUSER.TEST123 (EMPID,DEPT) values ('2',10);
    =============================================
    Select * from TEST123 where Empid in (1,2,3)
    EMPID DEPT
    1     20
    2     10
    3     30
    3     30
    2     10
    ===================================================================
    Any suggestion why the procedure doen't works when input EMPID := '1'',''2';?
    Thank you,

    The whole scenario is a little strange. When I tried to compile your procedure it couldn't compile, but I added the missing info and was able to get it compiled.
    create or replace PROCEDURE TEST (EMPID IN VARCHAR2, rc OUT sys_refcursor)
    IS
      stmt        VARCHAR2 (9272);
      V_EMPID     VARCHAR2 (100);
    BEGIN
      V_EMPID := EMPID;
      stmt := 'select * from TEST123 where Empid is NOT NULL';
      IF V_EMPID = '-1' THEN
        stmt := stmt || ' and Empid in (:1)';
      ELSE
        stmt := stmt || ' and -1 = :1';
      END IF;
      OPEN rc FOR stmt USING V_EMPID;
    END;If you pass in 1 as a parameter, it is going to execute because the statement that it is building is:
    select * from TEST123 where Empid is NOT NULL and -1 = 1Although the syntax is valid -1 will never equal 1 so you will never get any data.
    If you pass in 1,2 as a parameter then it is basically building the following:
    select * from TEST123 where Empid is NOT NULL and -1 = 1,2This will cause an invalid number because it is trying to check where -1 = 1,2
    You could always change your code to:
    PROCEDURE TEST (EMPID IN VARCHAR2, rc OUT sys_refcursor)
    IS
      stmt        VARCHAR2 (9272);
      V_EMPID     VARCHAR2 (100);
    BEGIN
      V_EMPID := EMPID;
      stmt := 'select * from TEST123 where Empid is NOT NULL';
      stmt := stmt || ' and Empid in (:1)';
      OPEN rc FOR stmt USING V_EMPID;
    END;and forget the if v_empid = '-1' check. If you pass in a 1 it will work, if you pass in 1,2 is will work, but don't pass them in with any tick marks.

  • JNLP and jar files are being download from server again.

    I have a swing application deployed with Java Web Start on a server.
    On my client I install the application using JWS JRE 1.6.
    The issue is that without any change in the jars or JNLP the jars are being downloaded from the server again and again
    This is not consistant - it happens only sometimes.
    One important thing to mention: The server is inside a load-balancer cluster (AKAMAI), so the IP address of the actual server may change between different accesses.
    in the log, I can see the error:
    "Cache entry not found"
    and then the jar is being downloaded again.
    sometimes only one or two jars were downloaded again, sometimes the whole package with the JNLP file were dowloaded again.
    Can you suggest what can be the reason for this behavior?
    Thank you,
    Ran

    That does seem slow, but there are many factors that could be involved. More information would be helpful:
    - Are the source and destination filesystems ZFS or UFS? (or some other FS)
    - What does iostat show you?
    - What does vmstat show you?
    - What type of HBAs connect you to the SAN? ('fcinfo hba-port')
    - Anything in /var/adm/messages?

  • X pro crashes when multiple documents are opened

    x pro crashes when multiple documents are opened

    Hi travisc74509405,
    Could you please let me know what version of OS are you using.
    Also, let me know how much RAM and free hard disk space is available on your machine.
    What exact dot version of Acrobat X do you have? You might check for updates under the Help menu to use the latest patch i.e. 10.1.13
    Hope to hear from you.
    Regards,
    ~Anubha

  • After Installing Bitdefender 2011 Firefox is very slow and worse when multiple tabs are open

    Firefox performs very poorly after I installed Bitdefender 2011. There was no such problem with Bitdefender 2009. When multiple tabs are open, switching between them is not possible until tab contents are completed.

    As ninjafox says, the problem seems to be the BitDefender Anti-phishing Toolbar. Disabling this through Tools -> Add-ons and restarting Firefox seems to fix the problem for that session. However, the problem then reappears when the computer is restarted, presumably because BitDefender re-enables the toolbar.
    Another way of disabling all add-ons when starting Firefox is to hold down Shift while clicking on the icon (Windows only I think - at least doesn't work on Ubuntu for me).

  • How to create a new excel file using Excel Destination when Destination file not exists.

    how to create a new excel file using Excel Destination when Destination file not exists.

    Just need to set an expression for excel connectionstring and set delay validation to true and it will create it on the fly.
    The expression should return the full path with dynamic filename in each case.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • WRT160n v3 has slow connection when multiple users are connected

    As of last night my router has been producing slow connectivity when multiple users are connected to it, but it's perfectly fine when only one user is connected.
    I am on a laptop myself, but we also have a second laptop and a desktop where the modem and router are set up.
    I have upgraded the firmware so that is up to date.
    We have Comcast Fiber Optics so my internet speed is normally quite fast even when all of my computers are connected.
    Some settings that I have that might help resolve the issue:
    I am using DHCP Configuration.
    My Channel Width is set to 20 MHz and I am using Channel 11.
    The Security Mode is set to WPA Personal. I had it on WPA2 Personal but I read that changing to WPA Personal might help and so far it doesn't seem to have done anything.
    I set the Beacon Interval to 50, Fragmentation Threshold to 2304, and RTS Threshold to 2304.
    Everything else is set to the default factory configuration.
    Just today I received a notice that said "Windows has detected an IP Address Conflict", but ever since I reinstalled the Firmware it hasn't come back. I've rebooted both my laptop and the desktop to confirm it hasn't come back as well.
    I consider myself to be computer savy, but I just can't figure out what the problem is as I've tried everything that I could think of including reconfiguring my router and restarting my modem as well. This problem has presented itself in the past before but unfortunately I cannot remember what I did to fix it.

    Try using inSSIDer to help you find the best channel.
    http://www.metageek.net/products/inssider/
    If that doesn't help, you can try disabling WMM.
    Edit:  You should use WPA2 AES security for best performance.

  • HT204266 I live in China, have Dutch nationality, and no US address or Credit Card; how can I have access to products from the US iTunes store, in particular music, when such items are not available from the China iTunes store? In general, what are the di

    I live in China, have Dutch nationality, and no US address or Credit Card; how can I have access to products from the US iTunes store, in particular music, when such items are not available from the China iTunes store? In general, what are the differences between countries' iTunes offerings? Does one really need an address and a credit card for any country to be able to access that countries iTunes store? Why these restrictions?

    You cannot.
    You cannot use another countrys itunes store.
    You must be physically locates inside the borders of a country to use that countrys itunes store and a credit card issued in that country with a valid billing address in that country.
    The owners of the distribution rights of movies/music/etc differ by country.  These distributors decide who can sell their content in that country.
    Buy from another source if your countrys itunes store does not carry somehting that you want.

  • Workflow task details are being retrieved from the server

    Hi,
    Using an approval workflow. when the task has been assigned to the person he is getting an email but when clicking on the edit this task button ,the pop window with the
    "workflow task details are being retrieved from the server" 
    error is getting. SharePoint site 2007 and Microsoft Outlook is 2010.

    I have a similar issue with my version of SharePoint. 
    SharePoint 2010 Enterprise.
    Outlook 2013 with MS Exchange
    Document approval workflow.
    When you open the document approval email that comes from SharePoint and click on "Open this task"  the popup window flashes across "workflow tasks details are being retrieved from the server ".
    I've tried the regedit fix and the hive fix and resetting IE that some of the other people have said that works and it doesn't. 
    When I go the site, and connect the task list to Outlook, I can complete the task that way.
    I also created a new approval workflow in SharePoint designer and it behaves the same way.
    Anything else I should try?
    == Steve Morley MedIT, Dalhousie University

  • HT4519 Default email is set but emails are being sent from another account

    I have set up my email accounts on my iPad and set the default email as my home email. I have just noticed that all emails sent from my iPad are being sent from a different account.  What am I missing?

    Edit the address book entry to uncheck use display names. If you want to disable it completely Tools menu (Alt+T) > options > advanced >reading and Display and turn off the use of display names.
    You never had this issue with Outlook.... The question is what did the recipient see, not what did you see. If they did not use Outlook there is a good chance they saw what was in their address book. You can address your mail as sent by "Very Important person from Very Profitable Company" If I add you to my address book as "The Goblin" I see "The Goblin" This is because Thunderbird places control in the hands of the user. Outlook does not. Note the Multiple ways to view a message body on the view menu.
    I get your frustration, but your no longer using Outlook. Outlook is an excellent exchange client. I find it actually does email badly.

  • Emails are being removed from my inbox after a few weeks

    I have recently notice that old read emails are being removed from my inbox on my iPhone 6. They aren't in my trash, they just disappear.

    I Have tried deleting and then re adding I have also turned off my phone for a while..
    i Don't see a setting that says days to sync

Maybe you are looking for

  • I HATE YOUR APP WORLD BROWSER PLUG IN.

    You can understand what i want to say from the Subject. I'm trying all day to download 2 simple application and i can not do that becase of i dont know why ! :@ The status of the application is Waiting, i have tried to reinstall 10 time your stupid p

  • Scrolling boxes within the website?

    I'm not sure how to explain this, so hopefully you get what I'm trying to ask. I recently borrowed an iPad to figure out if it was worth the investment. If it was just for me, its shortcoming wouldn't matter. But my girlfriend is going to use it for

  • FW vs. USB & can you move a backup folder to a larger drive later?

    I'm about to get an external drive to use for TM. Is Firewire (400 or 800) going to be noticeably faster than a USB drive? I ask because I would think that a single external platter can only transfer so much data to the disk at once and USB might be

  • Edit Audio in Audition - Have sequence update

    I've edited a sequence in Premiere. There are several instances from one footage item on the timeline whose audio I wish to enhance in Audition. So in the Project Panel, right-click Footage-1, Edit In Audition -> Clip. This extracts the file, work on

  • Infotypes during MSS implementation of My Staff

    i was trying to implement My Staff. I did almost every configuration on r/3 and portal side but it didn't worked. then i underwent the procedure again where it was written "B.     Have an SAP R/3 user attached to the IT105 of an employee. C.     Be i