RE: Null Reference Exception after Forms.TabPageCollection.Remove(

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Dave,

Thank you for your prompt response.

Sorry that I didn't clarify in my previous reply.

The KB 893005 was addressing a case whose scenario was different from
yours, but with similar symptoms(the call stack of this case when the
exception occurs is the same as your program's).

In that case, an object which is subclassed by the ToolTip can throw an
exception if an error occurs while unsubclassing the control. The Framework
wouldn't detect this situation correctly and could free the subclass
procedure's memory while it was still set to be the control's window
procedure.

In addition, there're several cases recorded in our inner data base, whose
scenarios are different, but with the similar symptoms as your program.
They were all solved by the hotfix 893005.

Please give hotfix 893005 a try and let me know if it works.

Sincerely,
Linda Liu
Microsoft Online Community Support

.



Relevant Pages

  • which foo(x)
    ... I have a subclass of ClassA - ClassB. ... Instances of ClassX and ClassY are created outside the context of the ... code that invokes foo. ... If, in this scenario, I send a.fooI see that it is the super ...
    (comp.lang.java)
  • which foo(x)
    ... I have a subclass of ClassA - ClassB. ... Instances of ClassX and ClassY are created outside the context of the ... code that invokes foo. ... If, in this scenario, I send a.fooI see that it is the super ...
    (comp.lang.java)
  • Re: How to catch cross thread exceptioin
    ... For example, in the case of certain kinds of i/o operations, one way to manage a timeout is simply to close the i/o object from another thread when the timeout occurs. ... An alternative approach would be to simply have the main thread check for some state that's managed by the other thread, either throwing your "timout exception" when the state is set to some appropriate value, or simply handling the condition as if an exception had been thrown (depending on what works best for your design). ... There are in fact ways to generate exceptions in one thread from another, but they are all dependent on the specific scenario. ...
    (microsoft.public.dotnet.framework)
  • Re: whats the point in finally?
    ... Crouchez wrote: ... I don't understand why there is more use of resources either in Scenario B? ... catching and hiding Exception is such a dangerous thing to do ... // Clean up after blah ...
    (comp.lang.java.programmer)
  • Stack unwinding
    ... called during stack unwinding caused by exception. ... Scenario 3 is not stack ... destructor of the object. ... local object defined; ...
    (microsoft.public.vc.language)