delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/05/24/16:42:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Originating-IP: [198.161.93.160]
From: "Baloo Brahm" <b_brahm AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Help!!!
Date: Fri, 24 May 2002 20:41:12 +0000
Mime-Version: 1.0
Message-ID: <F246DisywkGmY8TkomD000054de@hotmail.com>
X-OriginalArrivalTime: 24 May 2002 20:41:12.0453 (UTC) FILETIME=[57814350:01C20363]

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019