[Mono-dev] PtrToStructure, FreeHGlobal, then access to the structure

2008-08-12 Thread Andy Hume
In the class library I see a few pieces of code like the following. Am I correct in thinking that code like this is bad? info = Marshal.PtrToStructure (ptr, ...); Marshal.FreeHGlobal (ptr); // now we access the structure int id = info.Id; string name = Marshal.PtrToStringUni

Re: [Mono-dev] Signing assemblies for gac

2008-08-12 Thread Andy Hume
Paul F. Johnson wrote: I have an assembly which I need to strongly sign for inclusion into gac. I have a .snk file but I'm unsure if I need to use sn or al2. By the looks of it, it should be both, but I'm unsure on the syntax and msdn is not helping! You should need only to use sn.exe,

Re: [Mono-dev] PtrToStructure, FreeHGlobal, then access to the structure

2008-08-12 Thread Robert Jordan
Andy Hume wrote: In the class library I see a few pieces of code like the following. Am I correct in thinking that code like this is bad? Only if the .Name ptr is pointing to a memory block inside the struct's area. So it depends on the specification of the struct being marshaled. info =

[Mono-dev] Dynamic data and Ado.net Entity set?

2008-08-12 Thread Sharique uddin Ahmed Farooqui
Hi, To day MS has released sp1 of .net 3.5. which has Dynamic data, Ado.net Entity set, some improvements in Linq to Sql are the new features . I have few questions 1. Is there any breaking changes in Core because Sp1 oerview says Core improvements to the CLR. 2. What are the plan for this

[Mono-dev] UIA and olive

2008-08-12 Thread Stephen Shaw
I was wondering what the future of olive is? Reason for asking is that UIA has stuff in there as well as depending on WindowsBase. This makes our release dependent on olive. Are things going to move from olive to mono? Our will olive stabilize and get released? Do we need to release a slimmed

Re: [Mono-dev] Dynamic data and Ado.net Entity set?

2008-08-12 Thread Pablo IƱigo Blasco
Hi. 2. What are the plan for this features ? My guess - for Dynamic data and Entity set we need Linq to Sql first Regards this point just to say that we are currently working on it: http://code.google.com/p/dblinq2007/ . DbLinq project mimics Linq2Sql, such project has got two building

[Mono-dev] Broken build -- x86_64

2008-08-12 Thread Casey Marshall
Revision 110267 breaks the build for me on x86_64, or wherever MONO_ARCH_SIGSEGV_ON_ALTSTACK is defined. Is maybe the attached patch what was intended? Or should the #ifdef around the first jit_tls declaration be removed? Thanks. Index: mono/mini/mini.c

Re: [Mono-dev] Dynamic data and Ado.net Entity set?

2008-08-12 Thread Atsushi Eno
Hello, Sharique uddin Ahmed Farooqui wrote: Hi, To day MS has released sp1 of .net 3.5. which has Dynamic data, Ado.net Entity set, some improvements in Linq to Sql are the new features . Where did you find some improvements in Linq to Sql ? I thought it is discontinued, but I might be

[Mono-dev] Proper way to construct objects with mono_runtime_invoke

2008-08-12 Thread Cameron Villers
Hello all, I'm in the initial stages of embedding Mono into my application. I have a C struct like so (simplified): typedef struct { float origin[3]; const char *name; } gentity_t; I would like to be able to pass a pointer to an object of this type (allocated globally on the

Re: [Mono-dev] UIA and olive

2008-08-12 Thread Geoff Norton
Stephen, On Tue, 2008-08-12 at 11:42 -0600, Stephen Shaw wrote: I was wondering what the future of olive is? Reason for asking is that UIA has stuff in there as well as depending on WindowsBase. This makes our release dependent on olive. Are things going to move from olive to mono? Our

Re: [Mono-dev] UIA and olive

2008-08-12 Thread Stephen Shaw
Stephen, On Tue, 2008-08-12 at 11:42 -0600, Stephen Shaw wrote: I was wondering what the future of olive is? Reason for asking is that UIA has stuff in there as well as depending on WindowsBase. This makes our release dependent on olive. Are things going to move from olive to mono? Our

Re: [Mono-dev] UIA and olive

2008-08-12 Thread Atsushi Eno
Hello, Geoff Norton wrote: Stephen, On Tue, 2008-08-12 at 11:42 -0600, Stephen Shaw wrote: I was wondering what the future of olive is? Reason for asking is that UIA has stuff in there as well as depending on WindowsBase. This makes our release dependent on olive. Are things going to

Re: [Mono-dev] UIA and olive

2008-08-12 Thread Atsushi Eno
For reference, we have somewhat similar things: System.Management.dll, System.EnterpriseServices.dll and System.Messaging.dll. Atsushi Eno The problem here is that the dependency WindowsBase.dll has never been worked on (actually I'm even unsure what kind of work this dll needs) and hence

Re: [Mono-dev] UIA and olive

2008-08-12 Thread Stephen Shaw
For reference, we have somewhat similar things: System.Management.dll, System.EnterpriseServices.dll and System.Messaging.dll. Atsushi Eno The problem here is that the dependency WindowsBase.dll has never been worked on (actually I'm even unsure what kind of work this dll needs) and hence