does WIC.h support WindowsPhone8 and a junior question for free^_^

Mar 18, 2013 at 3:27 AM
Edited Mar 19, 2013 at 11:04 AM
1~ in WIC.h, LoadImage is supproted, I want to use this method to load a *.png file on windowsPhone8.
I don't know if it supports wic On wp8;

2~ you know i'm a new c++ developer and I have found these in your code:

Microsoft::WRL::ComPtr<ID3D11Buffer> buffer;

void someClear
{
buffer = nullptr;
}
///////// and
NativeTexture2D^ ntexture;
virtual void ClearDXData() = IContextBound::ClearDXData
{
ntexture = nullptr;
ntarget = nullptr;
nresource = nullptr;
shaderResView = nullptr;
}
I don't know why we should manually set nullptr to a ComPtr<> object and NativeTexture2D^ object.
doesn't these two types(ComPtr and NativeTexture2D^) release their resources automatically when Garbage collection called?
Coordinator
Jul 9, 2013 at 2:36 AM
Hi,

Sorry I was out of internet for a while. Stopped moving (now I'm back in Darwin) but still no internet home... :/

Just saw your message now, oops!
  1. I dunno, my PC is not yet set up in my new home.. :~
  2. There is no garbage collection in C++
    At any rate the ClearDXData is not for when the object is destroyed (which will destroy all ComPtr<>) but when the context is destroyed (for some reason... maybe driver update who knows.. anyway it's too handle this unlikely event!)