opensubscriber
   Find in this group all groups
 
Unknown more information…

h : help-cgicc@gnu.org 25 November 2008 • 2:36AM -0500

[help-cgicc] getElements().begin causes seg fault
by Angus

REPLY TO AUTHOR
 
REPLY TO GROUP





I have this problem where as soon as I call begin() on the array returned by
getElements() I register a segmentation fault. Here's my code:
int main(int argc, const char *argv[]) {
int nReturn = EXIT_FAILURE;
try {
{
Cgicc cgi;
for(const_form_iterator iter = cgi.getElements().begin(); iter !=
cgi.getElements().end(); ++iter) {

and that's all there is to it. Valgrind registers a bunch of "conditional
jump or move depends on uninitialized values"s and then finally an "invalid
read". I've got what appears to be the latest cgicc (3.2.7). What am I doing
wrong?
--
View this message in context: http://www.nabble.com/getElements%28%29.begin-causes-seg-fault-tp20665728p20665728.html
Sent from the cgicc - General mailing list archive at Nabble.com.



_______________________________________________
help-cgicc mailing list
help-cgicc@gnu....
http://lists.gnu.org/mailman/listinfo/help-cgicc

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.