help-cgicc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Angus
Subject: [help-cgicc] getElements().begin causes seg fault
Date: Mon, 24 Nov 2008 09:36:02 -0800 (PST)

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]