I tried to make Darius Clynes small Oracle project work on Windows 2000 SP2 (latest) and Windows NT 4 SP6b (latest) but I consistently get

m.AllocationBase 0x0, m.BaseAddress 0x614E0000, m.RegionSize 0x20000, m.State 0x10000 
K:\cygwin\usr\src\try_ora\my_example.exe: *** Couldn't reserve space for cygwin's heap 
(0x614E0000 <0x1690000>) in child, Win32 error N

where N = 487 if launched within an xterm
and   N = 6   if launcehd within the bash shell started by cygwin.bat.

When I run with `gdb`, I see a zillion of the following message box pairs:

"LDR: Automatic DLL Relocation in my_example.exe"
"LDR: Dll {AN ORACLE DLL} base 600000000 relocated due to collision with {ANOTHER ORACLE DLL}

accompanied by a very VERY fast DOS-like box flashing by.  I/O redirection of stderr and stdout on the command line doesn't capture anything.

Attached are the cygcheck.out for Windows NT 4 and the project files submitted by M. Clynes.  I had to modify the Makefile for directory and Oracle version differences.  

Problem statement reproduction:

1) Install Oracle 8i client.  Note the resulting directories.
2) !mkdir /usr/src/try_ora
3) Detach the try_ora.tar.gz to /usr/src/try_ora.
3) !cd /usr/src/try_ora; tar xvfz try_ora.tar.gz
4) Change ORACLE_HOME in Makefile as needed to match your Oracle 8i client installation.
5) !make all
6) !my_example

Step 6 should get the same results as I did.  Anyone seen these types of errors with Oracle/Cygwin before?  How could I further investigate error Win32 487 or 6?

Thanks in advance,

Richard