Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/ActiveX    [ Add a report in this area ]  
Report #:  104683   Status: Open
Activex Events/Property Sets  raise exceptions in MFC apps with MFC debug executables
Project:  Delphi Build #:  16.0.4429.46931
Version:    16.4 Submitted By:   Nick Ameladiotis
Report Type:  Crash / Data loss / Total failure Date Reported:  4/5/2012 11:03:09 PM
Severity:    Critical / Show Stopper Last Updated: 5/10/2012 12:45:42 AM
Platform:    All versions Internal Tracking #:   27951
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (1 Total Rating)
5.00 out of 5
Total Votes: None
Description
With MFC full debug applications activex controls created with xe2 will cause assertion failures to mfc with controls events.
The problems are been caused of ComObj.DispatchInvoke @ line

  else if (InvKind = DISPATCH_METHOD) and (CallDesc^.ArgCount = 0) and (Result <> nil) then
      InvKind := DISPATCH_METHOD or DISPATCH_PROPERTYGET;

Setting invKind |= DISPATCH_PROPERTYGET while MFC actually make the call using DISPATCH_METHOD will cause the failure, if DISPATCH_PROPERTYGET is not been set mfc works as expected.

Steps to Reproduce:
Compile attached project and run assertion failure when MFC app is trying to make a put_Text("XXXXX")  call, same when event needs to be invoked
Workarounds
None
Attachment
test-ocx-xe2.zip
Comments

Tomohiro Takahashi at 4/6/2012 12:06:49 AM -
> Compile attached project ...
Please attach it(as a .zip) by using Windows Native QC Client.
The standalone client comes with Delphi.

Nick Ameladiotis at 9/21/2012 11:37:22 PM -
Any info on this ? i see that the bug is still reproducible with xe3.

Tomohiro Takahashi at 9/22/2012 8:34:54 PM -
Unfortunately, this issue is still Open.
So, as you know, QualityCentral is just for reporting area. If you need more intensive support, please contact technical support service. Sorry for the inconvenience.
http://support.embarcadero.com/

Nick Ameladiotis at 4/6/2012 7:33:11 AM -
Attached

Server Response from: ETNACODE01