Message-ID: <3402832A.81AF2D5A@bspu.ac.by> Date: Tue, 26 Aug 1997 10:18:02 +0300 From: Alexander Bokovoy Organization: BSPU named after Maxim Tank MIME-Version: 1.0 To: frolikcc AT indy DOT net CC: djgpp AT delorie DOT com Subject: Re: SIGSEGV or SIGABRT during execution Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Precedence: bulk Chris Frolik wrote: > > strlen() returns the length of a string _without_ the null terminating > character. Try changing the line as follows: > > KeyWord=new char[strlen(keyword)+1]; > > And see if it works. BTW, although variable names are case sensitive, > it is less confusing to use names that are spelled differently, rather > than KeyWord and keyword. > I tried this variant also but nothing changes. It seems to review all pieces of code. And about names conventions: as you see in original message, keyword is a formal parameter in constructor and is used only in this strict context but KeyWord is a class data member. This name convention will helps to you when you do not have original source but see only headers. -- Alexander Bokovoy, ---== The Soft Age coming soon ==---