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
 Getting Access violation after updating to IE 10.3.0
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
711 Posts

Posted - Jan 12 2022 :  09:03:08  Show Profile  Reply
Hello,

Today I updated IE from 10.0.0 to 10.3.0. After updating to this latest version getting Access violation.

In the Main form I have declared a variable ieSpEffect: TImageENView under Public.

The Main form opens a child form (dialog) as Modal.

From the child form I am access this variable and executing Proc. But I am getting Access violation in following code:
MainForm.ieSpEffect.Proc.Intensity(0, 255,Round(tbBrightness.Value / 2), False, True, True, True);


Here is the error message that I am getting:
<blockquote id="quote"><font size="2" face="Lato, Arial, Helvetica" id="quote"> <hr height="1" noshade id="quote">Access violation at address 000000000A3B7E70. Execution of address 000000000A3B7E70.[/quote]

I am using Delphi 10 Seattle.

What must be the problem?

TIA

Yogi Yang

xequte

6666 Posts

Posted - Jan 12 2022 :  21:03:34  Show Profile  Reply
Hi Yogi

What method do you use to create ieSpEffect?

At the time of the Intensity() call, are ieSpEffect or ieSpEffect.Proc NIL?

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

yogiyang

India
711 Posts

Posted - Jan 13 2022 :  00:27:47  Show Profile  Reply
Hello Nigel,

Here is the code that I am using:

  //declare in public
  ieSpEffect: TImageEnView;

  //Before calling the Dialog code is in MainForm
  ieSpEffect := TImageEnView.Create(Self);
  ieSpEffect.CurrentLayer.Bitmap.Assign(ieViewMain.CurrentLayer.Bitmap);
  if ieSpEffect.CurrentLayer.Bitmap.Width > 800 then
    ieSpEffect.Proc.Resample(800, -1, rfLanczos3);

  ieSpEffect.Update;

  //Create Instance of Dialog and Show
  frmContrest2Dlg := TfrmContrest2Dlg.Create(Self);
  frmContrest2Dlg.ShowModal

  //In Dialog on various controls change event code
  MainForm.ieSpEffect.Proc.Intensity(0, 255,Round(tbBrightness.Value / 2), False, True, True, True); //<== getting error here
  


 
What method do you use to create ieSpEffect

I am using the code:
ieSpEffect := TImageEnView.Create(Self);


 
At the time of the Intensity() call, are ieSpEffect or ieSpEffect.Proc NIL?

I have never checked if the variables are nil in code. This code was working perfectly for all these years without any problems whatsoever.

TIA

Yogi Yang
Go to Top of Page

xequte

6666 Posts

Posted - Jan 13 2022 :  20:26:34  Show Profile  Reply
Hi Yogi

Can you check those so we can narrow down the debugging.

Are you able to create a small demo that reproduces the issue.



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

yogiyang

India
711 Posts

Posted - Jan 15 2022 :  00:42:06  Show Profile  Reply
Hello Nigel,

After posting here what I did was pull out a 15 days old backup of my project code and compiled it and on testing everything was working just great in this old code.

In short the code is working with latest version of IE!!

I am sorry for raising this issue without detailed testing.

Currently what I am doing is updating my old project code with changes that I have done in my software's latest code which is not working.

It I do find any problem I will get back here.

Thanks a lot for helping out.



Yogi Yang
Go to Top of Page

xequte

6666 Posts

Posted - Jan 16 2022 :  20:55:26  Show Profile  Reply
Thanks for updating us, Yogi.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: