| www.delorie.com/archives/browse.cgi | search |
| From: | Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Memory troubles. |
| Date: | 23 Jun 2001 21:04:10 GMT |
| Organization: | Aachen University of Technology (RWTH) |
| Lines: | 23 |
| Message-ID: | <9h308a$qkf$1@nets3.rz.RWTH-Aachen.DE> |
| References: | <9h2arg$54v$1 AT taliesin DOT netcom DOT net DOT uk> |
| NNTP-Posting-Host: | acp3bf.physik.rwth-aachen.de |
| X-Trace: | nets3.rz.RWTH-Aachen.DE 993330250 27279 137.226.32.75 (23 Jun 2001 21:04:10 GMT) |
| X-Complaints-To: | abuse AT rwth-aachen DOT de |
| NNTP-Posting-Date: | 23 Jun 2001 21:04:10 GMT |
| Originator: | broeker@ |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Matt Bayliss <grebz AT hiddenemail DOT com> wrote: > *value_p_p[HitCounter] = Data[DataCounter]; I suspect this line here to be your problem. It should probably read: (*value_p_p)[HitCounter] = Data[DataCounter]; > value_p_p is passed to the function this statement is in with myfunc( int > **value_p_p ). It is declared the same type in the calling function. That's almost certainly wrong. You want to declare it as int *value_p and then call myfunc(&value_p); -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |