So I'm working on debugging a problem with variables getting truncated. I think I found where it's happening, but my call stack is 67 levels deep. ;_;

Comments

  1. Stringly typed datetimes. I found the culprit... At level 49 of the call stack. The offending function is a data sanitizing routine that didn't know how to handle 12 hour times with the AM/PM at the end. It'd truncate those off then convert so afternoon times would be evaluated as 24 hour notation and turn to AM.

    ReplyDelete
  2. The real WTF? It's happening on enter. Not exit, and affecting an entire grid, not just a single cell or edit. (Actually, there's a lot more WTF-ery than that, but this is a code base that probably started in the DOS Pascal era.)

    ReplyDelete
  3. Hmm... Are those teardrops, fangs, or dimples, in your smiley?

    ReplyDelete

Post a Comment