Go Back   Club CDFreaks - Knowledge is Power > International Chat: Software related > Nero SDK Discussion Forum


Commercial message



Nero SDK Discussion Forum Discuss, NeroEstimateTrackSize() always returns -1 at International Chat: Software related forum; Whenever I use the NeroEstimateTrackSize() function the result is always -1. I use the same function to create the CNeroIsoTrack* pointer as I do in my BurnCD function (which works a treat). Here is my code: ============================================== UINT CNeroInterface::EstimateSize() { UINT nSize; BOOL bRetVal = TRUE; CNeroIsoTrack* pTrack = NULL; NERO_ISO_ITEM* pItem = NULL;


Reply
 
Thread Tools
Old 06-04-2004   #1 (permalink)
New on Forum
 
Join Date: Mar 2004
Location: Herts, UK
Posts: 27
NeroEstimateTrackSize() always returns -1

Whenever I use the NeroEstimateTrackSize() function the result is always -1.

I use the same function to create the CNeroIsoTrack* pointer as I do in my BurnCD function (which works a treat).

Here is my code:

==============================================

UINT CNeroInterface::EstimateSize()
{
UINT nSize;
BOOL bRetVal = TRUE;
CNeroIsoTrack* pTrack = NULL;
NERO_ISO_ITEM* pItem = NULL;
NERO_FILESYSTEMTRACK_OPTIONS* pTrackOptions;
CString Buffer;

if(NULL == (pTrackOptions = new
NERO_FILESYSTEMTRACK_OPTIONS))
return 0;

if(FALSE == (m_bNeroInitialised = InitialiseNero()))
{
delete pTrackOptions;
return 0;
}

if(FALSE != GetIsoTrack(&pTrack, &pItem))
{
memset(pTrackOptions, 0, sizeof
NERO_FILESYSTEMTRACK_OPTIONS));

pTrackOptions->netsStructureSize =
sizeof(NERO_FILESYSTEMTRACK_OPTIONS);
pTrackOptions->netspCDStamp = NULL;
pTrackOptions->netsMediaType = MEDIA_CD;
pTrackOptions->netsDeviceHandle = m_NeroDeviceHandle;
pTrackOptions->netsFlags = GetBurnFlags();
pTrackOptions->netsFSContainer = NULL;
pTrackOptions->netsFSContainerFlags = 0;

nSize = NeroEstimateTrackSize(pTrack, NETS_EXACT_SIZE,
pTrackOptions);
}

if(pItem)
DeleteIsoItemTree(pItem);

delete pTrackOptions;

if(FALSE == CleanUp())
bRetVal = FALSE;

return nSize;
}

==============================================

My InitialiseNero() function calls:

NeroAPIGlueConnect()
NeroInit()
NeroGetAvailableDrivesEx()
NeroOpenDevice()

with all the required parameters and is also used by my BurnCD() function and works correctly.

The GetIsoTrack() function is based on the same function in NeroCmd - CBurnContext::GetIsoTrack and again is used by my BurnCD() function and works correctly.

The GetBurnFlags() function is also used in my BurnCD function, but are normally set to:

NBF_WRITE | NBF_DISABLE_ABORT | NBF_BUF_UNDERRUN_PROT |
NBF_DETECT_NON_EMPTY_CDRW | NBF_CD_TEXT | NBF_VERIFY;

I have tried all combinations of the dwFlags member of the NeroEstimateTrackSize() function:

NETS_FILESYSTEM_OVERHEAD
NETS_DATA
NETS_EXACT_SIZE

but with the same results.

Any help with my problem would be greatly appreciated.

I am using Nero SDK version 1.04 and Nero Burning Rom V6.0.0.0

Best regards

codekiddie
codekiddie is offline   Reply With Quote
Old 06-04-2004   #2 (permalink)
Nero Developer
 
Join Date: Oct 2003
Posts: 605
If you take a minute to look at the comments in NeroAPI.h you will realize that you need at least version 6.0.0.14 in order for NeroEstimateTrackSize to work.

Please update your installation and retry.
alexp is offline   Reply With Quote
Old 06-04-2004   #3 (permalink)
New on Forum
 
Join Date: Mar 2004
Location: Herts, UK
Posts: 27
Thanks for that.

In my rush to add the functionality, I forgot to check the obvious.

Regards

codekiddie
codekiddie is offline   Reply With Quote
Old 10-08-2004   #4 (permalink)
New on Forum
 
Join Date: Jun 2004
Location: Manchester
Posts: 23
Re: NeroEstimateTrackSize() always returns -1

Does anyone know of a way to calculate the size of the ISO track in Nero prior to version 6.0.0.14?
AndyNugent is offline   Reply With Quote
 
Reply


If you can't find where you are looking for, then become a member and get an answer fast! We have thousands of people online every moment of the day to help you! Click here



Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
NeroEraseDisc returns NDE_GENERIC_ERROR dietmarR Nero SDK Discussion Forum 1 21-09-2007 13:34
what is up with Superman Returns? narrowacres DVDFab / DVD Region+CSS Free 12 26-12-2006 19:08
NeroEstimateTrackSize crashes fpa2 Nero SDK Discussion Forum 6 17-06-2005 13:02
NeroGetCDInfo() returns 0, NeroGetLastDriveError() returns NDE_NO_ERROR brownc93 Nero SDK Discussion Forum 0 31-05-2005 04:12
NeroEstimateTrackSize() sajith Nero SDK Discussion Forum 0 03-09-2004 13:53


All times are GMT +2. The time now is 15:28.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0