Going back

english — Tags: , — @ 16:29

Waiting at Puerto Vallarta’s airport, FSL finished, great experience, great people, however I’m very mad at the hotel, will report the bill next monday to get my money back.

FSL2006, Dia 0

Uncategorized — Tags: , — @ 10:43

Seguimos en tránsito, Jorge Mauricio y yo, esperando el vuelo que saldrá, si todo va bien, a las 15:30hrs, para llegar por alla aproximadamente como las 16:30 (o algo asi), y ya mañana iniciar con las actividades.

Por mi parte ando refinando los detalles relacionados al tutorial de mañana, maquillaje y nada más.

Shared Memory in Mono, 3rd session

english — Tags: , , — @ 20:14

After installing latest mono version, 1.1.17.1 to be precise, older System.ExecutionEngineException seems to be fixed “automagically“, I noticed the correction after executing same code and everything worked, shared memory device appear and after ftruncating, the correct size was set, however now am having a few issues related to file permissions. Wrapping POSIX shared memory is a real challenge due to several UNIX implementations, I mean, for the “end developer” is always the same, you use the same constants and so on, but there are some internal details to take care on while wrapping.

A lot of work to do.

Puerto Vallarta

english — Tags: , , — @ 22:22

I’m leaving town Thursday morning, will arrive to Puerto Vallarta same day on the evening, you must get ready!

Today, I’ve noticed gdb is the better, improved my debugging so quickly… and without any other fancy front ends, pure command line management.

System.ExecutionEngineException

english — Tags: , , — @ 00:40

I’m starting the Mono POSIX shared memory wrapping, decided to begin dllimporting shm_open, however doesn’t seems to be easy at all, my current effort is:

using System;
using System.Runtime.InteropServices;

namespace Mono.Posix {
public class SharedMemory
{
public SharedMemory ()
{ }

[DllImport ("librt", EntryPoint="shm_open", CharSet=CharSet.Ansi,
CallingConvention=CallingConvention.StdCall)]
public static extern IntPtr Open (
[MarshalAs (UnmanagedType.LPStr)] string name,
int oflag,
int mode_t);

public static void Main (string []args)
{
//O_RDONLY = 00
//O_WRONLY = 01
//O_RDWR = 02
SharedMemory m = new SharedMemory ();
SharedMemory.Open ("test", 0, 777);
}
}
}

After compiling and running, I get:

SharedMemory.cs(22,17): warning CS0219: The variable `m' is assigned but its value is never used
Compilation succeeded - 1 warning(s)

Unhandled Exception: System.ExecutionEngineException: SIGILL
at [0x00000] unknown method
at (wrapper managed-to-native) Mono.Posix.SharedMemory:Open (string,int,int)
at Mono.Posix.SharedMemory.Main (System.String[] args) [0x00000]

Ignore the warning and notice the SIGILL related exception, may it be something about current marshaling? Will again, but later, I need to rest, tomorrow will wake up earlier.

Thoughts

english — Tags: , — @ 20:52

I’ve been “unplugged” for… maybe 5 months, maybe less, maybe more, however, after reading Mono’s most recent release, am building it from sources, I really want to get full involved in free software, however spent time at work tires me and when arrive home I don’t want to code anymore… even I really love software development, need to plan my free time, scheduling usually seems to work.

POSIX-like semaphores: Finally

english — Tags: , , — @ 23:09

After trying and trying all day I’ve finally implemented a POSIX-like semaphore and my Win32-based ring buffer using this new classes, works nice, now I’m replacing the Windows Message Queue IPC to Win32 Ring Buffers, am having problems while doing this, will face them tomorrow morning, need to finish this as sooner as possible due to I have start migrating the most difficult (I guess) QNX application to Linux, may take two or three weeks so a need all the free time to spend it with this migration.

And yes… I haven’t yet “asked for permission” to travel to Puerto Vallarta, I really want to go, past year went and spent great week, I’ll do the same again this year. :)

Have a nice day

english — Tags: , — @ 01:40

Very funny!

Have a nice day

More information at Yahoo’s stylinonline Shop

Regarding POSIX Semaphores

english — Tags: — @ 21:53

POSIX Semaphores are based on the work done by Dijkstra, actually he’s the father of the semaphores. I spent all day trying to emulate its behavior by using Win32 Semaphores, but nothing seems to work, however will try it tomorrow. Don’t know if this failed implementation is related in some way to Win32′s semaphores’ behavior, however tomorrow should be finished, ’cause next week will doing other stuff that needs my full attention while implementing.

Next week, I’ll be porting a QNX’s ThreadPool based application by replacing current threadpool with GLib’s Threadpool, would love rewriting all the structures currently used to an object oriented model such as GLib’s, maybe next release, we don’t know.

In the meanwhile, let’s have some fun this weekend!!

Emulating POSIX Semaphores

english — Tags: , — @ 21:28

I need to use POSIX-like semaphores without actually using them in Microsoft Windows, due to don’t want to add more dependencies to current project and currently have found their PInvoked version to use them in .NET and it seems to work, now based on the text found am trying to emulate POSIX Semaphore’s behavior using Microsoft Win32 Semaphores. Seems quite difficult and I only have two days more to finish its implementation, will do it, have to.

I’m trying to quit smoking, but every time I party I smoke again, might be the habit, drinking and smoking are performed almost at same time.

Next Page »
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2004-2010 Mario Carrion | powered by WordPress with Barecity