[Arsperl-users] ars_CreateEntry crashing perl
Brought to you by:
jeffmurphy
|
From: Sam V. <sa...@si...> - 2005-09-23 00:44:57
|
I am using activestate perl 5.8.3 build 809 on Windows 2k, with
ARSystem 6.03.00. I have installed ARSPerl-1.84 windows binary
distribution available on the site.
I am trying to insert multiple entries into a form in using the
following code:
my $c = ars_Login("ohio", "Demo", "", undef, undef, 6777, 0);
%f = ars_GetFieldTable($c, "HPD:HelpDesk");
my $id = ars_CreateEntry($c, "HPD:HelpDesk",
$f{'Summary'}, "Perl Test ticket #1",
$f{'Description'}, "his is the description",
$f{'Category'},"Software",
$f{'Type'}, "Other",
$f{'Item'}, "Drivers",
$f{'Case Type'}, "Incident",
$f{'Priority'}, "Low",
$f{'Requester Login Name+'}, "Demo",
$f{'Requester Name+'}, "Demo",
$f{'Source'}, "Phone");
print "TICKET ID: $id\r\n";
$id = ars_CreateEntry($c, "HPD:HelpDesk",
$f{'Summary'}, "Perl Test ticket #2",
$f{'Description'}, "his is the description",
$f{'Category'},"Software",
$f{'Type'}, "Other",
$f{'Item'}, "Drivers",
$f{'Case Type'}, "Incident",
$f{'Priority'}, "Low",
$f{'Requester Login Name+'}, "Demo",
$f{'Requester Name+'}, "Demo",
$f{'Source'}, "Phone");
print "TICKET ID: $id\r\n";
When I run the above script, I get an application error dialog for
perl.exe which states "The instruction "0x77fcb861" referenced memory
at "0x015cd4a0". The memory cannot be "written"." The dialog comes up
after the two IDs are printed out, and if I use Remedy User to view the
tickets, they are indeed created. If I remove the code to create the
second ticket, the whole thing works fine.
Does ARSPerl work under activestate perl? Is there something I can do
to get around this problem?
-Sam
|