This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Help!!!


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]