Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Need help with a System.Windows.Media and Windows Color System pro

 
 
Old 05-11-2007   #1 (permalink)
Kris Selden


 
 

Need help with a System.Windows.Media and Windows Color System pro

The stacktrace says it all.

System.Runtime.InteropServices.COMException (0x80070000): The operation
completed successfully. (Exception from HRESULT: 0x80070000)
at MS.Internal.HRESULT.Check(Int32 hr)
at System.Windows.Media.SafeProfileHandle.ReleaseHandle()
at System.Runtime.InteropServices.SafeHandle.InternalFinalize()
at System.Runtime.InteropServices.SafeHandle.Dispose(Boolean disposing)
at System.Runtime.InteropServices.SafeHandle.Finalize()

My guess on why we get "The operation completed successfully" is
SetLastError wasn't set on the DllImport for CloseColorProfile. So by the
time Marshal.GetHRForLastWin32Error() is called the error has been cleared by
some marshalling code.

We had temporarily got around this by calling GC.WaitForPendingFinalizers()
but then later found out that is a big no no in the WPF as some finalizers
call Dispatcher.Invoke which at that point would deadlock the application.

We are thinking about just using BitmapCreateOptions.IgnoreColorProfile
since without an error message this is hard to figure out.

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Windows 7, Media Player freeze the system loading 3gp drivers Vista General
Help: "i Windows Defender: A System Change Was Made by a Known Application" After System Start? Vista General
Microsoft and Intel Help System Builders Get Ready for Windows Vista, the 2007 Microsoft Office System and Intel® Core™ 2 Duo Processors Vista News
Microsoft and Intel Help System Builders Get Ready for Windows Vista, the 2007 Microsoft Office System and Intel® Core™ 2 Duo Processors Vista News
windows media player crashes entire system Vista music pictures video


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46