If you go into device manager (of course we're talking about windows here), go up to *view* and click *show hidden ports* you'll find that there are many, many ghost ports (ports that are faded). If you get too many, per Craig Anderton it can interfere with the available memory for midi devices in SPLAT (or other versions). Upon start up, sonar may say *not enough memory for midi peripherals* and disable them for that session.
I've uninstalled all my ghost ports, but still get the message occasionally.