search for: num2uint

Displaying 3 results from an estimated 3 matches for "num2uint".

Did you mean: num2int
2004 Oct 23
0
win32-ipc, with blocks (code review please)
...**************************/ #include "ruby.h" #include <windows.h> #include "ipc.h" static VALUE cIpcError; static char error[MAX_STRING]; static VALUE ipc_init(VALUE self, VALUE obj){ IpcStruct* ptr; Data_Get_Struct(self,IpcStruct,ptr); ptr->handle = (HANDLE)NUM2UINT(obj); return self; } static VALUE ipc_allocate(VALUE klass){ IpcStruct* ptr = malloc(sizeof(IpcStruct)); return Data_Wrap_Struct(klass,0,ipc_free,ptr); } static VALUE wait_for_multiple(VALUE klass,VALUE arr, BOOL fWaitAll,DWORD dwTimeOut) { DWORD dwWait; static HANDLE *handles = N...
2004 Nov 21
3
win32-file, overlapped added
Hi all, I''ve got overlapped and offset support in both nread and nwrite. The only thing left before I want to release this (as 0.4.0) is to get NO_BUFFERING to work. Unfortunately, I can''t get it to work. Park, I looked at that site you sent (and borrowed some code from it), but I don''t see anything special happening for NO_BUFFERING. I thought it required
2004 Jul 31
3
Bug in new_work_item
Hi all, Windows 2000 Ruby 1.8.2 R7 VC++ 6.0 I noticed that if I try to call new_work_item and give the task a name that already exists, I get a segfault: C:\eclipse\workspace\win32-taskscheduler>ruby test.rb "0.1.0" test.rb:22:in `new_work_item'': NewWorkItem() function failed (Win32::TaskSchedul erError) from test.rb:22 test.rb:22: [BUG] Segmentation fault ruby