I'm writing app that does some hot-reloading of files and from time to time, "First chance exception" is raised by debugger. I've tried several tests and I cannot figure out why this keep happening.
time_t time = fs::last_write_time("filename.xxx"); // fs = boost::filesystem
when I print time
to console, all the time I get relatively normal values, like 1435695997
, which make sense. When exception is raised, I have to dig into Locals and it has negative value instead, like -3689348814741910324
. To me this look like non-initialized value of variable.
I've wrapped this into try
and catch
, but in my book, this is not really solution.
Does anybody stumbled into anything like this?