Dear Christian,
Thanks very much for your help. I managed to get the final problem
solved regarding the crashed inside nsSampleImplConstructor().
Following the sample in nsPrefetchService.cpp. I realise that
AddProgressListener() should be called inside Observe() function
instead of the
However, why not just use:
NS_IMPL_ISUPPORTS4(nsSampleImpl, nsIWebProgressListener,
nsISupportsWeakReference, nsIObserver, nsISample)
(if you do that, you have to remove NS_IMPL_ADDREF and NS_IMPL_RELEASE)
--
Hi Christian,
Thanks for your quick response.
After implementing