Re: exception handling

Bill McCormick <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On 2/13/2014 2:41 PM, Bill McCormick wrote:
> I have a Perl module that calls a function from in a Swig generated
> module, which in turn calls a function in a shared library. It's been a
> while since I put it all together and made it work, so I'm kind of hazy
> on the technical details - and since it mostly works I never need to
> look at it.
>
> There is occasion, when called with incorrect parameters, that the
> wrapped function(s) will create a segmentation fault. I'd like to be
> able to get the details of the seg fault up to the Perl/CGI script that
> runs all of this. Is there some way I should be wrapping calls to the
> shared lib in something like an eval BLOCK, so I can croak a message
> back to the web page?
>

Sorry! I posed to the wrong group!! Feel free to answer if you have any 
ideas though.


---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.