Asbtract error due to CoInitializeEx

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
hlogmans
Posts: 1
Joined: Wed Oct 03, 2007 12:14 pm

Asbtract error due to CoInitializeEx

Post by hlogmans »

When some other component in your program uses CoIntialize (instead of OleInitialize), you will get an abstract error (should be AV) on freeing the SRichViewEdit.

The problem is that when registering for the IDragDrop window, it returns an error and releases the interface (see delphi docs on this function). As SRichViewEdit will not be notified (the srvdragdrop does not have a destructor which handles this), FDragDropTarget is not nil, but does not reference an object, so crashes.

As you can image this took many hours and frustration to find out.

The offending units are from RemObjects, but RichView might better handle failure of registering the Dragdrop window.


TSRichViewEdit.CreateDropTarget should handle this failure (it does not check the return value at the moment).

Why this is reported as an Abstract error, I don't know but of course using a freed object always gives strange behaviour :)

Best regards,

Hugo Logmans
Sergey Tkachenko
Site Admin
Posts: 17291
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Thank you for this bug report, it will be fixed in the next update.
Sergey Tkachenko
Site Admin
Posts: 17291
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Fixed in version 3.6 (available for registered users)
Post Reply