MediaLiveService C++ sample not working

Hello,

I installed the SDK to modify a MediaLiveService C++ program I did years ago but now I can’t get the sample to work.

If I run it from the Debug folder I get:

... Trying to Login
... Login Completed
0000000000000000
Done...

If I only replace the .exe file in the old Debug folder I get stuck in:

... Trying to Login
... Login Completed
... Trying to Connect to the camera
... Starting video stream

If I try to run it in debug configuration with MilestoneSystems.VideoOS.Platform.SDK-CPP.Debug v22.1.0 package when I build I get the errors below, same with MilestoneSystems.VideoOS.Platform.SDK-CPP 22.1.0, I can only build it with MilestoneSystems.VideoOS.Platform.SDK-CPP 21.2.0 package.

What could be the problem?

Severity	Code	Description	Project	File	Line	Suppression State
Error (active)	E1696	cannot open source file "Toolkits/ToolkitInterface.h"	MediaLiveServiceJPEG	C:\Program Files\Milestone\MIPSDK\ComponentSamples\0test\MediaLiveServiceJPEG.cpp	9	
Error (active)	E1696	cannot open source file "Toolkits/ToolkitFactoryProvider.h"	MediaLiveServiceJPEG	C:\Program Files\Milestone\MIPSDK\ComponentSamples\0test\MediaLiveServiceJPEG.cpp	10	
Error (active)	E1696	cannot open source file "Tools/ServerCommandServiceClient.h"	MediaLiveServiceJPEG	C:\Program Files\Milestone\MIPSDK\ComponentSamples\0test\MediaLiveServiceJPEG.cpp	12	
Error (active)	E0725	name must be a namespace name	MediaLiveServiceJPEG	C:\Program Files\Milestone\MIPSDK\ComponentSamples\0test\MediaLiveServiceJPEG.cpp	17	
Error (active)	E0725	name must be a namespace name	MediaLiveServiceJPEG	C:\Program Files\Milestone\MIPSDK\ComponentSamples\0test\MediaLiveServiceJPEG.cpp	19	
Error (active)	E0020	identifier "ImServerCommandServiceClient" is undefined	MediaLiveServiceJPEG	C:\Program Files\Milestone\MIPSDK\ComponentSamples\0test\MediaLiveServiceJPEG.cpp	21	
Error (active)	E0020	identifier "utf8_char_t" is undefined	MediaLiveServiceJPEG	C:\Program Files\Milestone\MIPSDK\ComponentSamples\0test\MediaLiveServiceJPEG.cpp	21	
Error (active)	E0254	type name is not allowed	MediaLiveServiceJPEG	C:\Program Files\Milestone\MIPSDK\ComponentSamples\0test\MediaLiveServiceJPEG.cpp	21	
Error (active)	E0276	name followed by '::' must be a class or namespace name	MediaLiveServiceJPEG	C:\Program Files\Milestone\MIPSDK\ComponentSamples\0test\MediaLiveServiceJPEG.cpp	21	
...

I received the notification but maybe the answer was deleted, if this is a known bug fixed in the 2022 R3 release, when will it be available ? In the meantime where can I download an older version without this bug?

Hi,

Yes, this is a known bug and Milestone Development has worked on it. I need to talk to them when it will be released so let me get back to you later.

I am very sorry for delayed reply, the fix was included the newest release and the sample which has the fix has been there on Github - https://github.com/milestonesys

Please make sure to use both Nuget - MilestoneSystems.VideoOS.Platform.SDK-CPP.Debug and MilestoneSystems.VideoOS.Platform.SDK-CPP.