From: dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de Subject: Re: cygwin.dll bug 31 Jan 1997 20:36:16 -0800 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <009AF35B.6FC81C80.8832.cygnus.gnu-win32@ifk20.mach.uni-karlsruhe.de> Original-To: cabr85 AT ccsun DOT strath DOT ac DOT uk Original-CC: gnu-win32 AT cygnus DOT com, dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de Original-Sender: owner-gnu-win32 AT cygnus DOT com Hi, you wrote: : > I hope that's not very old, bad code relying to dereference NULL... : I wrote the original post. I still haven't had time to check for problems : in my own code but I am not a very experienced C++ programmer and got : curious about your comment: What is "...relying to deference NULL"? ^^^^^^^^^ Sorry, you mad a cool typo! I just looked up this word in a dictionary. Everybody should really honour and respect NULL pointers 8-) Most older hardware and software didn't have memory protection at all, and some data or code could legally reside at address zero, thus reads or maybe even writes were allowed. Our HP-UX box can do both, the default allowing it! From it's man ld: -z Arrange for run-time dereferencing of null pointers to produce a SIGSEGV signal. (This is the complement of the -Z option.) -Z Arrange to allow run-time dereferencing of null pointers. See the discussions of -Z and pointers in cc(1). (This is the complement of the -z option.) Now guess why I compile my programs -z ... Bye, Heribert (dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de) - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".