#1 Yesterday 19:51:12

JD
Member
Registered: 2015-08-20
Posts: 131

EInterfaceFactory exception - Interface has too many methods

Hi there everyone,

My REST server is throwing the following EInterfaceFactory exception:

Interface has too many methods (129), so breaks the Interface Segregation Principle and our internal buffers provision


Is there anything I can do to get around this problem?

Thanks,

JD

Offline

#2 Yesterday 20:31:33

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,415
Website

Re: EInterfaceFactory exception - Interface has too many methods

No, because as stated, methods indexes are stored as signed 8-bit so in 0..127 range.
And it breaks the Interface Segregation Principle - if you don't know what it is, worth investigating.

Offline

#3 Yesterday 21:15:28

JD
Member
Registered: 2015-08-20
Posts: 131

Re: EInterfaceFactory exception - Interface has too many methods

@ab

I thought it only had to do with the number of interface functions. I removed the last one I added and all went well. Is there a limit on the number of functions a REST server can have?

Offline

#4 Yesterday 22:22:08

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,415
Website

Re: EInterfaceFactory exception - Interface has too many methods

methods = functions

Offline

Board footer

Powered by FluxBB