REGXPCOM.exe won't register components in release build

RESOLVED INVALID

Status

()

Core
XPCOM
P3
major
RESOLVED INVALID
17 years ago
9 years ago

People

(Reporter: Aaron Leventhal, Assigned: Ray Whitmer)

Tracking

Trunk
x86
Windows 98
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

17 years ago
I'm getting an error message from regxpcom, and it's only doing half of it's 
job.

I cannot find any documentation anywhere that talks about any of this. I 
understand from old newsgroup emails, regxpcom is run automatically in debug 
builds but not in release builds. It seems to generate xpti.dat and 
component.reg.

When I run it manually to register my component moz_speech, which is a .dll 
and .xpt file in the Components directory, regxpcom gives me an error, and only 
puts the speech component in xpti.dat. Initializing the component no longer 
works as it did in the debug build, and searching through the binary file 
component.reg shows it's not in there.

I get this error from regxpcom -
**************************************
nsNativeComponentLoader: SelfRegisterDll
(C:\MOZ\SEAMONKEY\components\moz_speech.dll) Load FAILED with error: error 31.
**************************************

Keep in mind this is a nightly release build created from mozilla-win32-
installer.exe.

Aaron
(Assignee)

Comment 1

17 years ago
Perhaps this is too obvious, but have you checked what RegisterSelf in your DLL 
is returning?  It appears pretty obvious that is returning a 31, which means it 
was not successful.
(Reporter)

Comment 2

17 years ago
I tried the same test with the included sample component and it fails too!
cd \src\mozilla\xpcom\sample
nmake /f makefile.win
cd \src\mozilla\dist\WIN32_D.OBJ\bin\components
copy sample*.* \mozrelease\seamonkey\components
cd \mozrelease\seamonkey
del components\xpti.dat
del component.reg
regxpcom
===>> Same error 31.

Forive me for not being able to debug this myself. I don't understand the first 
thing about what goes on with xpcom registration.
(Reporter)

Comment 3

17 years ago
Duh - a debug version of a .dll won't work with a release build.
The XPCOM Sample does work.
Status: NEW → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → INVALID

Updated

9 years ago
Component: XPCOM Registry → XPCOM
QA Contact: rayw → xpcom
You need to log in before you can comment on or make changes to this bug.