Hi,
Im new to XPCOM and Iam excited with XPCOM technology. But I could not
achieved to start to use nsSample and start first sample. I have
installed mozilla in my usr/local directory. Also I have mozilla source
in another directory. After compiling all the mozilla sources, there are
seen both libxpcomsample.so and nsTestSample in xpcom/sample directory.
I have copied the nsTestSample to my /bin/ directory and
libxpcomsample.so in /bin/components directory. After setting
LD_LIBRARY_PATH I have run the nsTestSample file. It gives below outputs
and seems to passed the test.
---------------------------------------------------------------
###!!! ASSERTION: couldn't get thread private index:
'nsThread::kIThreadSelfIndex != 0', file nsThread.cpp, line 375
###!!! Break: at file nsThread.cpp, line 375
Warning: MOZILLA_FIVE_HOME not set.
Type Manifest File: /bin/components/xpti.dat
nsNativeComponentLoader: autoregistering begins.
nsNativeComponentLoader: autoregistering succeeded
nNCL: registering deferred (0)
Inital print: initial value
Set value to: XPCOM defies gravity
Final print : XPCOM defies gravity
Test passed.
Getting service on shutdown. Denied.
ContractID: @mozilla.org/observer-service;1
IID: {d07f5192-e3d1-11d2-8acd-00105a1b8860}
###!!! ASSERTION: Component Manager being held past XPCOM shutdown.:
'cnt == 0', file nsXPComInit.cpp, line 592
###!!! Break: at file nsXPComInit.cpp, line 592
-------------------------------------------------------------------------------
But after running the xpconnect.sample.html it outputs and makes
nothing. When I look at javascript console it says :
--------------------------------------------------------------------------------
Error: sample has no properties
Source File:
file:///disk4/mozilla-source-1.0/mozilla/xpcom/sample/xpconnect-sample.html
Line: 150
---------------------------------------------------------------------------------
So what is wrong ? Is there anything I have misunderstood ?
Please help me...
Thanks anyway...
Okan
