Update causes Dispose() error.
Posted: Wed Nov 14, 2018 11:42 am
Hello,
We recently updated to the newest Xsharp (7), however a project that worked before, suddenly gives an error that I don't understand.
Here is the error:
We get this error in the following class/method, on the line "VIRTUAL METHOD Dispose() AS VOID"
What could be the cause of this and why would it pop up now and not with the older XSharp?
We recently updated to the newest Xsharp (7), however a project that worked before, suddenly gives an error that I don't understand.
Here is the error:
Code: Select all
Severity Code Description Project File Line Suppression State
Error XS9067 Interface method System.IDisposable.Dispose() and implementation IC2ExtLibForVO.WCFService.Dispose(params Vulcan.__Usual[]) have different calling conventions. IC2ExtLibForVO C:XSharpProjectsIC2ExtLibForVOIC2ExtLibForVOWCFClientClassesViaVO.prg 27
Code: Select all
CLASS WCFService IMPLEMENTS System.IDisposable
PRIVATE servicechannel AS System.ServiceModel.ChannelFactory // was: USUAL
PRIVATE address_http AS System.ServiceModel.EndpointAddress
CONSTRUCTOR
servicechannel := NULL
RETURN
VIRTUAL METHOD IClientChannel
RETURN TRUE
VIRTUAL METHOD Dispose() AS VOID
TRY
SELF:Close_Channel()
CATCH exception1 AS System.ServiceModel.CommunicationException
Console.WriteLine(exception1:Message)
END TRY