This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

CreateFormatReader fails on win8 64bit (ver. 5.5.6)

We are moving our application to support x64 OSs due to our direct driver to the printers, so the app has to run 64bit on 64bit OSs.

I've run up against a wall though, when I call Aurigma.GraphicsMill.Codecs.FormatManager.CreateFormatReader

It throws "Arithmetic operation resulted in an overflow."
   at System.IntPtr.ToInt32()
   at Aurigma.GraphicsMill.Codecs.BmpReader.OnCheckForSupport(Stream stream)
   at Aurigma.GraphicsMill.Codecs.FormatReader._CheckForSupport(Stream stream)
   at Aurigma.GraphicsMill.Codecs.FormatReader.CheckForSupport(Stream stream)
   at Aurigma.GraphicsMill.Codecs.FormatManager.CreateFormatReader(String fileName)
   at AGx64Test.Program.worker.GetPixelDimensionsOfImage(String imageFilename)
   at AGx64Test.Program.DoWork(String filename)


It also happens when I call new Aurigma.GraphicsMill.Bitmap(filename)
   at System.IntPtr.ToInt32()
   at Aurigma.GraphicsMill.Codecs.BmpReader.OnCheckForSupport(Stream stream)
   at Aurigma.GraphicsMill.Codecs.FormatReader._CheckForSupport(Stream stream)
   at Aurigma.GraphicsMill.Codecs.FormatReader.CheckForSupport(Stream stream)
   at Aurigma.GraphicsMill.Codecs.FormatManager.CreateFormatReader(String fileName)
   at Aurigma.GraphicsMill.Bitmap.Load(String fileName)
   at Aurigma.GraphicsMill.Bitmap._Load(String fileName)
   at Aurigma.GraphicsMill.Bitmap..ctor(String fileName)
   at AGx64Test.Program.worker.OpenFile(String filename) 
   at AGx64Test.Program.DoWork(String filename)


This happens on Window 8, 64bit. If I set the target to x86, it works, which makes sense as System.IntPtr.ToInt32() should fail on 64bit.

What is weird though is that these calls work just fine with platform target x64 on Windows 7, 64bit. I have several clean virtual machines, and they consistently fail on Win8 64bit, but not Win7 64bit.

We are using the latest 5 series, 5.5.6.

I've attached my test app.

Attachments

Hey Todd,

We have reproduced the problem. Our engineers will check it next week. I will keep you informed of the status.

BTW, please consider to upgrade to the latest of Graphics Mill. The versions 6.x-7.x are actively developed and maintained.
Todd,

We have the internal build which fixes the error, however we need to make an additional testing before the release.

I will let you know about the status by Thursday.
Todd,

I have sent you a private message with the download link of the updated assemblies. It should fix the problem on Windows 8.0 x64.

Please note you need to install the recent version of Microsoft Visual C++ 2005 Redistributable Package to get it run:

http://www.microsoft.com/en-us/download/details.aspx?id=26347
Fedor,

We are running into the same problem while trying to move a legacy app based on 5.x to Server 2012 R2. Can you PM me the updated assemblies that fixes this issue? I would really appreciate it!

I'll ask the customer to consider upgrading to your latest version as well.

thanks!
Hi Arking,

arking;28501
We are running into the same problem while trying to move a legacy app based on 5.x to Server 2012 R2. Can you PM me the updated assemblies that fixes this issue? I would really appreciate it!


I have PMed to you.
Fedor,

We are running into the same problem while trying to move a our app based on 5.5.6 to Server 2012 R2. Can you PM me the updated assemblies that fixes this issue? I would really appreciate it!

thanks!
I have just sent you the updated version. If you have any questions please let me know.
We're having a similar problem. We're upgrading to Windows2012 and we're seeing this error:

Aurigma.GraphicsMill.Codecs.BmpReader.OnCheckForSupport(Stream stream) +459
Aurigma.GraphicsMill.Codecs.FormatReader.CheckForSupport(Stream stream) +65
Aurigma.GraphicsMill.Codecs.FormatManager.CreateFormatReader(Stream stream) +190

We're running version 5.X. Can we get the updated version of the assemblies?

thank you,
John
That url reroutes me to the login/registration page ... even after logging in.
We have fixed the problem. Please try to download again.
Thanks, I got the updated dlls.

Unfortunately, I'm getting an that says the trial period has expired.

[TrialPeriodTimeException: Evaluation time period has expired. Please, purchase full version of the product.]
Aurigma.GraphicsMill.Thread.FireStoppedEvent(Object object, ErrorEventArgs args) +295
Aurigma.GraphicsMill.Thread.TimerEventProcessor() +1029
Aurigma.GraphicsMill.Thread.ChangeActivityStatus(ActivityStatus status) +205
Aurigma.GraphicsMill.Thread.EntryPoint() +289
Aurigma.GraphicsMill.Thread.Start() +570
Aurigma.GraphicsMill.Codecs.FormatReader._FrameLoadBitmap(Frame frame) +1006
Aurigma.GraphicsMill.Codecs.Frame._GetBitmap(Bitmap bitmap) +706
Aurigma.GraphicsMill.Codecs.Frame.GetBitmap(Bitmap bitmap) +465


What's the way around this?
Nevermind. I figured out my license key issue. I don't know yet if my other problems are solved....
My problems have been resolved. Thanks for providing the updated dlls.
Great!