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
 Layer Encrypt and Decrypt giving error
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
730 Posts

Posted - Oct 27 2015 :  02:34:13  Show Profile  Reply
Hello,

I am currently using IE 6.2.0 and trying to implement Layer encryption.

Here is part of the code that I am using:

  MainForm.ImageEnViewMain.LayersCurrent := 0;
  MainForm.ImageEnViewMain.Proc.Encrypt('xxx-xxx-xxx');
  Application.ProcessMessages;

  MainForm.ImageEnViewMain.LayersCurrent := 6;
  MainForm.ImageEnViewMain.Proc.Encrypt('yyy-yyy-yyy');
  Application.ProcessMessages;

  MainForm.ImageEnViewMain.LayersCurrent := 7;
  MainForm.ImageEnViewMain.Proc.Encrypt('zzz-zzz-zzz');
  Application.ProcessMessages;

  MainForm.ImageEnViewMain.LayersSaveToFile(FlName);
  Application.ProcessMessages;

  //Once file is saved Decrypt layers and Save Thumbnail
  MainForm.ImageEnViewMain.LayersCurrent := 0;
  MainForm.ImageEnViewMain.Proc.Decrypt('xxx-xxx-xxx');
  Application.ProcessMessages;

  MainForm.ImageEnViewMain.LayersCurrent := 6;
  MainForm.ImageEnViewMain.Proc.Decrypt('yyy-yyy-yyy');
  Application.ProcessMessages;

  MainForm.ImageEnViewMain.LayersCurrent := 7;
  MainForm.ImageEnViewMain.Proc.Decrypt('zzz-zzz-zzz');
  Application.ProcessMessages;

  //Code to save Thumbnail
  MainForm.ImageEnViewMain.LayersMergeAll;
  Application.ProcessMessages;
   MainForm.ImageEnViewMain.IO.SaveToFile(ChangeFileExt(SaveDialogPSD.FileName, '.jpg'));



Again this error seems to get generated randomly.

I am using XE6 and compiling 32Bit version of application.

Note: All of the files have layers count greater than 28.

TIA




Yogi Yang

xequte

39076 Posts

Posted - Oct 27 2015 :  17:45:01  Show Profile  Reply
Hi Yogi

I put this code into a loop (with and without the Application.ProcessMessages which should not be necessary) and ran it through 100 times. I could not reproduce an issue.

Please try creating a simple demo that consistently reproduces the issue and email it to us.

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