On 21/06/02 09:14 -0600, bbcannon wrote:
> Hi All,
> 
> Has anyone else experienced this sort of behavior?:
> 
> I have a working/functional perl script which uses Inline C.  When I
delete
> one print statement that is
> located in a perl subroutine I get a bus error.  If I "undo" the delete
> there is no bus error and all the code works.
> The print statement is just text, no variables.

Does the C function call back to Perl? If so, read up on the perlcall
manpage. Using the Inline Stack macros is not quite appropriate for this
purpose as the cookbook might suggest. This needs to be fixed.

Or maybe that's not your problem at all :)

Cheers, Brian


The function doesn't return anything to perl. The prototype is:

void _cmlPlot(SV* optin,SV* legendin,SV* titlein,SV* plotTypein,SV*
xlabelin,SV* ylabelin,
              SV* zlabelin,SV* lineTypein,SV* axesin,SV* numDataSetsin,SV*
datain);

All of these SV's are passed as array of array. 

I also tried to comment out a call to a pretty-print function and got the
same bus error.

In this function I have a very large amount of variables (approximately 130)
which I use to 
convert each argument from a SV to an array.  Could that cause bus errors?

Thanks again...Brady

Reply via email to