Re: [Mono-dev] Malloc issue?

2012-08-23 Thread Greg Young
Didn't reply to all. Code is very simple (allocates 16 mb and frees it). Also this in an internal assertion is this really the best way? If we passed wrong parameters etc I would kind of expect an exception. On Friday, August 24, 2012, Rodrigo Kumpera wrote: > Either your app is broken or linux

Re: [Mono-dev] using unsafe structs as opaque pointers...

2012-08-23 Thread Rodrigo Kumpera
This has been fixed on mono master, on what will become 2.12. On Thu, Aug 16, 2012 at 1:35 PM, jeske wrote: > I have a C# wrapper for a native DLL which exists on both windows and UNIX. > However, it doesn't work on Mono because of a behavior difference between > Mono and MS.NET. > > Specificall

Re: [Mono-dev] Malloc issue?

2012-08-23 Thread Rodrigo Kumpera
Either your app is broken or linux's malloc is. Mono does nothing special but call malloc/free. One issue might be if you're allocating more than 2Gb of memory at once. This will probably break on mono. On Thu, Aug 23, 2012 at 3:35 AM, Greg Young wrote: > We are allocating and releasing unmana

[Mono-dev] Save user's settings

2012-08-23 Thread Mixim
Hello everyone. User must get some information for setting my program. I want to save this settings but how can I do it? I attache "app.config" file to my project and pust there some default settings which I'm by next way: String userSetting1=System.Configuration.ConfigurationManager.AppSetings["us

[Mono-dev] using unsafe structs as opaque pointers...

2012-08-23 Thread jeske
I have a C# wrapper for a native DLL which exists on both windows and UNIX. However, it doesn't work on Mono because of a behavior difference between Mono and MS.NET. Specifically, I use "unsafe struct pointers" to manage pointers to opaque data (rather than IntPtr). I do this to get typechecking,