Comments (8)
From the error message I guess your class H264_DVR_DEVICEINFO
needs a [Serializable]
attribute on top. The error message is not related to out parameters.
Kind Regards,
Franz
from legacywrapper.
Thanks for the help,
I added [Serializable]
Now the mistake became this
System.Runtime.Serialization.SerializationException:
'End of stream reached before the analysis is complete.'
from legacywrapper.
Hi,
can you paste some details of the Exception (stacktrace, message, etc)?
from legacywrapper.
I copied the exception details, can you understand something?
Si รจ verificata l'eccezione System.Runtime.Serialization.SerializationException
HResult=0x8013150C
Messaggio=Fine del flusso raggiunta prima del termine dell'analisi.
Origine=mscorlib
Analisi dello stack:
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)
at LegacyWrapperClient.Client.WrapperClient.Invoke[T](String function, Object[] args) in D:\Programmierung\CSharp\LegacyWrapper\LegacyWrapperClient\Client\WrapperClient.cs:line 75
at TestVideo.XMSDK.WrapperH264_DVR_Login(String sDVRIP, UInt16 wDVRPort, String sUserName, String sPassword, H264_DVR_DEVICEINFO& lpDeviceInfo, Int32& error, SocketStyle socketstyle) in C:\Users\Operatore\Desktop\ZDIR\TEST VIDEO\TestVideo\TestVideo\XMSDK.cs:line 595
at TestVideo.MainWindow.Window_Loaded(Object sender, RoutedEventArgs e) in C:\Users\Operatore\Desktop\ZDIR\TEST VIDEO\TestVideo\TestVideo\MainWindow.xaml.cs:line 131
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at MS.Internal.LoadedOrUnloadedOperation.DoWork()
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Interop.HwndTarget.OnResize()
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
from legacywrapper.
Looking for the HResult code with this link tells me that A mismatch has occurred between the runtime type of the array and the sub type recorded in the metadata.
So can you check all your type definitions for your delegate match the function in your dll?
from legacywrapper.
this is the original call:
H264_DVR_DEVICEINFO dvrdevInfo = new H264_DVR_DEVICEINFO();
int nError;
int nLoginID = XMSDK.H264_DVR_Login(ip, port, User, Password, out dvrdevInfo, out nError, SocketStyle.TCPSOCKET);
I can not understand what it refers to the error
COR_E_SERIALIZATION
0x8013150c
A mismatch has occurred between the runtime type of the array and the sub type recorded in the metadata.
from legacywrapper.
Have you got a proper API description of your desired function and its parameters at hand?
from legacywrapper.
I try to find some information
For the moment thank you
from legacywrapper.
Related Issues (20)
- Dynamically define import dll HOT 13
- File not found System.ComponentModel.Win32Exception HOT 11
- net core portage HOT 1
- ARM64 Support? HOT 2
- System.ComponentModel.Win32Exception: 'The system cannot find the file specified'
- return 0x0000000000000000 is value HOT 9
- DLLs contain method names that are incompatible with version 3.0.0 + (EntryPointNotFoundException) HOT 1
- EntryPointNotFoundException: Unable to find an entry point named '{function}' in DLL '{MyC#32Bit}.dll' HOT 1
- LegacyWrapper32 will try to load a 64bit Assembly at ProcessMessage() HOT 2
- Performance issue HOT 9
- Example HOT 6
- strong names
- The system can't find the specify File HOT 1
- use for activex object HOT 1
- LegacyWrapper freezing when highlighting address. HOT 1
- cant not package with fody ? HOT 10
- Invalid pointer error for void *lp parameter
- Use LegacyWrapper from a 64bit DLL? HOT 5
- .NET 7 support HOT 1
- Is it possible to wrap a DLL belonging to commercial software? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from legacywrapper.