in reply to segfault on writing an image?

What happens if you comment out these two lines?

$sth = $self->param('DBH')->prepare( "UPDATE jbg_managed_props SET NumPhotos = 1 WHERE jbgPropertyID = ? " ); $sth->execute($id) if ( !$self->query->param('pId') );

Does the segfault go away?

It looks like your passing your DBI handle as a CGI parameter and then expecting it to work as one once it has been sent to the client and returned?

I'm not a CGI person, but I wouldn't expect that to work.

My apologies if $self is not a CGI object.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon

Replies are listed 'Best First'.
Re^2: segfault on writing an image?
by geektron (Curate) on Jul 15, 2004 at 14:43 UTC
    well,  $self is a CGI::Application object. that's not the issue ... thx though.