Angus | 24 Nov 18:36
Favicon

getElements().begin causes seg fault


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.

Gmane