#1 Burning Software

It is currently Thu Dec 19, 2024 11:47 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Problems appending files to an existing directory
PostPosted: Mon Mar 06, 2006 6:33 pm 
Offline

Joined: Sun Oct 30, 2005 11:26 pm
Posts: 25
I am trying to add files to a directory that exists on a CDRW disk.

I import all the tracks, then walk the tree looking for my directory. When I find the directory, I use that NodeID to add the file to that node.

This works fine the first time that I use it, but on the 2nd try it it overwrites the previously added file. I can never seem to have more than 2 files in that directory.

I am closing the session between writes and ejecting/loading the disk. It works just fine when appending files to the root, but not to subdirectories.

Is it possible to add new files to a directory other than to the Root? If so, is there anything special that I must do?

Thanks


Top
 Profile  
 
 Post subject: Re: Problems appending files to an existing directory
PostPosted: Tue Mar 07, 2006 12:02 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Yes, if course it's possible to do what you're trying to do. Doble check your code and if you'd have problems - sumbit the code to support staff Just make sure it would not be something like passing pointer to pointer like it was last time :)

mkupka wrote:
I am trying to add files to a directory that exists on a CDRW disk.

I import all the tracks, then walk the tree looking for my directory. When I find the directory, I use that NodeID to add the file to that node.

This works fine the first time that I use it, but on the 2nd try it it overwrites the previously added file. I can never seem to have more than 2 files in that directory.

I am closing the session between writes and ejecting/loading the disk. It works just fine when appending files to the root, but not to subdirectories.

Is it possible to add new files to a directory other than to the Root? If so, is there anything special that I must do?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 07, 2006 9:46 am 
Offline

Joined: Sun Oct 30, 2005 11:26 pm
Posts: 25
I found the solution. I should only import that last track that was written to the disk, not all of the previous tracks.

One thing that I think would have helped with the pointer to a pointer problem, would be to rely on the type checking of the compiler, after all, that's why it is there. Using void* for all the pointers make it easy for these kinds of mistakes to go unnoticed and makes debugging much more difficult.

Also, are you interested in suggestions for how to word some of the documentation? If so, I can send you some of my suggestions for the descriptions for some of the parameters.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 07, 2006 2:03 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
1) Good!

2) You're 200% correct upon this! In new codebase there would be type cast pointers and not PVOID everywhere :)

3) Sure! Thank you for doing this!

mkupka wrote:
I found the solution. I should only import that last track that was written to the disk, not all of the previous tracks.

One thing that I think would have helped with the pointer to a pointer problem, would be to rely on the type checking of the compiler, after all, that's why it is there. Using void* for all the pointers make it easy for these kinds of mistakes to go unnoticed and makes debugging much more difficult.

Also, are you interested in suggestions for how to word some of the documentation? If so, I can send you some of my suggestions for the descriptions for some of the parameters.

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group