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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 URGENT: latest version of the IEVision plug-in

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
ImageEnSA Posted - Oct 11 2019 : 14:56:46
Hi everyone,

Please help me to fix this code !!

I put ievision64.dll and ievision.dll in the same EXE folder but still the same problem!!

Note, I'm using the latest version of the IEVision plug-in



procedure TReciveDocumentF.Button5Click(Sender: TObject);
var
  s: TIEVisionBarCodeSymbol;
  i,z: integer;
  selRect: TIEVisionRect;
  n: TTreeNode;
  iFilename : WideString;
begin



    for z:= 0 to ImageEnMView1.ImageCount-1 do
    begin

      if ImageEnMView1.StoreType = ietNormal then
      begin
         ImageEnView1.IEBitmap.Assign(ImageEnMView1.GetTIEBitmap(z));
         ImageEnMView1.ReleaseBitmap(z);
         ImageEnView1.IO.Params.Assign(ImageEnMView1.MIO.Params[z]);
      end
      else
      begin
        iFilename := ImageEnMView1.ImageFileName[z];
        ImageEnView1.IO.LoadFromFile(iFilename);
      end;
      ImageEnView1.Update;


      try
        //TreeViewResults.Items.Clear();
        ImageEnView1.SelectionBase := iesbBitmap;

        selRect := IEVisionRect(0, 0, 0, 0);
        if ImageEnView1.Selected then
          with ImageEnView1 do
            selRect := IEVisionRect(SelX1, SelY1, SelX2 - SelX1 + 1, SelY2 - SelY1 + 1);

        m_symbols := IEVisionLib.createBarCodeScanner().scan(ImageEnView1.IEBitmap.GetIEVisionImage(), selRect);

        for i := 0 to m_symbols.size() - 1 do
        begin
         // n := TreeViewResults.Items.AddChild(nil, IntToStr(i));
          s := TIEVisionBarCodeSymbol( m_symbols.getObj(i) );
         // TreeViewResults.Items.AddChild(n, s.getSymbolType().c_str());
         // TreeViewResults.Items.AddChild(n, s.getData().c_str());
          Memo1.Lines.Add(s.getData().c_str());
         // if CheckBoxShowConfidence.Checked then
          //  TreeViewResults.Items.AddChild(n, Format('Confidence: %d', [s.getQuality()]));
        end;
       // TreeViewResults.FullExpand();
       // if TreeViewResults.Items.Count > 0 then
       //   TreeViewResults.Select(TreeViewResults.Items[0]);

      except
        on E: Exception do
        begin
          if E is EAccessViolation then
            MessageDlg('An error was encountered processing this image. Ensure you are using the latest version of the IEVision plug-in.', mtError, [mbOK], 0)
          else
            MessageDlg('An error was encountered processing this image: ' + e.message, mtError, [mbOK], 0);
        end;
      end;

    end;



end;





1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 11 2019 : 22:34:35
Hi

Firstly, right-click the ievision64.dll folder that is in the EXE folder and check it is v5.1.0B.

Then check the version of ImageEn installed, e.g. by looking at the ImageEnVersion property of a TImageEnView. It should be v8.6.0.


The code below looks like it may not be a version issue, but a general A/V issue (which generally are due to version mismatches). Please step through the code and see which line causes the A/V.





Nigel
Xequte Software
www.imageen.com