in reply to Capturing a browser event in an ActiveX Browser Window

The immediate problem is the the BeforeNavigate2 event is incorrectly handled by AxWindow with the net result of trying to deref a null pointer (memory at 0x00000000). This is a bug in AxWindow, however there are also known bugs in BeforeNavigate2 just to add fun. As you can see StatusTextChange is a simple method, BN2 is more complex and needs to be fed appropriately - it is not being fed what it needs. I suggest you contact the author or if you want to do ActiveX in Perl I understand ActiveState has some commercial (ie pay for) tools that probably work.

void BeforeNavigate2( IDispatch *pDisp, VARIANT *&url, VARIANT *&Flags, VARIANT *&TargetFrameName, VARIANT *&PostData, VARIANT *&Headers, VARIANT_BOOL *&Cancel ); void StatusTextChange( BSTR Text );

cheers

tachyon