delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
X-Authentication-Warning: | hp2.xraylith.wisc.edu: khan owned process doing -bs |
Date: | Mon, 10 Jan 2000 16:57:57 -0600 (CST) |
From: | Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU> |
To: | Jamie Guinan <guinan AT bluebutton DOT com> |
cc: | Cygwin Mailing List <cygwin AT sourceware DOT cygnus DOT com> |
Subject: | Re: Segfault when call kernel32 function |
In-Reply-To: | <Pine.LNX.4.10.10001101654210.844-100000@gemini.home.net> |
Message-ID: | <Pine.HPP.3.96.1000110165637.22291B-100000@hp2.xraylith.wisc.edu> |
MIME-Version: | 1.0 |
On Mon, 10 Jan 2000, Jamie Guinan wrote: > Ah! Got it working now. When I first tried your suggestion I > mistakenly used > > static const char mode_str[128] = "9600,N,8,1"; > ^^^^^ > > instead of > > static char mode_str[128] = "9600,N,8,1"; Yup, the 'const' pretty much kills the reason for making it a writable buffer ;-) Glad it worked. Feel free to send a bug report to the OS vendor. I bet it's going to be fixes as soon as MSVC starts supporting putting const strings in readonly memory (or perhaps that's *why* MSVC doesn't do it yet). Regards, Mumit -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |