Exception in masked control

Frank Niessink wrote:

IndexError: position 11436368 out of range of control

Looking at the code in masked.textctrl and masked.numctrl it seems
that the big position is returned by a call to TextCtrl.GetSelection()
in masked.textctrl.BaseMaskedTextCtrl.

Any suggestion why TextCtrl.GetSelection would return such a big value?

I suppose it's possible that the windows API that is called is failing, but wx isn't checking for the error and so whatever garbage was in the values originally is what is getting passed back. I'm not sure why the API would fail though, MSDN doesn't specify any error conditions...

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!