Click here to Skip to main content
15,917,538 members

Comments by mr.dot (Top 5 by date)

mr.dot 24-Feb-11 7:16am View    
Hi, Nish, I have post this issue to Connect.
But it's still not solved.

The URL is:
https://connect.microsoft.com/VisualStudio/feedback/details/642663/gdiplus-access-violation
mr.dot 11-Feb-11 1:45am View    
Thanks Espen.
I have read that article, that doesn't work on this issue.
mr.dot 10-Feb-11 22:48pm View    
Got it, and I'll try.
Thanks a lot.
If I get useful information, I'll let you know.
mr.dot 10-Feb-11 21:16pm View    
Thanks Nish.
I knew this article, and it's target OS is MS Vista or MS 2008 while I'm working on Windows XP.
And you know, we can't force users to install this hotfix for our software.

I'll post this problem to Connect, and wish MS could give one way out.

In fact, all programs I worked on has this problem, which of them are used by lots customers, and no one report anything about this.
mr.dot 10-Feb-11 0:30am View    
Thanks, Nish.
I wrote one simplest demo which can demonstrate this problem:


int _tmain(int argc, _TCHAR* argv[])
{
ULONG_PTR dwToken = 0;
Gdiplus::GdiplusStartupInput _input;
Gdiplus::GdiplusStartup(&dwToken, &_input, NULL);

GUID pageGuid = Gdiplus::FrameDimensionTime;

HBITMAP hBitmap[10] = {0};
Bitmap* pBitmap = Bitmap::FromFile(_T("D:\\Projects\\SkinMgr\\Image\\checkingassist.gif"));

for(int i=0; i<10; ++ i)
{
pBitmap->SelectActiveFrame(&pageGuid, i);
pBitmap->GetHBITMAP(Color(0, 0, 0, 0), &hBitmap[i]);
DeleteObject(hBitmap[i]);
}

Gdiplus::GdiplusShutdown(dwToken);
return 0;
}


And I found that it's SelectActiveFrame.