I changed ALL back to exit(1) and still get 255...
Sorry, I think this is very unlikely.Maybe it's a general issue of my compiled versions? Maybe due to a newer Visual Studio versions and/or C++ Runtimes?
Sorry, I can't compile the latest MediaPortal code anymore. Projects have been converted to VS 2013, but I still use XP (which can't run VS 2013). Hopefully somebody else can do this for you.Could someone of you create a debug version of StreamingServer.dll which includes different exit codes and/or debug output and post this version here, so that I can use this DLL for further testings?
void FramedSource::getNextFrame(unsigned char* to, unsigned maxSize,
afterGettingFunc* afterGettingFunc,
void* afterGettingClientData,
onCloseFunc* onCloseFunc,
void* onCloseClientData) {
// Make sure we're not already being read:
if (fIsCurrentlyAwaitingData) {
envir() << "FramedSource[" << this << "]::getNextFrame(): attempting to read more than once at the same time!\n";
exit(5); // <--- Sascha: HERE IT IS EXITING! :-)
}
fTo = to;
fMaxSize = maxSize;
fNumTruncatedBytes = 0; // by default; could be changed by doGetNextFrame()
fDurationInMicroseconds = 0; // by default; could be changed by doGetNextFrame()
fAfterGettingFunc = afterGettingFunc;
fAfterGettingClientData = afterGettingClientData;
fOnCloseFunc = onCloseFunc;
fOnCloseClientData = onCloseClientData;
fIsCurrentlyAwaitingData = True;
doGetNextFrame();
}