Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3AE2F6E0.7EB9B5F5@lescher.de> Date: Sun, 22 Apr 2001 17:21:04 +0200 From: Christian Lescher X-Mailer: Mozilla 4.7 [de] (Win95; I) X-Accept-Language: de MIME-Version: 1.0 To: Robert Collins , "Larry Hall (RFK Partners, Inc)" , "'Andrew Markebo'" , Troy Noble CC: Lescher Christian , cygwin AT cygwin DOT com Subject: Re: AW: DLL function with string result? References: <4 DOT 3 DOT 1 DOT 2 DOT 20010420103953 DOT 022a2700 AT pop DOT ma DOT ultranet DOT com> <4 DOT 3 DOT 1 DOT 2 DOT 20010420122559 DOT 0224b5f0 AT pop DOT ma DOT ultranet DOT com> <3AE07C0B DOT 928C7680 AT lescher DOT de> <00d801c0c9ee$5ebc44d0$0200a8c0 AT lifelesswks> Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit With your help and some more testing, finally I found out that the reason for the access violation error was a stack overflow while preparing the result string. With strdup everything is alright, also for strings > 64 KB. Thanks again! Christian -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple