Displaying 20 results from an estimated 4000 matches similar to: "code cleanup suggestion - error classes"
2005 Nov 26
1
Another patch of win32-service for nice startup.
Hi,
I believe this patch would be a perfect solution for a lengthy
initialization application.
Added hStartEvent, service_init, checkpoint increments.
============================================================
--- temp/service.c 2005-11-27 00:03:30.000000000 +0900
+++ service.c 2005-11-27 00:01:58.000000000 +0900
@@ -14,6 +14,7 @@
static VALUE cDaemonError;
static VALUE rbServiceStruct,
2004 Nov 07
2
Problems with DeviceIoControl()
Hi all,
Thanks to Wayne and Park, I''ve got something like this
now:
static VALUE file_set_compressed(VALUE self, VALUE
rbBool){
HANDLE h;
BOOL rv;
DWORD dwBytesReturned;
int fn;
USHORT inBuf = COMPRESSION_FORMAT_DEFAULT;
if((rbBool != Qtrue) && (rbBool != Qfalse)){
rb_raise(rb_eTypeError,"Argument must be true or
false");
}
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
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 Nov 06
3
Calling CreateFile on an instance of File - possible?
Hi all,
I''m going over win32-file this weekend. I''m creating instance methods for
setting (or unsetting) the various file attributes. So, you can do
something like:
f = File.open("foo.txt")
f.archive = true
f.hidden = true
f.close
This works for the basic attributes, but it requires extra work for others.
Specifically, I am having trouble trying to set the
2006 Dec 07
0
Fwd: win32-service problems with patch
Got this today. Please take a look and let me know what you think.
- Dan
---------- Forwarded message ----------
From: Kevin Burge <kevin.burge at systemware.com>
Date: Dec 7, 2006 6:45 AM
Subject: win32-service problems with patch
To: djberg96 at gmail.com
Hi Daniel,
Thanks for win32-service. In the process of using it for running a
reliable-msg (drb) server and clients, I had some
2005 Jan 20
1
ChangeNotify help wanted
Hi all,
I''ve checked in some code to win32-changenotify. Unfortunately, it
doesn''t work right. I need some help. I don''t understand what,
exactly, I''m supposed to pass to ReadDirectoryChangesW() for the 2nd
argument, nor how to read the data back out.
There''s also a WCHAR issue that needs to be worked out with regards to
the FileName
2005 Jan 06
0
Some thoughts on win32-changenotify
Hi all,
As things stand now, you can do something like this with
win32-changenotify:
require "win32/changenotify"
include Win32
filter = ChangeNotify::FILE_NAME | ChangeNotify::DIR_NAME |
ChangeNotify::LAST_WRITE
cn = ChangeNotify.new("c:\\",false,filter){
puts "Something changed"
}
cn.wait
You can pass a block that''s executed when a change occurs, but
2005 May 16
0
Add backtrace info in win32-service
Hi all,
I think it would greatly aid service debugging if we added Ruby''s
backtrace information if a Service.start fails. This would be lines
1251-1255:
if(NULL == hSCService){
strcpy(error,ErrorDescription(GetLastError()));
CloseServiceHandle(hSCManager);
rb_raise(cServiceError,error);
}
I''m not sure exactly how to do it, though.
Or do you think it should just be
2003 Jun 07
3
tinc-1.0pre8 fails to compile on RH 9.0
Hi,
I had posted a similar question a few days back(but my mails started
bouncing back, when I tried to post to the newsgroup). So here is it
again.
My System: Rh 9.0 (2.4.20-13.9), openssl-0.9.7a-5, openssl-devel-0.9.7a-5
Autoconf tools: autoconf-2.57-3, automake-1.6.3-5
1. When I try to compile tinc-1.0 pre8 on my RH 9.0 system, it fails..
When I do a ./configure, it aborts saying:
2011 Aug 18
1
Multiple Errors with RRD and Rake
Hello all,
I am trying to install the SequreISP application (link below) but I''m
facing an error that I cannot resolve and any help is much appreciated.
The application I am trying to install is:
https://github.com/sequre/sequreisp
Here''s some information about my system:
OS: Centos 5.4 (Final)
uname -a
Linux gateway 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686
2006 Jan 05
7
[Fwd: [win32utils-help][6822] Eventlog problem]
Dang, I thought we solved this.
Any ideas?
Dan
PS - I realized after reading this I forgot to bump the version number
for 0.3.3 - I''ve uploaded a new zip file with the correct version number.
-------------- next part --------------
An embedded message was scrubbed...
From: alain Fioretti <noreply at rubyforge.org>
Subject: [win32utils-help][6822] Eventlog problem
Date: Thu, 5
2013 Aug 29
5
[PATCH 1/6] Rationalise whitespace to 4 space indentation with no trailing spaces
RHSrvAny.c was using a mixture of 4 space indentation, and tabs with a width of
4. This commit rationalises the whitespace to use only 4 space indentation, and
removes trailing whitespace.
---
RHSrvAny/RHSrvAny.c | 537 ++++++++++++++++++++++++++--------------------------
RHSrvAny/RHSrvAny.h | 1 -
RHSrvAny/resource.h | 2 +-
3 files changed, 269 insertions(+), 271 deletions(-)
diff --git
2006 Aug 21
1
[ win32utils-Bugs-5479 ] Incorrect SetLastError declarations
Bugs item #5479, was opened at 2006-08-21 07:43
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=5479&group_id=85
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: Incorrect SetLastError declarations
Initial Comment:
windows-pr-0.5.3
lib\windows\error.rb
2003 Jul 10
3
Help with R Installation on Debian 2.2.19 (old stable/potato)
Hi all,
I hope this is the correct list to post such a question.
I was trying to install the R-project on Debian and encountered significant
problems with the same.
The main problem is the installation of the libc6 package. I need this
package in order to install the R-core package. However, the libc6 is
dependent on the libdb1-compat package, which just refuses to install on my
server.
2004 Jan 26
1
Re: win32-service ideas
Park, Shashank,
It turns out I was doing something stupid with regards to Dir.chdir in
testing, which appears to be the reason it was failing.
It seems to work now. Hooray!
Shashank, I''ll take a look at your errors and see if I can nail them down.
The RPC message is one that I got from time to time, but from what I can
tell, it''s bogus or a system config/permissions
2005 Jul 29
3
Reg. page_sequence_number in the ogg header.
Hi,
I was looking at some of the vorbis-ogg music files using hexedit.
I am a bit confused about this filed "page_sequence_number" that appears
in the header for ogg. From RFC3533 the definition of this field is:
"page_sequence_number: a 4 Byte field containing the sequence
number of the page so the decoder can identify page loss. This
sequence number is increasing
2007 Sep 25
2
Bug in win32-api with void prototypes?
Hi all,
It seems that a void prototype requires an explicit argument in our
version of win32/api:
C:\>irb
irb(main):001:0> require ''win32/api''
=> true
irb(main):002:0> include Win32
=> Object
irb(main):003:0> require ''Win32API''
=> true
# Our version
irb(main):004:0> GetLastErrorA = API.new(''GetLastError'',
2003 Jun 02
1
Help with compilation problems
Hi,
I am trying to install tinc-1.0pre8 on my RH 9.0 (kernel 2.4.20-13.9)
system. I have already installed Openssl (v0.9.7a).
When i try to run the ./configure script, it stops at the follwing check
---SNIP--
checking openssl/pem.h presence... yes
checking for openssl/pem.h... yes
checking for SHA1_version in -lcrypto... yes
checking for RAND_pseudo_bytes... yes
checking for
2005 Aug 26
3
Reg. vorbis for real-time audio
Hi,
From the vorbis decoder specification, it is clear that the decoder
needs to have all the codebooks before decoding can actually begin.
I will appreciate if someone can clear the following questions:
1. I guess the codebooks are derived from the actual input data.
Probably the encoder may be making two passes through the input. The
first pass finds out the frequency of different symbols