Author Topic: reloading pyxll twice inadvertantly  (Read 1713 times)

mtsm

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
reloading pyxll twice inadvertantly
« on: June 07, 2012, 08:00:04 PM »
hey, if you reload pyxll from the menu and then accidentally click on the excel window, that means effectively
bring the pyxll popup (which says "pyxll reload OK") below the excel window and then repeat the reloading
operation from the excel menu again (presumably because you did not see the pyxll popup), then that
crashes your session. this is a nasty one. can you fix this please? thanks.

Tony

  • Administrator
  • Hero Member
  • *****
  • Posts: 610
  • Karma: +14/-1
    • View Profile
Re: reloading pyxll twice inadvertantly
« Reply #1 on: June 08, 2012, 08:50:20 AM »
Hi,

thanks for the bug report. I have a feeling that particular problem will already have been fixed by some changes made for the next release, but I will double check and make sure this is fixed for the next release.

For now you should be able to remove the example 'on_reload' callback (see http://www.pyxll.com/docs/examples/callbacks.html), or change it to use pyxll.xlcAlert (http://www.pyxll.com/docs/automation.html#macro-sheet-and-command-functions) instead of win32api.MessageBox and I think that will probably fix it until the next release.

Best regards,
Tony