#1 Burning Software

It is currently Thu Dec 19, 2024 7:03 am

All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: StarBurn_ISO9660JolietFileTree_Add acting weird
PostPosted: Fri Apr 04, 2008 9:11 am 
Offline

Joined: Tue Feb 20, 2007 9:32 am
Posts: 8
StarBurn_ISO9660JolietFileTree_Add return EN_SUCCESS, but last parameter (p__PPVOID__ISO9660JolietFileTreeNode__NewChild) is NULL. Why is this happens?


Top
 Profile  
 
 Post subject: Re: StarBurn_ISO9660JolietFileTree_Add acting weird
PostPosted: Fri Apr 04, 2008 1:01 pm 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
xelloss wrote:
StarBurn_ISO9660JolietFileTree_Add return EN_SUCCESS, but last parameter (p__PPVOID__ISO9660JolietFileTreeNode__NewChild) is NULL. Why is this happens?


You give me is not a lot of information :)
Please show more of your code.

P.S.
If I have got currently right, you past in StarBurn_ISO9660JolietFileTree_Add(..) not NULL parameter
p__PPVOID__ISO9660JolietFileTreeNode__NewChild, but this parameter is returned with NULL value???


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 07, 2008 6:14 am 
Offline

Joined: Tue Feb 20, 2007 9:32 am
Posts: 8
Here is the code:

Code:
ExceptionNumber =
      StarBurn_ISO9660JolietFileTree_Add(
            m_ISO9660JolietFileTree,
            (PCHAR) (&ExceptionText),
            sizeof(ExceptionText),
            &ulSystemError,
            Name,
            NewName,
            FILE_TIME_LAST_WRITE,
            &CurrentNode,
            &pNewChild);


Before execution of StarBurn_ISO9660JolietFileTree_Add() parameter pNewChild is NULL. And after execution it still remains NULL, but ExceptionNumber is EN_SUCCESS. As I understand, pNewChild should be not-NULL if StarBurn_ISO9660JolietFileTree_Add() call successful and it should point to a new created child. Therefore this behavior seems a little weird to me.

BTW, this happens only on a specific filenames and it seems that long names is especially disliked. For example Copy (2) of Copy of Copy of Copy of Copy of Copy of Copy of Copy of Copy of Copy of Copy of New Bitmap Image.bmp


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 07, 2008 7:57 am 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
xelloss wrote:
Here is the code:

Code:
ExceptionNumber =
      StarBurn_ISO9660JolietFileTree_Add(
            m_ISO9660JolietFileTree,
            (PCHAR) (&ExceptionText),
            sizeof(ExceptionText),
            &ulSystemError,
            Name,
            NewName,
            FILE_TIME_LAST_WRITE,
            &CurrentNode,
            &pNewChild);


Before execution of StarBurn_ISO9660JolietFileTree_Add() parameter pNewChild is NULL. And after execution it still remains NULL, but ExceptionNumber is EN_SUCCESS. As I understand, pNewChild should be not-NULL if StarBurn_ISO9660JolietFileTree_Add() call successful and it should point to a new created child. Therefore this behavior seems a little weird to me.

BTW, this happens only on a specific filenames and it seems that long names is especially disliked. For example Copy (2) of Copy of Copy of Copy of Copy of Copy of Copy of Copy of Copy of Copy of Copy of New Bitmap Image.bmp


Ok, please show me part of source code where you create file tree, i mean useing function StarBurn_ISO9660JolietFileTree_Create(..).


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 07, 2008 8:01 am 
Offline

Joined: Tue Feb 20, 2007 9:32 am
Posts: 8
Code:
ExceptionNumber =
      StarBurn_ISO9660JolietFileTree_Create(
            &m_ISO9660JolietFileTree,
            ( PCHAR )( &ExceptionText ),
            sizeof( ExceptionText ),
            &Status,
            ( PCALLBACK )( Callback ),
            ( PVOID )( &m_TreeNodes ),
            TRUE,
            FALSE,
            TRUE,
            FILE_TREE_JOLIET);


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 07, 2008 3:15 pm 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
xelloss wrote:
Code:
ExceptionNumber =
      StarBurn_ISO9660JolietFileTree_Create(
            &m_ISO9660JolietFileTree,
            ( PCHAR )( &ExceptionText ),
            sizeof( ExceptionText ),
            &Status,
            ( PCALLBACK )( Callback ),
            ( PVOID )( &m_TreeNodes ),
            TRUE,
            FALSE,
            TRUE,
            FILE_TREE_JOLIET);


You create file tree with p__BOOLEAN__IsInvalidKidIgnore = TRUE, in this reason StarBurn_ISO9660JolietFileTree_Add() return EN_SUCCESS for invalid file name.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 08, 2008 4:54 am 
Offline

Joined: Tue Feb 20, 2007 9:32 am
Posts: 8
What exactly is invalid here, is it a filename length? And how can I add this file to a tree and burn it?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 08, 2008 10:50 am 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
xelloss wrote:
What exactly is invalid here, is it a filename length? And how can I add this file to a tree and burn it?


Yes, ISO 9660 Joliet Image support file name with length < 108 chars.

You can create image with p__BOOLEAN__IsInvalidKidIgnore = TRUE, and catch file tree callback CN_FILE_TREE_PROGRESS_IGNORE and handle ignored file name. You can inform user about invalid name or rename this file and try to add this file again with new name.
You can see how to catch file tree callback CN_FILE_TREE_PROGRESS_IGNORE in MSVC ImageBuilder sample.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 09, 2008 5:19 am 
Offline

Joined: Tue Feb 20, 2007 9:32 am
Posts: 8
So, there is no automatic conversion and I need to convert this name manually?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 09, 2008 2:34 pm 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
xelloss wrote:
So, there is no automatic conversion and I need to convert this name manually?


Unfortunately you must do this manually.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 10, 2008 4:19 am 
Offline

Joined: Tue Feb 20, 2007 9:32 am
Posts: 8
OK. Thanks for the help.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 10, 2008 7:10 am 
Offline

Joined: Fri Jan 26, 2007 4:31 pm
Posts: 452
xelloss wrote:
OK. Thanks for the help.


Is glad to help :)


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 33 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group