title: SysUtils.LoadPackage replaces Aplication.OnMessage handler
body: <p>I have a main form where I set a handler for the <code>Application.OnMessage</code> event. (Code of this handler is placed in the main form). Then, while running the program, there can be calls to <code>SysUtils.LoadPackage</code> that loads some bpl-package. And after that is loaded, the handler of <code>Application.OnMessage</code> is changed.  </p>
  
  <p>I couldn't find what doing this. At least there is not right such code that goes <code>Application.OnMessage :=</code> in the package. </p>
  
  <p>One more thing: in the debugger, before LoadPackage, I see OnMessage handler described as <code>Main.TMainForm.AppMessage</code>. All other handlers (such as OnMinimize, OnModalBegin e.t.c.) are nil. And after LoadPackage all events have handlers, described as <code>Vcl.AppEvnts.TMultiCaster.DoMessage</code>.</p>