deng0
deng0
I've noticed the same problem. The main problem is that the library creates enumerables and then enumerate those multiple times. I've created a fork where I fixed the problem. https://github.com/deng0/commandline/commit/95ff7f6ca235bf0fb3778b6bb77b9e6f1193f058
When using the latest version of the nuget package (1.0.2), which is compiled as a .NET 5 mixed assembly, you also need to make sure the Ijwhost.dll file is found...
hmm... that's very strange. I get the same error message when I delete the Ijwhost.dll Is this file copied to output on your system? Is your Visual Studio up-to-date and...
sadly I have no clue what's going on. Try downgrading to version 1.0.1 of the DirectXTexNet nuget package which still uses a .NET Framework mixed assembly (no Ijwhost.dll) but it...
I think the whole system with .NET 5 and mixed assemblies might still be a bit wonky. Perhaps check if it works when you use .NET Framework instead. Here is...
try compiling that test project yourself. Here is the code: [ConsoleApp12b.zip](https://github.com/deng0/DirectXTexNet/files/6794920/ConsoleApp12b.zip) Perhaps you get any hints from VS. If that doesn't help you might use ILSpy https://github.com/icsharpcode/ILSpy/releases/download/v7.1/ILSpy_binaries_7.1.0.6543.zip to have a...
Ok, I've recreated the fix in gltf-pipeline and opened a pull request.
@merriemcgaw Thanks for taking a look at it. To be honest, I wouldn't call your change a "fix". Obviously a fatal crash is very bad, but your change would also...
@merriemcgaw I really respect your effort in trying to work around the GDI+ bug, but I still think it's not worth it/feasible trying to fix it that way. I haven't...
@memoarfaa This is strange that you can't reproduce the crash. On the systems I've tested it crashes almost immediately (after 3-4 FillRectangle calls): ``` 'WinFormsApp1.exe' (CoreCLR: clrhost): Trying {X=217.5,Y=172.5,Width=321,Height=304} on...