ermig1979 / Synet

A small framework to infer neural network
MIT License
137 stars 26 forks source link

Can't load network. MSVC compiler bug? #8

Closed teor292 closed 4 years ago

teor292 commented 4 years ago

Hi. There is a problem: On visual studio 2019 and 2015 (32 bit, not tested on others, 64 bit works) it is impossible to convert and load synet network. Here is screenshot of converting error:

bug

The error while trying load is similar.

In memory windows there is something strange: the pointer to virtual table begins with 4 byte offset. But after that there is a trash, and only after - there is a first "params" data. So, I think it is the compiler bug, but not sure. On gcc everything works fine. Can you test your framework on visual studio to investigate this bug?

ermig1979 commented 4 years ago

Thank you for bug report. I will try to reproduce this bug next week beginning.

ermig1979 commented 4 years ago

The bug was fixed.

P.S. I rarely use 32-bit mode so it is not tested enough.