From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16774 invoked by alias); 24 May 2002 20:41:27 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 16706 invoked from network); 24 May 2002 20:41:12 -0000 Received: from unknown (HELO hotmail.com) (216.33.241.246) by sources.redhat.com with SMTP; 24 May 2002 20:41:12 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 24 May 2002 13:41:12 -0700 Received: from 198.161.93.160 by lw8fd.law8.hotmail.msn.com with HTTP; Fri, 24 May 2002 20:41:12 GMT X-Originating-IP: [198.161.93.160] From: "Baloo Brahm" To: cygwin@cygwin.com Bcc: Subject: Help!!! Date: Sat, 25 May 2002 03:30:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 24 May 2002 20:41:12.0453 (UTC) FILETIME=[57814350:01C20363] X-SW-Source: 2002-05/txt/msg01552.txt.bz2 I am very new to dlls. I followed the instructions on the cygwin site to create a simple dll. It worked perfectly. I wrote a very simple function that took a pointer to an integer and added 1 to it. The calling function was able to get the modified value. However, when I tried to do strcpy to char*, it gives me a segmentation fault. I did malloc space for it before passing it to the dll function. While trying different things, I also did a malloc inside the dll function. It seems I can't do any memory operations inside the dll function. I am sure there are many experienced people who would be able to help. Thanks! BB _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/