Rank: Member Groups: Member
Joined: 12/6/2007 Posts: 7 Points: 6
|
Hi Everyone, I've got another thread going with a different error message, but wanted start another thread b/c this is a completely different error. (Code follows stack trace.) Code:Aurigma.GraphicsMill.CMInappropriateProfileException was unhandled Message="The profile doesn't match to color space required." Source="Aurigma.GraphicsMill" StackTrace: at Aurigma.GraphicsMill.Thread.FireStoppedEvent(Object object, ErrorEventArgs args) at Aurigma.GraphicsMill.Thread.TimerEventProcessor() at Aurigma.GraphicsMill.Thread.ChangeActivityStatus(ActivityStatus status) at Aurigma.GraphicsMill.Thread.EntryPoint() at Aurigma.GraphicsMill.Thread.Start() at Aurigma.GraphicsMill.Codecs.FormatReader._FrameLoadBitmap(Frame frame) at Aurigma.GraphicsMill.Codecs.Frame._GetBitmap(Bitmap bitmap) at Aurigma.GraphicsMill.Codecs.Frame.GetBitmap(Bitmap bitmap) at Aurigma.GraphicsMill.Bitmap.Load(Stream stream) at Aurigma.GraphicsMill.Bitmap._Load(Stream stream) at Aurigma.GraphicsMill.Bitmap..ctor(Stream stream) at ImageLeakTester.Form1.CauseInvalidPixelErrorMessage() in C:\Documents and Settings\jrumerman\My Documents\Visual Studio 2005\Projects\ImageLeakTester\ImageLeakTester\Form1.cs:line 127 at ImageLeakTester.Form1.button6_Click(Object sender, EventArgs e) in C:\Documents and Settings\jrumerman\My Documents\Visual Studio 2005\Projects\ImageLeakTester\ImageLeakTester\Form1.cs:line 186 at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(Form mainForm) at ImageLeakTester.Program.Main() in C:\Documents and Settings\jrumerman\My Documents\Visual Studio 2005\Projects\ImageLeakTester\ImageLeakTester\Program.cs:line 17 at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
Code:
private void CauseInvalidPixelErrorMessage()
{
FileStream fs = new FileStream("C:\\BAD06-0000393589-03-05_20060726172405062.JPG", FileMode.Open);
Byte[] bytes = new Byte[fs.Length];
fs.Read(bytes, 0, int.Parse(fs.Length.ToString()));
MemoryStream ms = new MemoryStream(bytes);
Aurigma.GraphicsMill.Bitmap oImage = new Aurigma.GraphicsMill.Bitmap(ms);
}
Attached is the image that causes the error message. Anybody got any idea why this error message occurs? Thanks!! Joel
JRumerman attached the following image(s):

|
Rank: Advanced Member Groups: Administration
, Member
Joined: 1/31/2005 Posts: 388 Points: 409
|
Hi Joel,
This exception is caused by the incorrect color profile embedded in the source file. Previous versions of the Graphics Mill for .NET threw CMInappropriateProfileException during image decoding. But we have changed this behaviour in the latest version of the Graphics Mill for .NET. Now this exception is thrown only during color conversion operations.
Best wishes, Alex.
|
Rank: Member Groups: Member
Joined: 12/6/2007 Posts: 7 Points: 6
|
Hi Alex,
Thanks for confirming that this was a known issue and there is a patch available. I will be contacting support for the patch.
R, Joel
P.S. Great job on responding quickly to the forum posts. You guys are giving great support to your clients.
|