Re: [naviserver-devel] Naviserver hangs on Windows

2014-10-08 Thread Andrew Piskorski
Gustaf, my fork should be suitable for merging back into naviserver/naviserver now. On Wed, Oct 08, 2014 at 09:32:56AM +0200, Gustaf Neumann wrote: > So at least, when using Tcl_GetTime(), > which returns the time as Tcl_Time, everything should be > fine. Note, that in your native time implementa

Re: [naviserver-devel] Naviserver hangs on Windows

2014-10-08 Thread Gustaf Neumann
yes, it might be a good time. as wrote in the other thread, i was able to compile an start nsd with very little windows experience. Be aware, that runnning "nsd.exe -c" does not mean that all of nsd is really running. -g PS: my own time budget will be reduced significantly for the next weeks. Am

Re: [naviserver-devel] Naviserver hangs on Windows

2014-10-08 Thread Gustaf Neumann
>> The problem seems to be: DllMain() calls certain functions >> before the normal entry point main() is called, which initializes >> tcl etc. The Windows man page [1] says: > Interesting. And of course DllMain() only exists on Windows. But, > why do we need DllMain() at all? I assume we DO nee

Re: [naviserver-devel] Naviserver hangs on Windows

2014-10-08 Thread Andrew Piskorski
On Wed, Oct 08, 2014 at 06:50:35PM +0200, Maurizio Martignano wrote: > Dear Andrew and Gustaf, > In due time, when you both are confident on the status of Naviserver > on Windows, I would try it inside my Windows-OpenACS distribution. That sounds excellent to me. My own use of Naviserver on

Re: [naviserver-devel] Naviserver hangs on Windows

2014-10-08 Thread Maurizio Martignano
Dear Andrew and Gustaf, In due time, when you both are confident on the status of Naviserver on Windows, I would try it inside my Windows-OpenACS distribution. First of all I would try it in few installations running on the machines I have in my offices, then once I see it they are running

Re: [naviserver-devel] Naviserver hangs on Windows

2014-10-08 Thread Andrew Piskorski
On Wed, Oct 08, 2014 at 09:32:56AM +0200, Gustaf Neumann wrote: > the advantage of approach 2 (disable mutex timings, use ) is that this > works for 32bit and 64 bit, while (1) > works most likely only for 64bit (if i look at the constant). No, I'm confident that the approach using EPOCH_BIAS w

Re: [naviserver-devel] warning, shift count undefined behavior

2014-10-08 Thread Maurizio Martignano
SonarQube (http://www.sonarqube.org) is "just" a web application displaying the results of some analyses performed by other tools. I am currently working on an Ada plugin and C/C++ plugin that I use for some Verification and Validation activities. For each language there might be a plugin. For ea

Re: [naviserver-devel] warning, shift count undefined behavior

2014-10-08 Thread Andrew Piskorski
On Wed, Oct 08, 2014 at 08:14:14AM +0200, Maurizio Martignano wrote: > Dear Andrew, > Yes, it is a potential issue. > http://sonarsrv.spazioit.com:9000/dashboard/index?id=my%3Anaviserver%3Ansd%2 Neat! Hm, it uses SonarQube, which I'd never heard of before. What static analyzer is ultimatel

Re: [naviserver-devel] Naviserver hangs on Windows

2014-10-08 Thread Andrew Piskorski
On Wed, Oct 08, 2014 at 08:05:42AM +0200, Maurizio Martignano wrote: > I do agree with your remarks in your mail, I had a look at the Visual Studio > Project Files you use, the only relevant differences I can see are the I do not use any Visual Studio Project Files for Naviserver. The ones in Me

Re: [naviserver-devel] Naviserver hangs on Windows

2014-10-08 Thread Gustaf Neumann
I have to look at this closer before i have a better seeing of consequences of changing the types in Ns_Time, i would certainly prefer to stick to the Tcl conventions, since we depend strongly on tcl behavior all over the place. There was a bug in log.c passing the argument to ns_localtime, whi

Re: [naviserver-devel] Naviserver hangs on Windows

2014-10-08 Thread Gustaf Neumann
Andrew, these are good news! the advantage of approach 2 (disable mutex timings, use ) is that this works for 32bit and 64 bit, while (1) works most likely only for 64bit (if i look at the constant). The mutex timings is an additional feature in naviserver, so at least for the time being, one