VC 'library' builds with visual studio
I found this very interesting blog entry by Jim Beveridge about archiving an object library (.lib, or .a for unix-heads) on various flavors of Visual Studio 2005 and later... http://qualapps.blogspot.com/2007/12/winsxs-breaks-old-debug-libraries.html so anything we ship as a lib (which isn't a dynamic library) looks to be next to useless once we adopt a modern version of VC. Bill
Re: VC 'library' builds with visual studio
--- HARBOR: http://coolharbor.100free.com/index.htm The most powerful application server on earth. The only real POJO Application Server. Making the Java dream come true. --- - Original Message - From: William A. Rowe, Jr. [EMAIL PROTECTED] To: dev@httpd.apache.org; list mod_perl [EMAIL PROTECTED] Sent: Wednesday, March 12, 2008 10:24 AM Subject: VC 'library' builds with visual studio Will it seems after VS 2003 MS has gone off at a tangent... I was trying to get the Harnony project going on 2005/2008 ... its impossible. I think MS is pulling their C tools closer to .Net C# and the like. ... the problem I found which just causes millions of compiler errors and warnings is that effectively MS seem to have deprecated any null terminated functions, probably because that fits the VB model better. I read the blog, that guy is having problems moving MS to MS... try port a non MS project to VS 2008... it hurts ;) I've been hunting around trying to see if there is a good multiplatform C dev environment, I think now there is a huge need for one... or possibly a toolkit for 2008 that makes the thing backward compatible, or something... its a problem. VS is .Net contaminated ;) I found this very interesting blog entry by Jim Beveridge about archiving an object library (.lib, or .a for unix-heads) on various flavors of Visual Studio 2005 and later... http://qualapps.blogspot.com/2007/12/winsxs-breaks-old-debug-libraries.html so anything we ship as a lib (which isn't a dynamic library) looks to be next to useless once we adopt a modern version of VC. Bill
Re: Huge httpd-process
Hello, If you think this is a bug, please open a bug in bugzilla. Adding you configuration to the bug could be also helpful. in the meantime I have upgraded to 2.2.8, but I still sometimes see processes like this: 2069 nobody15 01 0:46.23 87.6 2460m 1.7g 1564 D httpd httpd is consuming 87% of the ram. Why does he do that? How can I trace what the process is doing? I guess it is useless to post bug report without additional information. consume that much memory (we are not using mod_php, mod_perl or anything like that). Do you use any other third party modules? I'm using a self-programmed module for dynamic mapping from hostnames to document-roots from a berkeley db. But it is read only. The same configuration is running on different servers, but only one with a high load seems to cause this problem. Regards Marten
Re: Huge httpd-process
Hi Marten, Marten Lehmann schrieb: Hello, If you think this is a bug, please open a bug in bugzilla. Adding you configuration to the bug could be also helpful. in the meantime I have upgraded to 2.2.8, but I still sometimes see processes like this: 2069 nobody15 01 0:46.23 87.6 2460m 1.7g 1564 D httpd httpd is consuming 87% of the ram. Why does he do that? How can I trace what the process is doing? I guess it is useless to post bug report without additional information. This is likely not the answer you are looking for, but: if you think it might be a leak, i.e. the amount of memory is slowly growing over time/requests, you could use MaxRequestsPerChild. It will tell httpd to end child processes after that many requests (more precisely connections). httpd will automatically start new children if needed. Don't set it to extremely small values though, because forking a lot of processes (like 10 per second or even more) will be very inefficient. How small is extremely small? You'll have to do some calculations about how many requests per second a single httpd process is doing for you. Concerning what is using memory: anything interesting in /proc/2069/maps ? It might be simply showing, that it's heap, but one never knows ;) Regards, Rainer
Re: VC 'library' builds with visual studio
Johnny Kewl wrote: --- HARBOR: http://coolharbor.100free.com/index.htm The most powerful application server on earth. The only real POJO Application Server. Making the Java dream come true. --- - Original Message - From: William A. Rowe, Jr. [EMAIL PROTECTED] To: dev@httpd.apache.org; list mod_perl [EMAIL PROTECTED] Sent: Wednesday, March 12, 2008 10:24 AM Subject: VC 'library' builds with visual studio Will it seems after VS 2003 MS has gone off at a tangent... I was trying to get the Harnony project going on 2005/2008 ... its impossible. painful yes :) Not impossible. I think MS is pulling their C tools closer to .Net C# and the like. ... the problem I found which just causes millions of compiler errors and warnings is that effectively MS seem to have deprecated any null terminated functions, probably because that fits the VB model better. As an historical note, for over a decade their C compiler has been their C++ lexar, which creates lots of interesting side effects. No, the native C code compiler is not a .NET compiler. You are looking to define the macro _CRT_SECURE_NO_DEPRECATE before you've included any std includes. It wasn't a matter of killing null-term fn's - it was a matter of the target space (buffer overflows) - although they did a pathetic job of their evaluation of which fn's really are at issue. (If this were not true, VS is .Net contaminated ;) Nope - but apparently the last remaining KR fans working there were shouted down in the zeal to either pollute C with more MS'isms, or short sighted attempt to mitigate buffer overflows. (strncpy is not intrinsically vulnerable, for example, while strcpy could be). Sounds like this thread belonged on harmony's dev list, however; always feel free to cc me on a dev post there. Bill
How to return HTTP error codes using hook filter ...
I've created a filter using ap_hook_handler(hook_handler_wmserr, NULL, NULL, APR_HOOK_FIRST). This filter does some sanity checks, and if something is wrong should respond to the requester with an XML message containing the error details, and return HTTP_BAD_REQUEST; /* 400 */ However, apache will respond with the default HTTP_BAD_REQUEST message text and ignore the changes I make calling the ap_set_content_type() and ap_rprintf() routines. Unless I return 0 then it works fine, except the result is 200 OK when it should be 400 Bad request. How can I change the body and indicate the error code which should be returned? -- Kiffin Gish | Desktop Services Development | TomTom | [EMAIL PROTECTED] | +31 (0) 6 15529214 mobile | +31 (0) 20 850 0989 office This e-mail message contains information which is confidential and may be privileged. It is intended for use by the addressee only. If you are not the intended addressee, we request that you notify the sender immediately and delete or destroy this e-mail message and any attachment(s), without copying, saving, forwarding, disclosing or using its contents in any other way. TomTom N.V., TomTom International BV or any other company belonging to the TomTom group of companies will not be liable for damage relating to the communication by e-mail of data, documents or any other information.