| delorie.com/archives/browse.cgi | search |
| Message-Id: | <199904211408.KAA10834@delorie.com> |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
| From: | "a.j.strachan" <a DOT j DOT strachan AT swansea DOT ac DOT uk> |
| To: | cygwin AT sourceware DOT cygnus DOT com |
| Date: | Wed, 21 Apr 1999 15:05:26 +0000 |
| Subject: | Problem with calloc |
| Reply-To: | a DOT j DOT strachan AT swansea DOT ac DOT uk |
| MIME-Version: | 1.0 |
I'm trying to port a program from Unix to NT. Compilation is fine. But running the program gives a STATUS_ACCESS_VIOLATION I've tracked it down to the following statement struct par_str **par; par[0]->param = (struct par_str **)calloc(NUMPAR+1, sizeof(int *)); I've made another test program by stripping out everything but the offending part. Compiling the test program on another C compiler works fine - but I get the same error message when it's compiled with gcc Can anyone help? Rgds Tony Dr Tony Strachan Power Electronics Design Centre Dept of Electrical & Electronic Engineering University of Wales Swansea Singleton Park Swansea SA2 8PP Tel +44 (0)1792 295420 Fax +44 (0)1792 295686 -- 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 |