ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Integer Divide By Zero IDE error in 64bit
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

whisper1980

USA
83 Posts

Posted - Oct 10 2020 :  14:32:20  Show Profile  Reply
When I run my app under the IDE compiled as Windows 64bit, I get the following error six times when the program starts up:
Exception class SC0D00094 with message 'c0000094 INTEGER_DIVIDE_BY_ZERO'.

Stack (SnagIt text capture):
00000000010550A7 ConvertWICBitmapToIEBitmap + $367
00000000010573F0 TIEWICReader.GetFrame + S330
0000000001058E0F lEWICRead + S9F
0000000001080750 ReadPNGStream + $110
000000000126414D TmageEnIO.SyncLoadFromStreamPNG + S11D
0000000001264431 TlmageEnIO.LoadFromStreamPNG + $71
0000000001260BFC TmageEnIO.LoadFromStream + S3DC
0000000001412DDE TIEBitmap.Read + SCE
000000000142DF9E TIEBitmap.LoadFromResource + $6E
00000000011A99CC TImageEnLayerMView.SetButtonParams + S11C
00000000011A84BA TImageEnLayerMView.Create + S22A
System.Classes.CreateComponent

This does not occur when running in the IDE as a Windows 32bit app. Also, no error occurs outside of the IDE in either 32bit or 64bit.

ImageEn 9.2.0. I believe this did not occur in 9.1.1, but I was using Delphi 10.3.3 then. Now I am using Delphi 10.4.1.



Eric

whisper1980

USA
83 Posts

Posted - Oct 10 2020 :  14:55:34  Show Profile  Reply
My bad. I forgot to update the ielib64.dll when I updated to 9.2.0. Once I did that, the problem went away. Thought I'd mention that instead of deleting the post in case someone runs into the same error I had.

Eric
Go to Top of Page

xequte

38222 Posts

Posted - Oct 11 2020 :  17:16:39  Show Profile  Reply
Hi Eric

In this case, because it didn't find a valid DLL it has fallen back to WIC to load PNG files. I'm not sure why it has failed to load via WIC, but I cannot reproduce it here...

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

whisper1980

USA
83 Posts

Posted - Oct 11 2020 :  17:46:02  Show Profile  Reply
I use the same image editing form in my main app as well as a standalone app. In the main app, it warned me that I had a missing or incompatible version of the dll. The stand-alone app did not and I got that error I mentioned. After I updated the DLL the main app worked, and then I went and ran it stand-alone and it also worked. It is possible that 10.4.1 was in a bad state, so when I switched projects it somehow worked itself out and I was attributing it to the dll update.

Eric
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: