Crash when load neroAPI.dll

vbimport

#1

Hi all,
I was using neroAPI to burning CD. It was crashed when it call function NeroAPIGlueconnect(NULL)
But I received the message that

First-chance exception at 0x19741d98 (burncd.dll) in ServerInterface.exe: 0xC0000005: Access violation reading location 0x00000000.
Unhandled exception at 0x19741d98 (burncd.dll) in ServerInterface.exe: 0xC0000005: Access violation reading location 0x00000000.

Even I have not installed Nero on my machine(Windows 2000 Pro)
Anybody know how to fix this bug? Or any defect of NeroAPI from Windows 2000 .Thanks.


#2

Not sure I understand what you mean by:
“Even I have not installed Nero on my machine(Windows 2000 Pro)”

If you mean by this that you do not have Nero installed then this will explain the error as it is a requirement that Nero is installed.

Mike


#3

That’s right.But I still receive this message if I have Nero (6.6.0.15a) installed on my machine (Windows 2000 Pro).
I think there is another process conflict with NeroAPI.
If you know more about function NeroAPIGlueconnect(), pls help me.
More my application works well on windows XP.
Thanks.
Kha Nguyen


#4

Does Nero work fine on the W2kp system?

Do you use the static or dynamic library? Can you try out the other?


#5

yes,It work well on W2k.
I used neroAPI for burn project.
My project is very big.I think if i try out the other it is not good.
Do you know about function NeroAPIGlueconnect() deeply? Thanks.
And do u know what application NeroAPI will conflict?
Thanks,
Kha Nguyen


#6

I assume that NeroAPIGlueconnect just loads the NeroAPI.dll and maybe initializes some settings.

Ensure that Nero is properly installed and that the NeroAPI.dll is the unmodified original version of the install. Also ensure that there is only one NeroAPI.dll in the dll search path (or just search your whole system), just to assure that the right DLL gets loaded.

Secondly, if you are familiar with the “Depends” VC++ tool, you can open the NeroAPI.dll with Depends to see what modules are statically loaded by the NeroAPI dll. Maybe one or another system component requires an update.


#7

Thanks you so much.
Actually,I have not Nero installed on my machine.So that there is no NeroAPI.dll.
My app. crashed at function NeroAPIGlueconnect(NULL).
Do u know why?
I was testing my app. without Nero.
Thanks,
Kha Nguyen.


#8

As I said earlier it is a requirement that Nero is installed, if you do not have Nero installed then this will explain the error

Mike


#9

KhaNguyen, RTFM - title page

The NeroAPI will only work with
a fully installed Nero version!

Or even note that there is a Nero API manual.


#10

Thanks.But I want to notice user install Nero if there is no Nero on machine.
Do u know the defect of NeroAPI on W2K?


#11

One possible solution would be to attempt to retrieve the Nero.Nero COM object class ID. Although, note that this does not guarantee that Nero is properly installed or which version of Nero is installed.


	// Initialize COM (if not already done, do it here).
	VERIFY(SUCCEEDED(CoInitialize(NULL)));

	// Retrieve the Nero.Nero COM object class ID from the program ID.
	CLSID CLSID_Nero_Nero;
	HRESULT hResGetNeroCLSID(CLSIDFromProgID(L"Nero.Nero", &CLSID_Nero_Nero));

	// Uninitialize COM.
	CoUninitialize();

	// If the Nero ClassID could not be retrieved.
	if (FAILED(hResGetNeroCLSID))
	{
		// Output an error.
		AfxMessageBox(_T("Nero is not properly installed."), MB_ICONEXCLAMATION);

		// Error occured.
		return false;
	}

	// Alright, Nero seems to be installed.
	...


#12

Thanks.It is so surprised. I have just reinstalled a new windows 2000 Pro on my machine. And my software worked well with Nero installed or not. It didn’t crash.
What the hell did happen with my windows 2000? Anybody know?