hi,
I attach the code for a simple block that has multiple inputs (type double) then output a matrix. I managed to change the inputs (tested in debug mode the value of GetSignature()->GetInputs()->GetNumItems()).
The block works fine with constant Number of Inputs, but when I change the number of inputs, the block itself doesn't update, in GUI it shows the old inputs. If, for example, I reduce the inputs, then point the mouse cursor to the pins that have been supposed to be removed , an error occurred and the eyesweb crashed !
If I restart eyesweb after changing the number of inputs, the block now is updated with the right number of input pins.
I try to modify the code by putting the SetInput/RemoveInput in some ways but .. seem like I still go on the wrong ways.