My mistake.
m_timer is a member variable. It is initialized in the class
constructor.
Doing:
MyClass::onLoadUri(....)
{
nsresult rv;
nsCOMPtr<nsITimer> m_timer = do_CreateInstance("@mozilla.org/
timer;1", &rv);
}
Where I created a temporary with the same name as the member var is ..
well not what I wanted :-)
It works fine now. And for those interested in a complete example see
the file
"mozilla/layout/inspector/src/inSearchLoop.cpp" in the mozilla source
code.
-Martin
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding