Message-ID: <33AFC44E.6079@bo.dada.it> Date: Tue, 24 Jun 1997 14:57:50 +0200 From: Diego Zuccato Organization: CyberSpace Software Labs BBS MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Debugging options Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Hello All. Yesterday night I thought : "why can't DJGPP use a different 'segment' for each malloc()/new to allow bounds checking ?". Since I never saw it implemented, I don't know if it could be possible. This way, if someone try to access memory never allocated, he gets a SIGSEGV. Same technique could be used to catch writing attempts to a NULL ptr. Well, I really don't know much about 386 protected mode, but if it's not possible, could you explain me why ? Tks, Diego.