************************************************************
* Call to xpconnect wrapped JSObject produced this error: *
[Exception... "Component returned failure code: 0xc1f30001
(NS_ERROR_NOT_INITIALIZED) [nsIPrefBranch.getBoolPref]" nsresult:
"0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame ::
chrome://messenger/content/msgMail3PaneWindow.js ::
ScrollToMessageAfterFolderLoad :: line 87" data: no]
************************************************************
...
Error loading with many headers to download: [Exception... "Component
returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED)
[nsIMsgFolder.updateFolder]" nsresult: "0x8000ffff
(NS_ERROR_UNEXPECTED)" location: "JS frame ::
chrome://messenger/content/commandglue.js :: ChangeFolderByURI :: line
221" data: no]
...
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1220860224 (LWP 27190)]
0xb4d0b761 in nsMsgDBView::Open (this=0x8c35a00, folder=0x89ed160,
sortType=18, sortOrder=1, viewFlags=0,
pCount=0xbfa999dc) at nsMsgDBView.cpp:1832
1832 mIsNews = !strcmp("nntp",type.get());
(gdb)
Here's the function that I added to helloworld, and seems to have left
thunderbird in such a bad state:
function colgate()
{
var m_prefs =
Components.classes["@mozilla.org/preferences-service;1"].createInstance(Components.interfaces.nsIPrefService);
var m_branch = m_prefs.getBranch( "mail.accountmanager." );
var sieve_server = m_branch.getCharPref( "accounts" );
var sieve_port = m_branch.getCharPref( "defaultaccount" );
alert( "Server: " + sieve_server );
alert( "Port: " + sieve_port );
return null;
}
Am I missing something? Is this a bug?
Thanks,
Diego.
>var m_prefs =
>Components.classes["@mozilla.org/preferences-service;1"].createInstance(Components.interfaces.nsIPrefService);
>
>
Have you never heard of getService?
--
Warning: May contain traces of nuts.
Thanks a lot, that was it.
Diego