Good morning
We have developed a program that we can run on a daily basis to export video from one to many cameras. Using the latest SDK we are having issues keeping the program running as a service, please see log in this post.
Application: MilestoneExporterService.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
at VideoOS.Toolkit.ExportToolkit.Export(VideoOS.Toolkit.IData ByRef)
at VideoOS.Platform.SDK.Export.DBExporterXpco.Run(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart(System.Object)
We are developing this code to help our VMS managers manage their daily exports but are having issues like this. The developers have looked but cannot see anything wrong as this is part of the SDK. Has anyone seen this issue before or even tried doing something like this before.
Thank you.
Good morning
This is not an answer but an add in to the previous post, cant seem to be able to edit the original but here is another event from the event viwer
Faulting application name: MilestoneExporterService.exe, version: 1.2.18.0, time stamp: 0x5936dc38
Faulting module name: boost_serialization-vc120-mt-1_57.dll, version: 0.0.0.0, time stamp: 0x54870f1e
Exception code: 0xc0000005
Fault offset: 0x0000000000002cc1
Faulting process id: 0xd68
Faulting application start time: 0x01d2fb2a597d1bc4
Faulting application path: [C:\Program](file:C:/Program) Files (x86)\RCMP\MilestoneExporter\MilestoneExporterService.exe
Faulting module path: [C:\Program](file:C:/Program) Files (x86)\RCMP\MilestoneExporter\boost_serialization-vc120-mt-1_57.dll
Report Id: dafb1bfc-6ae9-11e7-ba3f-005056b61f9f
I also have opened another ticket with Milestone about their exporter having issues with exported video in the new version of the Smart Client.
Thank you
When utilizing the Toolkit part of the MIPSDK, it is always a good idea to use new instances for new exports. E.g. do not use same instance again in case of communication issues. Also be aware that the C++ part of the Toolkit is not thread safe, so creation and destruction etc should be done from same thread to ensure correct sequencial handling, as well as ALL outstanding buffers need to be processed / disposed before calling DeleteInstance.