Hi Rob

It's a while since I've done any COM related stuff (typically SOAP and REST 
these days) but a couple of things spring to mind:

Have you checked the signatures of the methods to make sure you're only using 
valid data types - especially when passing/returning strings.

Also IIRC you need to regenerate the tlb and reimport the stubs in the client.

Cheers

David Moorhouse (BCom) | Principal Software Engineer - HealthOne
Pegasus Health (Charitable) Ltd
P: 03 353 0871 |   W:  www.pegasus.org.nz
E: [email protected]
PO Box 741, Christchurch 8140
160 Bealey Ave, Christchurch 8014




-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Robert Martin
Sent: Friday, 7 October 2016 8:42 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Com problem

Hi All

Recently I went to add a new COM method to our app.  I hadn't done this since 
our previous version of Delphi by the looks of it because the type library menu 
item was disabled.  I discovered I needed to add the .rdil file to the project. 
 Having done that all seemed ok.  I added the method in the typeLibrary screen 
then implemented the code.


In my COM consumer app I then try to call the new com method. All the old 
methods work just fine but the new method just AVs. The com method is not 
called.  It is almost like, even though I have defined the v call it hasn't 
actually been 'build' into the app.  I have checked the The rdil and tlb files 
and the new method looks the same as the existing methods.

Does anyone have any suggestions of where I should look?


Thanks
Rob



_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [email protected] with 
Subject: unsubscribe
[http://snow.pegasus.org.nz/wp-content/uploads/2016/10/moving_footer.jpg]
********************************************************************************
This email or attachment(s) may contain confidential or legally privileged 
information intended for the sole use of the addressee(s). Any use, 
redistribution, 
disclosure, or reproduction of this message, except as intended, is prohibited. 
If you received this email in error, please notify the sender and erase all 
copies of the message, including any attachments.

Any views or opinions expressed in this email (unless otherwise stated) may not 
represent those of Pegasus Health Ltd.

********************************************************************************

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [email protected] with 
Subject: unsubscribe

Reply via email to