Just as a quick follow-up to that, you don't even have to allocate any memory.
Just change your
register struct descrip *intd;
to
register struct descrip intd;
and your loop from
for (i = 0; i < size; i++) {
intd->dword = D_Integer;
intd->vword.integr = x[i];
bp->lslots[i] = *intd;
}
to
for (i = 0; i < size; i++) {
intd.dword = D_Integer;
intd.vword.integr = x[i];
bp->lslots[i] = intd;
}
This gets rid of your memory violation (with or without the printf).
Cheers,
R
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Oh, it's good to be a geek.
http://thinkgeek.com/sf
_______________________________________________
Unicon-group mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unicon-group