I am trying the following:
void loadURITimeOut(nsITimer *aTimer, void* aClosure)
{
printf("loadURITimeOut\n") ;
}
onLoadUri (.....)
{
nsresult rv;
nsCOMPtr<nsITimer> m_timer = do_CreateInstance("@mozilla.org/timer;
1", &rv);
if (!NS_FAILED(rv)) {
rv = m_timer->InitWithFuncCallback(loadURITimeOut, 0, 100,
nsITimer::TYPE_REPEATING_SLACK);
if (NS_FAILED(rv)) {
printf("Error\n");
}
}
}
Everything seems fine. Except that the callback function never gets
called.
Do I need to initialize the timing system in some way or what am I
missing ?
-Martin
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding