error using GetDataAsync in win 7

Hi everyone,

I am using GetDataAsync to get recorded time line. My program works correctly in Win 10. but in Win 7 it doesn’t work correctly. in callback function when return result. I try to cast object data.

SequenceData[] result = objects as SequenceData[];

if in Win 10 result.length is greater than 0. but in win 7 result.lengt is 0.

I wonder if there is the differency between win 7 and win 10 when using library GetDataAsync?

Thank in advance.

It might be a long shot but could you double check that you have the same set of Milestone dlls in both PCs?

Please explain your setup. Do you have two clients asking the same server? What version is the server? What is the recording setup? Is it recording on motion?

The OS version itself should not have impact on MIPSDK, but the installed version of .Net and (as Bo Writes) your copy of the MIPSDK DLLs - can make a difference.

Hi Bo,

I am using the same MIPSDK version R3. the two application connect to the same server. it records on motion. I am using Xprotect Corporate R3

I try to run MediaPlaybackViewer sample. It runs on win 10. but on Win 7 it don’t show recorded timeline.

Thank you so much.

HI Bo,

I find out the thing. If it don’t work correctly on Win 7, which is set on virtual machine (VM-ware). It works correctly on Win 7 on real machine.

Thinking about this I have a hunch. if your VM has a time that is not in synch it could explain the issue. Please note that the time and the time-zone must be both correct, so that the UTC time of client and server is in synch. Please check this first..

Hi Bo,

I tried to set two computer which have the same time zone. But the problem wasn’t fixed.

Can you give me a other solution?

Thank you so much.

They do not need to be same time zone, just that time and time zone are both correct and in effect the two computers have the same UTC time and date..

If we assume the time is in sync..

Have you debugged and seen the reply from the server is empty or have you only observed that the graphics does not fill? I have seen situations where the timeline does not fill, the drag the time a little and then suddently it fills correctly.

Hi Bo,

the reply from the server is empty. When I debug on virtual machine I find out SequenceDataSource.GetTypes() return 3 type of sequence: MotionSequence, MotionSequenceFromTimeLine, RecordingFromTimeLine. In constrast on real machine there are 5 types of sequence. both case connect to the same Server.

I don’t understand why have the difference?

This is strange, this is what we would expect if the server was Enterprise, Professional or Express, not XProtect Corporate. Can you double-check that you reach the same server?