Just an update from the conversation I had with Yuri.
He confirmed that the APR crashes if build with VS2008.
(both debug and release version of msvcrt90(d).dll)
Now looking at the MSVCRT source for _close, I suspect
it crashes with VS2005 as well.
Since it doesn't crash if linked to msvcrt.dll
Mladen Turk wrote:
Indeed the crash happens on second _close(1) call.
I presume the _close(x) should be called *only* if
the file was dup2'ed (at least according to the comment
in the code), so I'll try to figure out how to fix that
unless Bill has some other ideas or suggestions.
The real
Dear All,
I have a problem with using stdout stream opened by apr_file_open_stdout()
function. If I open several stdout handlers in my program then it crashes
when calls apr_file_close() function more than one time.
The following simple code reproduces such error:
int main(int a, char** b)
On Sat, 2009-09-19 at 23:34 +0700, Yuri V. Vishnevskiy wrote:
I have a problem with using stdout stream opened by
apr_file_open_stdout()
function. If I open several stdout handlers in my program then it
crashes
when calls apr_file_close() function more than one time.
Could you run it
On Sat, 2009-09-19 at 23:34 +0700, Yuri V. Vishnevskiy wrote:
I have a problem with using stdout stream opened by
apr_file_open_stdout()
function. If I open several stdout handlers in my program then it
crashes
when calls apr_file_close() function more than one time.
Could you run it within a
On Sun, 2009-09-20 at 09:56 +0700, Yuri V. Vishnevskiy wrote:
Here is a call stack:
test.exe!_crt_debugger_hook(int _Reserved=2) Line 62 C
Thanks.
I just now realised this is Windows. I guess someone else will have to
have a look. I don't have that platform and I'm not at all familiar
On Sun, 2009-09-20 at 09:56 +0700, Yuri V. Vishnevskiy wrote:
Here is a call stack:
test.exe!_crt_debugger_hook(int _Reserved=2) Line 62 C
Thanks.
I just now realised this is Windows. I guess someone else will have to
have a look. I don't have that platform and I'm not at all familiar