Hi All:

Mac OS X 10.4.11, Xcode 2.5, mozilla code for FireFox 3.01. Using the  
following .mozconfig to build mozilla:

. $topsrcdir/browser/config/mozconfig
. $topsrcdir/build/macosx/universal/mozconfig
ac_add_options --enable-svg
ac_add_options --enable-quartz
ac_add_options --enable-optimize
ac_add_options --disable-debug
ac_add_options --disable-static
ac_add_options --enable-shared
ac_add_options --disable-tests
#
# According to the Mac OS X Build Prerequisite, at (http:// 
developer.mozilla.org/en/docs/Mac_OS_X_Build_Prerequisites)
# you have to disable libxul. Why?
#
ac_add_options --disable-libxul
mk_add_options [EMAIL PROTECTED]@/../build
mk_add_options MOZ_MAKE_FLAGS="-s -j8"   # use parallel make

I've got some code:

   nsCOMPtr< nsIJSContextStack > contextStack;
   serviceManager->GetServiceByContractID("@mozilla.org/js/xpc/ 
ContextStack;1",
                                          NS_GET_IID 
( nsIJSContextStack),
                                          getter_AddRefs(contextStack));

   if (contextStack == NULL)
   {
     return do_QueryInterface(NULL);
   }

   JSContext* context = NULL;
   contextStack->Peek(&context);

The variable 'context' is then passed off to another function.

The variable 'contextStack' seems to contain a valid value in it  
after the GetServiceByContractID executes, but what's causing me to  
scratch my head is that contextStack->Peek() sets 'context' to NULL.

Is there someway to enumerate what's in the contextStack - proving  
that there's something in the stack.


Thanks in advance for your time


John Cebasek


_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to