From: Sascha Zapf Newsgroups: comp.os.msdos.djgpp Subject: TV Patch Date: Fri, 20 Aug 1999 00:39:05 +0100 Lines: 53 Distribution: world Message-ID: <37BC9598.FCC6D93A@netcologne.de> NNTP-Posting-Host: dial-ra-nc3-125.netcologne.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.netcologne.de 935176687 5140 195.14.251.125 (20 Aug 1999 19:18:07 GMT) X-Complaints-To: usenet AT news DOT netcologne DOT de NNTP-Posting-Date: 20 Aug 1999 19:18:07 GMT X-Mailer: Mozilla 4.6 [de]C-CCK-MCD QXW0321j (Win95; I) X-Accept-Language: de-DE,en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Thanx for the Patch.... But my Problem goes on... Here is my Calling Source void TKoAssApp::Konvert() { TCenterDialog *KonvertDialog = new TCenterDialog( 60, 20, "Konvertieren" ); if( KonvertDialog ) { TScrollBar *ListScroller = new TScrollBar( TRect( 20,2,21,18)); TDirListBox *ListBox = new TDirListBox( TRect( 2,2, 20, 18 ), ListScroller); TLabel *ListBoxLabel = new TLabel( TRect( 2,1,20,2 ), "~c~ta - Dateien", ListBox ); KonvertDialog->insert( ListBox ); KonvertDialog->insert( ListScroller ); KonvertDialog->insert( ListBoxLabel ); char StartDir[80]; strcpy(StartDir, "c:\\"); ListBox->newDirectory( StartDir); // This Call crashes deskTop->execView( KonvertDialog ); } destroy( KonvertDialog ); } And this ist the Line that Terminates the Program with SIGABRT end = strrchr( dir, DIRSEPARATOR ); char path[PATH_MAX]; strncpy( path, dir, size_t(end-dir+1) ); // This one *********** end = path + unsigned(end-dir)+1; strcpy( end, "*" ); Before Pressing F7... path = "/r" dir = "c:\\" end-dir+1 = -82..... somewhat over eighthundredthousand When using TChDirDialog all is O.K this Line will copy and the Proggy goes on... Sascha