Infopower wwTwwDBRichEdit

Comments

9 comments

  • Charles Heaps

    I am also getting similar access violations in the TwwDBRichEdit component when using Delphi 11.1 with Infopower 22.02.  See my other post in this forum.  They only seem to happen outside the IDE and with versions of my app compiled to 64-bit code.

    Any thoughts Roy?

    0
    Comment actions Permalink
  • TKH

    My screenshots above are from a 32-bit app.  If I copy an Excel block and paste to TwwDBRichEdit component  and save there is no error. But when I use the insert object feature to insert and save I get the access violation error.

    0
    Comment actions Permalink
  • Roy Woll

    I cannot reproduce your problem.  Does the richedits in our maindemo that ships with infopower have the same problem on your system?  Please confirm this.

     

    Could it be that ole is not properly installed on your system?

    0
    Comment actions Permalink
  • Charles Heaps

    Hi all - thought I'd post some findings here in case it's useful.  I found the reason I was getting access violations outside the IDE was down to using the UPX utility to pack the application executable (hence why not seen in the IDE, only in production version). 

    This never caused problems before in previous version of Delphi but as of Delphi Alexandria this now seems to cause AVs when attempting to access the DLL underlying TwwDBRichedit (only in 64-bit version of the app though: still fine in 32-bit versions).  AVs happen both when using MSVersion=3 (Riched20.dll) or 4 (msftedit.dll).  The easy fix for me was to simply abandon use of UPX.  

     

    0
    Comment actions Permalink
  • TKH

    I ran infopower maindemo and tried inserting an Excel object into richedit and got the same problem.

    I tested on 2 m/cs running Delphi 11.1 and both have the same error.

    0
    Comment actions Permalink
  • Roy Woll

    I'm still investigating this, but try setting all your richedit's to have MSVersion set to 4. This will cause it to use msftedit.dll and for me the access violation goes away.

    0
    Comment actions Permalink
  • TKH

    Setting MSVersion to 4 removes the access violation issues at entry.  I use Report Builder (21.0.3) infopower richedit support to print the richedit contents.  When trying to print the richedit with Excel object saved, I get an invalid floating point operation error. Should I wait for your fix or ask Digital Metaphors for assistance?

     

     

     

    0
    Comment actions Permalink
  • Roy Woll

    You indicated you were using Delphi 11.1 and InfoPower (22.*). Then you mentioned ReportBuilder 21.0.3. Is that for Delphi 11 as well? 

    I don't know much about the ReportBuilder and their richedit support. Do they also have a MSVersion property in their control?

    0
    Comment actions Permalink
  • TKH

    Thanks Roy.

    I just reached out to Digital Metaphors for assistance.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk