Re: Differences between C++ 'new' operator and 'malloc()' (NOT a C/C++ question)

2012-07-18 Thread Yaakov (Cygwin/X)
On 2012-07-18 04:27, Eliot Moss wrote: I'll just comment that AFAIK no Java VM runs in the cygwin environment -- all are native Windows apps. gcc4-java provides GIJ, and JamVM is available in Ports. Yaakov -- Problem reports: http://cygwin.com/problems.html FAQ: htt

Re: Differences between C++ 'new' operator and 'malloc()' (NOT a C/C++ question)

2012-07-18 Thread Eliot Moss
I'll just comment that AFAIK no Java VM runs in the cygwin environment -- all are native Windows apps. It *might* be possible to get Jikes RVM to go under cygwin, but last I checked a piece of linux functionality is missing, namely the ability to look at and modify the register state saved in the

Re: Differences between C++ 'new' operator and 'malloc()' (NOT a C/C++ question)

2012-07-18 Thread Claude SIMON
Ryan Johnson wrote: > On 13/07/2012 4:25 AM, Al Slater wrote: >> On 12/07/2012 16:59, Claude SIMON wrote: >>> Ryan Johnson wrote: [...] Sorry, I should have actually looked at the repo before assuming the test case was a monstrosity. By way of penance, I've now looked,

Re: Differences between C++ 'new' operator and 'malloc()' (NOT a C/C++ question)

2012-07-18 Thread Claude SIMON
Al Slater wrote: > On 12/07/2012 16:59, Claude SIMON wrote: >> Ryan Johnson wrote: >>> >>> [...] >>> >>> Sorry, I should have actually looked at the repo before assuming the >>> test case was a monstrosity. By way of penance, I've now looked, >>> downloaded, tweaked, and tested it. >>> >>> [...] >>

Re: Differences between C++ 'new' operator and 'malloc()' (NOT a C/C++ question)

2012-07-18 Thread Claude SIMON
Csaba Raduly wrote: > On Thu, Jul 12, 2012 at 5:59 PM, Claude SIMON wrote: > (snip) >> Since my last testings, I updated Cygwin, the JDK and the JRE. So, my >> current configuration is now : >> >> Windows Vista 32 bits SP2 >> Cygwin 1.7.15 >> g++ 4.5.3 >> javac 1.7.0_05 >> javah 1.7.0_05 >> java 1

Re: Differences between C++ 'new' operator and 'malloc()' (NOT a C/C++ question)

2012-07-13 Thread Ryan Johnson
On 13/07/2012 4:25 AM, Al Slater wrote: On 12/07/2012 16:59, Claude SIMON wrote: Ryan Johnson wrote: [...] Sorry, I should have actually looked at the repo before assuming the test case was a monstrosity. By way of penance, I've now looked, downloaded, tweaked, and tested it. [...] Thanks

Re: Differences between C++ 'new' operator and 'malloc()' (NOT a C/C++ question)

2012-07-13 Thread Al Slater
On 12/07/2012 16:59, Claude SIMON wrote: Ryan Johnson wrote: [...] Sorry, I should have actually looked at the repo before assuming the test case was a monstrosity. By way of penance, I've now looked, downloaded, tweaked, and tested it. [...] Thanks for testing. I removed your test result

Re: Differences between C++ 'new' operator and 'malloc()' (NOT a C/C++ question)

2012-07-13 Thread Csaba Raduly
On Thu, Jul 12, 2012 at 5:59 PM, Claude SIMON wrote: (snip) > Since my last testings, I updated Cygwin, the JDK and the JRE. So, my > current configuration is now : > > Windows Vista 32 bits SP2 > Cygwin 1.7.15 > g++ 4.5.3 > javac 1.7.0_05 > javah 1.7.0_05 > java 1.7.0_05 > > When running the test

Re: Differences between C++ 'new' operator and 'malloc()' (NOT a C/C++ question)

2012-07-12 Thread Claude SIMON
Ryan Johnson wrote: > > [...] > > Sorry, I should have actually looked at the repo before assuming the > test case was a monstrosity. By way of penance, I've now looked, > downloaded, tweaked, and tested it. > > [...] > Thanks for testing. I removed your test results (and the other stuff) from th

Re: Differences between C++ 'new' operator and 'malloc()' (NOT a C/C++ question)

2012-07-12 Thread Ryan Johnson
On 12/07/2012 8:12 AM, Claude SIMON wrote: Ryan Johnson wrote: On 10/07/2012 12:46 PM, Claude SIMON wrote: Ryan Johnson wrote: On 05/07/2012 9:36 AM, Claude SIMON wrote: Ryan Johnson wrote: On 04/07/2012 5:45 AM, Claude SIMON wrote: When I compile the component with Visual C++, it works. Wh

Re: Differences between C++ 'new' operator and 'malloc()' (NOT a C/C++ question)

2012-07-12 Thread Claude SIMON
Ryan Johnson wrote: > On 10/07/2012 12:46 PM, Claude SIMON wrote: >> Ryan Johnson wrote: >>> On 05/07/2012 9:36 AM, Claude SIMON wrote: Ryan Johnson wrote: > On 04/07/2012 5:45 AM, Claude SIMON wrote: >> When I compile the component with Visual C++, it works. When I >> compile

Re: Differences between C++ 'new' operator and 'malloc()' (NOT a C/C++ question)

2012-07-11 Thread Ryan Johnson
On 10/07/2012 12:46 PM, Claude SIMON wrote: Ryan Johnson wrote: On 05/07/2012 9:36 AM, Claude SIMON wrote: Ryan Johnson wrote: On 04/07/2012 5:45 AM, Claude SIMON wrote: When I compile the component with Visual C++, it works. When I compile the component with g++... it crashes. With 'gdb', I

Re: Differences between C++ 'new' operator and 'malloc()' (NOT a C/C++ question)

2012-07-10 Thread Claude SIMON
NightStrike wrote: > On Thu, Jul 5, 2012 at 9:36 AM, Claude SIMON > wrote: >> Let's consider a Java native component which only calls a 'malloc(1)'. >> It >> doesn't even test the returned value (it is usually not a good idea, but >> it doesn't matter here). >> >> This component : >> - compiled wi

Re: Differences between C++ 'new' operator and 'malloc()' (NOT a C/C++ question)

2012-07-10 Thread Claude SIMON
Ryan Johnson wrote: > On 05/07/2012 9:36 AM, Claude SIMON wrote: >> Ryan Johnson wrote: >>> On 04/07/2012 5:45 AM, Claude SIMON wrote: When I compile the component with Visual C++, it works. When I compile the component with g++... it crashes. With 'gdb', I found that the p

Re: Differences between C++ 'new' operator and 'malloc()' (NOT a C/C++ question)

2012-07-06 Thread NightStrike
On Thu, Jul 5, 2012 at 9:36 AM, Claude SIMON wrote: > Let's consider a Java native component which only calls a 'malloc(1)'. It > doesn't even test the returned value (it is usually not a good idea, but > it doesn't matter here). > > This component : > - compiled with g++ under Linux : works, > -

Re: Differences between C++ 'new' operator and 'malloc()' (NOT a C/C++ question)

2012-07-05 Thread Ryan Johnson
On 05/07/2012 9:36 AM, Claude SIMON wrote: Ryan Johnson wrote: On 04/07/2012 5:45 AM, Claude SIMON wrote: When I compile the component with Visual C++, it works. When I compile the component with g++... it crashes. With 'gdb', I found that the problem happens when calling the 'malloc' function

Re: Differences between C++ 'new' operator and 'malloc()' (NOT a C/C++ question)

2012-07-05 Thread Claude SIMON
Ryan Johnson wrote: > On 04/07/2012 5:45 AM, Claude SIMON wrote: >> When I compile the component with Visual C++, it works. When I compile >> the >> component with g++... it crashes. >> >> With 'gdb', I found that the problem happens when calling the 'malloc' >> function (as soon as the function is

Re: Differences between C++ 'new' operator and 'malloc()' (NOT a C/C++ question)

2012-07-04 Thread Ryan Johnson
On 04/07/2012 5:45 AM, Claude SIMON wrote: When I compile the component with Visual C++, it works. When I compile the component with g++... it crashes. With 'gdb', I found that the problem happens when calling the 'malloc' function (as soon as the function is called, NOT when the returned alloca

Differences between C++ 'new' operator and 'malloc()' (NOT a C/C++ question)

2012-07-04 Thread Claude SIMON
Hello everybody ! I have some C++ code that I want to use in a native Java component compiled with Cygwin g++. I also use exactly the same C++ code in a command-line tool ('.exe' binary). When I compile the tool with Visual C++, it works. When I compile the tool with g++, it works. When I compi