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


Commercial message



Nero SDK Discussion Forum Discuss, Issue/Bug in NeroGetAvailableDrivesEx and Nero 7 at International Chat: Software related forum; I'm running into a an issue with SDK Version 1.06 and Nero 7 and am wondering if anyone else has seen the issue and if any one has any ideas. Let me layout the issue. The following is a the minimum set of code that is required to


Reply
 
Thread Tools
Old 17-11-2005   #1 (permalink)
New on Forum
 
Join Date: Oct 2005
Posts: 3
Issue/Bug in NeroGetAvailableDrivesEx and Nero 7

I'm running into a an issue with SDK Version 1.06 and Nero 7 and am wondering if anyone else has seen the issue and if any one has any ideas. Let me layout the issue. The following is a the minimum set of code that is required to see the issue:

NERO_SETTINGS neroSettings;
CString langString("nero.txt");
CString vendString("ahead");
CString softString("Nero - Burning Rom");
CString filesPath("NeroFiles");

neroSettings.nstLanguageFile = langString;
neroSettings.nstNeroFilesPath = filesPath;
neroSettings.nstVendor = vendString;
neroSettings.nstSoftware = softString;

if (NeroAPIGlueConnect(NULL))
{
NEROAPI_INIT_ERROR initErr = NeroInit(&neroSettings,NULL);

if (initErr == NEROAPI_INIT_OK)
{
NERO_SCSI_DEVICE_INFOS *infos = NeroGetAvailableDrivesEx(MEDIA_NONE,NULL);
NeroFreeMem(infos);

NeroClearErrors();
NeroDone();
NeroAPIGlueDone();
}
}


The issue I'm seeing is that on occasion I'll receive an access violation when I'm closing down Nero (NeroAPIGlueDone). After tracing and debugging for a long time I noticed the following:

When NeroGetAvailableDrivesEx is called it creates two threads that have a starting address that points to code inside the NeroErr.dll at location base_module_address + 7ED3. The call succeeds as does the call to NeroFreeMem. When calling NeroDone one of the threads will exit, but on occasion the other one does not, but the call to NeroDone reports everything is cool. We then proceed to call NeroAPIGlueDone which unloads the NeroErr.dll from memory. At some point after this the Access Violation occurs and it's coming from the thread that did not exit during the call to NeroDone. The AV from that thread occurs in the address space where NeroErr.dll was loaded at base_module_address + 7E6B. The AV of course makes sense because the NeroErr.dll was unloaded by NeroAPIGlueDone. The real issue however is the fact that one of those two threads did not exit during the call to NeroDone. As stated earlier this does not happen all the time so executing the above code once might not yield the error; however, wrapping the above code in a while(true) loop always produces the error. Has anyone else seen this issue? Is there a step in tearing down nero that I'm missing? Does anyone know if we can get the Debug symbols for Nero so I can dig deeper into the issue? BTW, I'm running Windows XP SP2 and am using Visual Studio 2005 to develop a native exe. Any help or ideas would be greatly appreciated.
Jim Fafrak is offline   Reply With Quote
Old 30-05-2006   #2 (permalink)
New on Forum
 
Join Date: May 2006
Posts: 1
Re: Issue/Bug in NeroGetAvailableDrivesEx and Nero 7

I have a similar behaviour. NeroGetAvailableDrivesEx creates additional threads. Using VS2003, Nero 5 and API Version 5582 those threads remained until the host application terminated.

With VS2005, Nero 7 and the same API-Version these threads terminate at some point after calling NeroAPIGlueDone and crash. I exchanged the API Version and I stepped back to VS2003. The problem remained. So it seems to be an issue of Nero 7. Debugging the program step by step reduces the frequence of occurence, wait loops won't help.

The only workaround that I can currently think of would be to initialize the API once in the program instead of initializing it multiple times whenever it's needed.
chris1234 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
Problem with Nero 8 and NeroGetAvailableDrivesEx Sparhawk42 Nero SDK Discussion Forum 5 26-10-2007 09:45
NeroGetAvailableDrivesEx(MEDIA_CD, NULL) rtt100 Nero SDK Discussion Forum 4 22-08-2006 21:09
Error with NeroGetAvailableDrivesEx() rfoushee Nero SDK Discussion Forum 1 31-03-2005 21:19
NeroGetAvailableDrivesEx(MEDIA_CD, NULL) Steve Wagner Nero SDK Discussion Forum 1 20-02-2004 15:46
the patch to fix overburn bug of nero 6.0.1.5 is also valid for nero vision express? cerejaxrv Nero & InCD 1 25-09-2003 20:06


All times are GMT +2. The time now is 06:19.


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