Bug 2251 - mono crash. [System.Runtime.InteropServices.MarshalDirectiveException: Type System.DateTime which is passed to unmanaged code must have a StructLayout attribute.]
Summary: mono crash. [System.Runtime.InteropServices.MarshalDirectiveException: Type S...
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: Interop ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-11-29 11:30 UTC by Stanislav
Modified: 2017-12-01 14:02 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
attaching log mono file with errors and exceptions (1.54 MB, application/octet-stream)
2011-11-29 11:30 UTC, Stanislav
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Stanislav 2011-11-29 11:30:28 UTC
Created attachment 968 [details]
attaching log mono file with errors and exceptions

hi.

Running on mono open-webkit-sharp crushes mono but has no problems on windows. (as some others COM's with call backs) 

got from here lastes version (2.1)
http://code.google.com/p/open-webkit-sharp/downloads/list

to run samples without rebuilding: just copy all files from OpenWebKitSharp\Core to OpenWebKitSharp\WebKit

than run (for example):
mono --trace CustomMenuImplementation.exe >c:\log.txt

then i entered 
http://www.youtube.com/
clicked GO button - and.... mono crashed! on .net - no problems.

in log there are many exceptions like:

[000011AC: 16.50907 70] ENTER: string:InternalSetLength (int)(this:[STRING:0A72E000:System.Runtime.InteropServices.MarshalDirectiveException: Type System.DateTime which is passed to unmanaged code must have a StructLayout attribute.
  at (wrapper native-to-managed) WebKit.Interop.IWebFrameLoadDelegate:willPerformClientRedirectToURL (intptr,intptr,intptr,double,System.DateTime,intptr)
  at (wrapper managed-to-native) System.Windows.Forms.XplatUIWin32:Win32DispatchMessage (System.Windows.Forms.MSG&)
Comment 1 Rodrigo Kumpera 2017-07-11 21:57:47 UTC
DataTime marshalling is now implemented.
Comment 2 FrozenShade 2017-12-01 14:02:12 UTC
The problem still occurs on Raspberry PI with Jessie.

Mono JIT compiler version 5.4.1.6 (tarball Wed Nov  8 22:40:07 UTC 2017)