leftos / nba-stats-tracker

An in-depth basketball statistical analysis tool, compatible with most leagues around the world, as well as the NBA 2K12 savegames.
Apache License 2.0
1 stars 5 forks source link

Player Shooting Stats tab in League Overview doesn't get populated #2

Closed leftos closed 11 years ago

leftos commented 11 years ago

Versions affected by this issue: 1.16+

I'm opening this issue in case someone wants to take a look at it. The datagrid in the Player Shooting Stats tab in League Overview will, randomly, not get populated sometimes, while most of the time it works fine. It seems to happen only(?) if I view Team Other Stats first, and only if I run the program without being hooked to Visual Studio's debugger. I have no idea what triggers this issue, and I've spent hours trying to debug it. No silent exceptions in the BackgroundWorkers of League Overview from what I understand, I even added checks for those.

To reproduce it, open a database, then go to League Overview, then Team Other Stats, then to Player Shooting Stats. Again, it may work for a couple of times, then randomly fail. If anyone can figure out what's going on, I'd be grateful.

leftos commented 11 years ago

v1.16.4 switched from Task.Factory to async/await and it seems to work correctly now.