I'm using this library, and some methods crash when called. When I enable validation mode, I keep receiving ValueError warnings. After investigation, I found that the size and offsets of many structures are incorrect. Then I realized that Bool in IPL should be 4 bytes, not 1 byte. So, removing
[MarshalAs(UnmanagedType.U1)]
solves the problem. I’m not very familiar with the conversion logic in this project, so I don’t dare to modify the code arbitrarily. If anyone understands this well, I’d appreciate it if they could help fix it. I also hope the original author can pay a bit more attention to this project—it’s really great!
Thank you!
I'm using this library, and some methods crash when called. When I enable validation mode, I keep receiving ValueError warnings. After investigation, I found that the size and offsets of many structures are incorrect. Then I realized that
Boolin IPL should be 4 bytes, not 1 byte. So, removingsolves the problem. I’m not very familiar with the conversion logic in this project, so I don’t dare to modify the code arbitrarily. If anyone understands this well, I’d appreciate it if they could help fix it. I also hope the original author can pay a bit more attention to this project—it’s really great!
Thank you!