Crash in IWICImagingFactory.CreateStream
See original GitHub issueCalling IWICImagingFactory.CreateStream
simply never succeeds: it crashes with either an access violation or a null reference exception. This might be a regression, since I don’t remember having issues like that with an earlier version of Vortice (it was probably 1.8.x).
Here is a repro project, but really it’s just 3 lines of code:
using FileStream stream = File.OpenRead("LuLu.png");
using var wicFactory = new IWICImagingFactory();
using IWICStream wicStream = wicFactory.CreateStream(stream);
Issue Analytics
- State:
- Created 2 years ago
- Comments:41 (41 by maintainers)
Top Results From Across the Web
IWICImagingFactory::CreateStream method (wincodec.h)
A pointer that receives a pointer to a new IWICStream. Return value. Type: HRESULT. If this method succeeds, it returns S_OK. Otherwise, it ......
Read more >IWICBitmapDecoder::Initialize() failing - c++
I have a byte stream pBitmap , And i need to create a decoder from it. ... is my IWICImagingFactory hr = piFactory->CreateStream(&piStream); ......
Read more >Untitled
To create a shared file stream for an image, use the … ... My IWICImagingFactory* just cannot be released without crashing, even if...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just FYI, this is how you would do this using SharpDX. Needless to say, it doesn’t crash.
@amerkoleci I work on this almost every day. The changes are huge, I’m trying to simplify logic without breaking anything.