[Info-vax] calloc fails with access violation
Jose Cuevas
jcuevas at mac.com
Mon Aug 24 12:36:43 EDT 2009
1. We have a problem with a fairly simple library written in C that
gets called from Cobol.
The C library is used to PUSH data generated by the Cobol application
over HTTP POST using sockets.
We are getting an access violation (a crash) on calls to calloc() of
insignificant size. While at first we thought it was on a particular
record we then found that it is a far more inconsistent.
The C code runs fine when tested on a unix machine.
2. Unrelated question: if we send a variable from a record structure
to a C function we get an access violation. So far the only workaround
we found is to move variables to one defined at the working-storage.
Any ideas on how to use record variables as parameters for C
functions?
Director, Internet Strategies and Development
University of Puerto Rico at Mayaguez
e: jose at uprm.edu
t: 1.787.832.4040 ext 2055
More information about the Info-vax
mailing list