similar to: New allocation framework and other stuff

Displaying 20 results from an estimated 10000 matches similar to: "New allocation framework and other stuff"

2007 Jan 23
0
[853] trunk/wxruby2/swig: Replace deprecated STR2CSTR with StringValuePtr
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2004 Jul 02
0
win32-eventlog-0.2.2 released
Hi all, I''ve released 0.2.2 of win32-eventlog. There was a rather nasty bug in the read() method I hadn''t noticed before - it wasn''t reading all the records! In addition, this package officially requires Ruby 1.8.0 or later, as I have replaced the STR2CSTR() functions with StringValuePtr(). Let me know if you find any bugs. Thanks. Dan
2004 Feb 25
1
More on etc and other stuff
I seem to have gotten the bugs worked out of win32-etc. It seems it had to do with using WCHAR vs LPWSTR. Once I used AllocWideLString() vs AllocWideString() everything seemed to work ok. One question I have now is this - should I always use AllocWideLString() instead of casting like (LPCWSTR)STR2CSTR(rbVal); ? It would seem so, but I''m not sure. Also, I''ve committed the
2004 Feb 25
5
Wide strings and LPCTSTR types
All, I was experimenting with converting LPCTSTR strings to wide strings with something like this: // Converts a Ruby string to a LPWSTR LPCTSTR AllocWideLString(VALUE rbString){ char* str = STR2CSTR(rbString); int length = (strlen(str)+1) * sizeof(WCHAR); LPCTSTR lpStr = (LPCTSTR)malloc(length); MultiByteToWideChar( CP_ACP, 0, str, strlen(str)+1,
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
2005 Feb 06
7
SHGetFolderPath and stuff
Hi all, I was taking another look at SHGetFolderPath() and related stuff today based on suggestions from Shanko and Zach. I think this would be fairly simple. My main question is, where do we put these values? Under File, Dir, or Shell? Or somewhere else? I vote Dir, since all the special CSIDL seem to be directories. Thus you would have something like: Dir::ADMINTOOLS Dir::BITBUCKET
2004 Aug 28
0
Problem stopping services
Hi all, I noticed that the Instiki service that I setup (http://rubyforge.org/docman/view.php/85/107/instiki_service_tutorial.txt), for example, seems to have no problem stopping when I use the command line. However, if I try to use the administrator GUI tool to stop it, it hangs for a long time, and finally dies. Anyone know why this might be? Regards, DAn
2004 Mar 01
0
RE: win32etc test failure
For delete_user, try this patch: etc.c, line 639: - lpHost = (LPCWSTR)STR2CSTR(rbHost); +lpHost = AllocWideLString(rbHost); Lemme know how it goes. Dan -----Original Message----- From: win32utils-devel-bounces@rubyforge.org [mailto:win32utils-devel-bounces@rubyforge.org] On Behalf Of win32utils-devel@rubyforge.org Sent: Monday, March 01, 2004 10:02 AM To: Date, Shashank [Non-Employee] Cc:
2007 Jun 25
0
[1069] trunk/wxruby2/swig/typemap.i: Fix big memory leak in methods taking wxString as a parameter
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2004 Mar 01
0
RE: win32etc test failure
Excellent! Like I said, I really need to do some code cleanup. I''ll also be adding the config_group and config_user methods :) Dan -----Original Message----- From: Date, Shashank [Non-Employee] [mailto:Shashank.Date@mail.sprint.com] Sent: Monday, March 01, 2004 10:19 AM To: Berger, Daniel Subject: RE: [Win32utils-devel] RE: win32etc test failure That worked ! Now everything is
2005 Oct 09
0
[Fwd: Re: [Swig] Re: Object return problem]
Forwarded from the SWIG mailing list, so we have a copy in our archives. Kevin -------- Original Message -------- Subject: Re: [Swig] Re: Object return problem Date: Sun, 09 Oct 2005 18:31:40 -0400 From: Kevin Smith <wxruby@qualitycode.com> To: Charlie Savage <cfis@interserv.com> CC: Swig@cs.uchicago.edu References: <4347277E.1030700@mindspring.com>
2005 Jul 24
2
Fwd: fix Choice.cpp unicode string
This is needed so that samples/etc/choice.rb shows the strings in the choice box. One of the few places that missed UTF8 convertion. --- swig/classes/Choice.i 31 Jan 2005 04:18:52 -0000 1.2 +++ swig/classes/Choice.i 24 Jul 2005 19:18:55 -0000 @@ -14,7 +14,7 @@ for(int i=0; i < $1; ++i) { VALUE thisItem = rb_ary_entry($input, i); - $2[i] = (wxChar
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
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"); }
2005 Feb 28
3
test/unit error report for win32-service
Dan, I am assuming that the version in CVS is the most current one. Report follows. -- shanko ------------------------------------------------------ C:\win32utils\win32-service\test>ruby tc_service.rb This test will stop and start your Clipboard service, as well as pause and resume your Schedule service. This is harmless unless you are actually using these services at the moment you
2004 Dec 15
3
Newbie setup (Hardware questions)
Hello, I'm trying to setup an Asterix PBX solution in our office. We plan to have 5 active lines open available at any point in time. We'd like to use VoIP Phones, and possibly Software Based phone (*NIX/Windows enviroment). I was researching the various cards and I think I'd want to go with the Digium TDM40B - 4-port. However, I can't figure the differences between FXS &
2004 Oct 21
3
Samba 3.0.7 freezes on windows
Hi I have installed samba 3.0.7-1 on debian sarge. I have configure it as standalone. I put a share as follows: [share] writeable = yes browseable = yes public = yes path = /home/samba The permission on /home/samba is as follows: chmod 777 /home/samba Now on my windows XP, the share is listed when i browse. I am also able to copy a file to the share. But i cannot open the file and it just
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
2005 Feb 03
0
best patch for iptables ratelimiting
According to the F.A.Q. there''s a patch to do ratelimiting: http://etudiant.univ-mlv.fr/~jpetazzo/bytelimit.tgz Going with the thought that this is current..I tried it. I wasn''t able to get it to compile, as support for invert was causing a failure(i think). But i was able to get it to compile when I changed line 73 and my box loaded the module. Anyone know if this will do
2004 Dec 10
0
Multiple ISPs
Hello, I am thinking of connecting a Shorewall Firewall to three different ISPs and load balancing some but not all connections. Just asking for some advice for now. Here''s the network layout: ISP1 ISP2 ISP3 ADSL Router 1 ADSL Router 2 ADSL Router 3 | | | FW:eth0 FW:eth1 FW:eth2