Nilibddc dll: opening tdms files with corrupt index files

Hi there,
i have a question regarding error handling, when using the nilibddc.dll.
I want to use nilibddc.dll to open .tdms files. At the time i'm experimenting with some error cases and got stuck in one case:
When i try to open a .tdms file with a corrupt .tdms_index file i get the error code -6211 (DDC_StorageCouldNotBeOpened).
The .tdms_index file is corrupt because of errors while copying the file.
The problem i noticed is, that i have a file lock on the corrupt .tdms_index file after DDC_OpenFile(...) (i can rename it, but i can't delete the file!?).
As you can see in the code snippet - it isn't really special...
int ddcError = 0, length;
DDCFileHandle file = 0;
ddcError = DDC_OpenFile (FILE_PATH, NULL, &file);
// here i get ddcError == -6211
if( ddcError == 0 )
// do something with the file...
ddcError = DDC_CloseFile(file);
if( ddcError == 0 )
cout << "no error - everything done" << endl;
system("PAUSE");
 Do i miss something here? Should i use DDC_FreeMemory in somehow to release opened handles?
 I also tried to use the DDC_OpenFileEx(...) with readOnly set to true. But this doesn't change anything!
Thanks in advance for help,
Daniel
Solved!
Go to Solution.

Hi there,
thanks for the replies (and sorry for my late answer).
The code above is from a simple Visual C++ Project that i use to run some tests with the dll.
If i posted the question in the wrong topic please let me know - i found some other posts dealing with the dll so i thought i'm right here.
I attached a tdms and the corresponding "corrupt" tdms_index file.
The file handle stays 0 when i debug my code with that file and i receive the error -6211.
I want to use the dll as part of an application that runs as system service. It reads and writes information from/to existing tdms files. After the information is read the application moves the files. So, if the tdms_index file gets corrupt (by whatever) i have the problem, that the index file is locked as long as the service is running and the file can't be moved. I can't tell how often this happens (hopefully never) but if i can do something against it, i would like to integrate this precaution.
Thanks in Advance for any information & have a nice day,
Daniel
Attachments:
samplefile.zip ‏3 KB

Similar Messages

  • Snow Leopard 10.6.2 CS4 InDesign can't open files with a "#" in file path

    Snow Leopard 10.6.2 CS4 InDesign can't open files with a "#" in file path using any of these perfectly normal methods:
    1. double-click file in the Finder (e.g in a Folder on your Mac or on your Mac desktop etc.)
    2. select file and choose "File... Open" command-o in the Finder
    3. drag file to the application icon in the Finder.
    4. Select file in Bridge and double-click, choose File.. Open.. or Drag icon to InDesign icon in dock.
    If you try to open an ID file named with a "#", you will get an error message "Missing required parameter 'from' for event 'open.'"
    This happens to any InDesign file that has a "#" (pound sign, number sign, or hash) in the filename or in the file path (any parent folder).
    To reproduce
    Name an InDesign file Test#.idd Try to open it in the Finder or Bridge (as opposed to the "Open" dilaog of InDeisng itself).
    "Solution"
    The file WILL open using File... Open... command-o while in InDesign application.
    Rename the file or folders that have a "#" (shift-3) in the filename.
    Report to Adobe if it bugs you.
    This does not occur in "plain" Leopard 10.5 nor Tiger 10.4
    Untested in Panther or before and
    Untested with CS3 and earlier in Snow Leaopard.
    Anyone have those and want to try this... ?

    In case this really bothers you: we've added a workaround for this into Soxy. If you enable the option, these documents will open fine on double-click.
    You need Soxy 1.0.7 from:
    http://www.rorohiko.com/soxy
    Go to the 'Soxy' - 'Preferences' - 'Other' dialog window, and enable 'Open InDesign via Script'
    (Irrelevant background info (it's all invisible to the user): the workaround works by special-casing how Soxy opens documents in InDesign: instead of using AppleScript, Soxy will use ExtendScript to instruct InDesign to open the document - which works fine).

  • Cannot open a a file with a specific file name

    I have 1 person who cannot open or save a file with a specific file name on his computer.  If he does it at another computer he is fine, no one else has this issue.  The error he gets when trying to open the file is { Cannot create file:missingperson.pdf. Right-click the folder you want to create the file in, and then click Properties on the shortcut menu to check your permissions for the folder}
    Any ideas on how to resove this.  He gets this file sent to him on a regular basis, and cannot have the file name changed.
    Thank you

    I have run across something similar.  Assuming that this PDF they are getting through email is the same name, then this is how I fixed my problem.
    When you get a file in an email and open it, it writes that file to the Temporary Internet Files folder.  Lets assume the file name is filename.pdf  If you open a file from email with the same name at a later time, it creates a file called filename(1).pdf.  Open a file with the same name again, it creates filename(2).pdf, and so on.  Once you get to filename(99).pdf, it will start giving you a lot of trouble.  When I cleared out those filename.pdf's, everything went back to normal.
    Hope this helps.

  • Hi i have a learning HTML file with a data file include a swf files how can i open it in my ipad?

    hi i have a learning HTML file with a data file include a swf files how can i open it in my ipad?

    iPad do not support flash natively.
    Look in the app store, some browsers do support flash with limited functionality.

  • Is it possible to put an iDVD file, with chapter index, on a website?

    Is it possible to put an iDVD file, with chapter index, on a website?

    you could offer the VIDEO_TS folder of a videoDVD for download.
    but, no, you can not offer the functionality of a videoDVD by simply uploading the files.
    consider any web-site generator (software, on-line/template based) to create a website with 'links' to the indiviual videos. with some craftmanship you could 'emulate' the look&feel of your DVD …-
    btw: users of web-sites usually expect a diff. 'format' for video than mp2s of a videoDVD.

  • Can I use InDesign cs6 to open and work with PM6.5 files?

    Can I use InDesign cs6 to open and work with PM6.5 files?

    Lrak wrote: "It sounds like I should to that before endeavoring to transfer the manuscript?" (re-link)
    It should be much easier to re-link in the Pagemaker file, as, with any luck, you can get the filenames from the Graphics Manager.  After conversion to InDesign, any out-of-date linked images get their names converted to something like "image 123.jpg", and are themselves converted to an embedded low res representation of the image.  Even vectored art.  Pretty hard to figure them out, unless you are VERY familiar with the file, which you may be.
    It may be that any cropping gets lost, too?  I do prepress work, we do some set up for our customers, but most comes in pretty much ready to go, so I don't often have to did too deep into fixing such issues. On the other hand, any problem that can happen has probably crossed my desk, or it seems that way some days!

  • Has anyone been able to upload an ibooks file with audio only files (m4a) in it? I keep getting the following error message during the upload in iTunes Producer: ERROR ITMS-9000: "Files of type audio/x-m4a are not allowed outside of widgets.

    Has anyone been able to upload an ibooks file with audio only files (m4a) in it? I keep getting the following error message during the upload in iTunes Producer: ERROR ITMS-9000: "Files of type audio/x-m4a are not allowed outside of widgets. then it names the file as an m4p file. Everything works beautifully on the iPad through Preview, and validates through iTunes Producer up until the attempted upload. If you've been able to accomplish this, please let me know how you prepared your audio files. Many thanks.

    Hello Fellow iBook Authors!
    Today I received the same error that you all have been discussing.  I tried selecting the DRM
    and this did not work for me, though I'm glad it did for some.  Here's what I did as a work-around. . .
    Since iBooks Author did not have a problem with Videos, I simply used one of my video programs, ScreenFlow to turn the audio into a video file m4v.  I added an image and extended the length or timing of the image to span the length of the audio file.  Then exported as an .mov.  I then opened QuickTime and opened the file and exported the file to iTunes. 
    You can use iMovie, Camtasia or any other progam that will allow you to export the audio as a movie file.  Does this make sense?  I hope this helps, at least in the short-term.
    Michael Williams

  • Where does Lightroom put HDR in the grid view? Is there anyway to have Lightroom stack the HDR file with the source files?

    I can't decipher where (and why) the program is putting the HDR image in the grid. I stack all of my HDR source images so they are easy to track and manage. Other apps/plugins allow you to stack resulting images with their source image. That would be great if there's a way to set that in LR preferences.

    Thanks, but this doesn't really answer the question about stacking the HDR file with the source files. Yes, it does put the file in the same folder, however many of my folders have 100s of images (that often look similar) and as far as I can tell, LR places them randomly in the sort order. It doesn't appear to put them at the beginning or end of the sort (usually by date), but somewhere randomly in the middle. Even if it could be made clear what method it is using to sort them, that would help locate one file among hundreds.
    Ideally, however it should allow you to stack with the stacked source files. Is there anyway to do this? If not, is it a feature that could be requested?

  • Creating IPA file with Multiple SWF files using ADT

    Iam successfully able to create ipa files using the ADT package but my next requirement is to create an IPA file with multiple swf files.I think it might be easy if your SWF files are regular the tough part is my swf file has lot of action script in it so the only option is to through the command prompt and using the ADT package of Adobe AIR.So now i have 10 SWF files like this and iam creating ipa file for each swf seperatly but now I want to put all of the swf files into one ipa file.Please let me know if i was not clear in my description

    I think you are trying to explain how to load two swf's one with action
    script and loading an other swf file which should be non action script.If
    you read my requirement carefully.I have all the same type of swf's and
    these swf are automatically created as a form of output for xcelsius dash
    board software.Iam capable of creating individialu ipa files from these swf
    files.So when I try to combine the same kind of swf files the first error
    its giving is the file name which I have used in the xml.in the main file
    name for the swf file its not considering the two swf file name in the
    initial window.so the adt package in the command line is not understanding
    the file name from the xml and the command prompt and giving error this swf
    file does not exist.So please consider how to combine two swf files with AS3
    into one ipa file.These swf files are not editable,Let me know if you find
    any idea to achieve this

  • One of my imacs are saving all my files with a capitalized file extension?!

    one of my imacs are saving all my files with a capitalized file extension?! For example: .psd is .PSD this really suck because I keep getting to versions of all my files. Can someone please assist me in fixing this. Thanks! -derek

    Welcome to Apple Discussions!
    Did you format your hard disk on that Mac any differently?

  • How I can combine pdf file with other pdf file

    How I can combine pdf file with other pdf file ?

    Or from Adobe Reader via https://createpdf.acrobat.com/

  • Update jar file with modified class files

    hi all,
    I'm developing a jar utility for updating a jar file with modified class files as of now i have reached a point where in i can browse files and set it to required location
    i.e i have developed a swings GUI application using JfileChooser and browse the files ..now my requirement is to update the jar files with modified class file
    GUI looks like below
    ....enter the modified class file ----> d:\c.class
    ....enter the jar file path ---> d:\a.jar
                                                          update button now i have the requirement as
    1> when i click on the update button ,my jar file (a.jar) should get updated with the latest class file (c.class)
    can u help me to achieve this requirement.???
    im stuck with this,,,if u can provide me wit the code for updating jar file with latest class file...it will really be helpful
    if u can help me with the code on click on update button it will be really helpful
    Thanks and expecting a faster response from u all java experts....

    Please find my query in bolds...i have written the partial code now,i need some help now
    hope u guys can help me out...
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.File;
    public class FileExplorer extends JDialog implements ActionListener
         JTextField txtLocation_class;
         JButton btnBrowse_class;
         JLabel label_class;
         JTextField txtLocation_jar;
         JButton btnBrowse_jar;
         JLabel label_jar;
         JButton updatebutton;
         public FileExplorer()
                   setSize(600,300);
                   //for class files
                   label_class = new JLabel("Please select Modified Class File");
                   txtLocation_class= new JTextField(20);
                   btnBrowse_class = new JButton("Browse");
                   btnBrowse_class.addActionListener(this);
                   //for jar files               
                   label_jar = new JLabel(" Please select the Jar file");
                   txtLocation_jar= new JTextField(20);
                   btnBrowse_jar = new JButton("Browse");
                   btnBrowse_jar.addActionListener(this);
                   ActionListener updateListener = new ActionListener(){
                    public void actionPerformed(ActionEvent ae){
                     if(ae.getActionCommand().equalsIgnoreCase("Update")){               
                      System.out.println("ae.getActionCommand() :: "+ae.getActionCommand());
                      System.out.println("Update Button is pressed");               
                    *//Query :how do i access FilePath and FilePath1 here which*
    *                // has been set in public void actionPerformed(ActionEvent ae)*
    *                //method below*
    *                // FilePath  ---??*
    *                // FilePath1  ---??*
    *                // how do i access the above 2 parameters*
    *                //Query :on click of update button i have to pass*
    *                //two parameters FilePath and FilePath1 to*
    *                //perform some functionality. please help me*
    *                //to achieve this..how do i access Filepath and Filepath1*
    *                //here which has been set below.*
                     } // end of if               
                   } // end of actionPerformed
                };// end of ActionListener
                  updatebutton = new JButton("Update");
                  updatebutton.addActionListener(updateListener);
                   //adding to the panel               
                   JPanel pnl = new JPanel();
                   pnl.add(label_class);
                   pnl.add(txtLocation_class);
                   pnl.add(btnBrowse_class);
                   pnl.add(label_jar);
                   pnl.add(txtLocation_jar);
                   pnl.add(btnBrowse_jar);
                  pnl.add(updatebutton);
                   getContentPane().add(pnl);                         
         public void actionPerformed(ActionEvent ae)
              Object obj=ae.getSource();
              if(obj==btnBrowse_class)
                   final JFileChooser fcstudent = new JFileChooser();
                   int rtrnval = fcstudent.showOpenDialog(this);
                   if(rtrnval==JFileChooser.APPROVE_OPTION)
                        try
                             File file=fcstudent.getSelectedFile();                         
                             String path = file.getPath();
                             System.out.println("This is Path:"+path);
                             txtLocation_class.setText(""+path);
                             String FilePath=txtLocation_class.getText();
                             System.out.println("FilePath is ::"+FilePath);                                        
                        catch(Exception ex)               
                             ex.printStackTrace();
              }else if(obj==btnBrowse_jar){
                             final JFileChooser fcstudent = new JFileChooser();
                             int rtrnval = fcstudent.showOpenDialog(this);
                             if(rtrnval==JFileChooser.APPROVE_OPTION)
                                  try
                                       File file=fcstudent.getSelectedFile();                         
                                       String path1 = file.getPath();
                                       System.out.println("This is Path:"+path1);
                                       txtLocation_jar.setText(""+path1);
                                       String FilePath1=txtLocation_jar.getText();
                                       System.out.println("FilePath is ::"+FilePath1);                                        
                                  catch(Exception ex)               
                                       ex.printStackTrace();
         public static void main(String arg[]){
                   FileExplorer Exm= new FileExplorer();
                   Exm.setVisible(true);
    }

  • Connect the music file with the artwork file post-computer-crash?

    I want to retrieve artwork after restoring my computer?
    So my computer (where itunes app data was stored) and my external hardrive (where my itunes library was stored) crashed, but luckily I had my itunes library was stored on dropbox so I have that uploading to my revived computer!
    I have access to all my "old computer's" files (via a mounted image file that looks just like an external drive H: )
    The "old computer" itunes used my dropbox folder for the library (J:work\Dropbox\Allen's Transfer Folder\iTunes)
    my "New comuter" uses a local folder but the contents are exactly the same (C:\Companies\Dropbox\Allen's Transfer Folder\iTunes)
    How can I get the artwork data from my "old computer" onto my "new computer" so that itunes will connect the music file with the artwork file?
    is there a data file and will they automatically sync to the artwork if they are in different locations?
    Thank you for your help, Allen

    pfanzier wrote:
    … is there any reason i shouldn't delete the artwork folder?
    All of my music is from CDs, so all of my cover art are scanned images that I added to the music files in iTunes. My Album Artwork folder is heavily populated nonetheless. Thus, it stands to reason that if you delete the folder, just like every other default item in your iTunes folder it will be recreated when you launch iTunes. If I recall correctly, that folder also holds the data files for building your CoverFlow.
    pfanzier wrote:
    itunes only demarcates songs whose files are missing with an exclamation point after i click on the song. otherwise everything appears as normal. if i quit itunes and reopen it, nothing is marked with the exclamation point until i click on it.
    I personally have never had an issue with missing song links, but based on what I had read on the Macworld forums over the years, when links are lost, people start seeing /!\ next to several tracks in their iTunes library. Of course, most of the instances that I have read about have been after iTunes updates so perhaps it is during the library updating after a software update that causes the automatic detection of broken links. Otherwise, it does make sense that iTunes would not check a link until the user selects an unlinked song, because iTunes does not, and should not, scan your entire library for no apparent reason.

  • And here we go again with corrupt download files unable to expand

    There seems to be a pattern with major updates from Apple and the ability of the servers providing the content - be it iTunes or iOS or Mac OS updates - I have been unale to download sucessfully the larger updates but smaller (22MB for AirPOrt Utility) work fine.
    The annoying thing is that in almost all cases the erorr dosen't occur until AFTER the download is complete - meaning it takes up allt he time and bandwidth etc with no result and you have to start all over again.
    This has happened to enoguh people and with enough different software releases that I posit that it is NOT the result of any partiucalr configuration of netwokring and or hardware and or firmware and or OS version etc - but that the it is a systemic issue on the provider side of things.
    Perhaps they (Apple's content providers) should stagger access or something - by time zone - or Apple should release updates over the course of a week - not all on the same day.
    I would much rather get a message that the server is busy try agian later - or have one update a day - and have it work on the first try - that to waste time retrying the same downloads over and over again.

    While it is entirely possible taht some combination of DOCIS or firmware etc on the user end is a contirbuting facotr - it is not hard to find numerous reports of exactly what I am talking about along with other similar issues.
    I don't recall having this issue before I upgraded to 50Mbps download service - so there could be a connection there. But the "solution" in my case so far has been to just simply keep trying and eventually it works just fine.
    I suppose I may have forggotten as they are so few and far between - but in my recollection - the ONLY issues I have had have been with software from Apple - whether downloaded via software update - or the App store - or iTunes - and no where else - on both Mac and Windows (had Apple Software Update fail to get iTunes update a couple times on Windows, but windows is easy to goof up if you have other installers running at the same time).
    On the other hand I don't recall too many cases in the past where the downloads were so large as they are nowadays - and certainly the number of users after those downloads has only increased over time.
    https://discussions.apple.com/thread/4010441?start=0&tstart=0
    http://support.apple.com/kb/TS1813?viewlocale=en_US&locale=en_US
    http://macmost.com/forum-software-updates-corrupted.html
    https://discussions.apple.com/thread/3356863?start=15&tstart=0
    http://reviews.cnet.com/8301-13727_7-57357319-263/dealing-with-corrupted-downloa ded-files-in-os-x/
    http://forums.macrumors.com/showthread.php?t=1268440
    http://forums.untangle.com/networking/8171-downloads-corrupt.html
    http://forums.macrumors.com/showthread.php?t=970911
    https://discussions.apple.com/thread/3378898?start=0&tstart=0
    http://mybroadband.co.za/vb/showthread.php/287165-iOS-4-2-download-corrupted
    http://stackoverflow.com/questions/7199094/what-is-the-cause-of-frequent-corrupt ed-incomplete-download-from-amazon-cdn-to-i
    http://forums.macrumors.com/showthread.php?t=1292841
    http://www.jailbreakqa.com/questions/39174/is-ios-download-corrupt
    http://www.tuaw.com/2011/11/10/ios-5-0-1-now-available-for-download/
    I could go on but you get the point.

  • Can't open pdf file with pdf.xml file extension

    Hi
    I can't open a file with pdf.xml extension. Does anyone have this problem? How did you resolve it?

    Actually, the extension is just .xml. Anything before the period doesn't count as part of the extension.
    Your browser may be able to open it, if not see here ---->XML File (What It Is & How To Open One)

Maybe you are looking for