From: jlouwere AT galaxy DOT csc DOT calpoly DOT edu (Jan Louwerens) Newsgroups: comp.os.msdos.djgpp Subject: Re: Bug report: Structs Date: 22 Jan 1997 22:20:51 GMT Organization: Cal Poly Computer Science Dept. Lines: 23 Message-ID: <5c63s3$m7k@waldorf.csc.calpoly.edu> References: <199701220247 DOT UAA37718 AT audumla DOT students DOT wisc DOT edu> NNTP-Posting-Host: galaxy.csc.calpoly.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Adam Kunen (kkunen AT facstaff DOT wisc DOT edu) wrote: : struct FooType { : char blah[1024][128]; : }; : void foobar(struct FooType ptr){ : return; : } : int main(void){ : struct FooType eek; : foobar(eek); : return 0; : } passing such large structures by value is bad. The whole thing has to be pushed on the stack (which is probably where your errors are coming from). Try passing just a pointer to the struct (by reference) and I bet you it'll work. JL