Win32::OLE
am 08.03.2007 01:18:22 von NBharuchaThis is a multi-part message in MIME format.
--===============0346822961==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C76117.496C8D95"
This is a multi-part message in MIME format.
------_=_NextPart_001_01C76117.496C8D95
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi All,
=20
I have code that has been in Production for almost 2 years running many
times per day flawlessly. I am interacting with a 3rd party DLL (WS_FTP
Secure Dev Kit) which acts as a COM server. About 1.5 months ago and
yesterday the DLL caused my Perl exe to crash; the crash should have
been trapped by eval blocks, but wasn't...
=20
=20
Here is the sub (OO Method) where I execute the new method:
=20
# Create a new WSFTP API object #
sub createWSFTPComObject
{
my $self =3D shift;
my $objRef =3D Win32::OLE->new('WsftpSDK.WsftpApi') || die
"\nWSFTP.pm - Unable to instantiate WS_FTP API object, error: $!";
if ($objRef == undef)
{
print "\nWSFTP.pm - Unable to create WS_FTP API
Object!";
die "\nWSFTP.pm - $!";
}
=20
if ($self->{_displayMode} == 3)
{
print "\nWSFTP.pm - Created WS_FTP API Object "
.. $objRef;
}
=20
return $objRef;
}
=20
I am using ActivePerl 5.8.4.810 packaged to an exe using PDK 5.3. The
code is running on a Windows 2003 server. =20
=20
=20
=20
Thanks,
=20
Nick B.
------_=_NextPart_001_01C76117.496C8D95
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
xmlns=3D"http://www.w3.org/TR/REC-html40">
charset=3Dus-ascii">
style=3D'font-size:10.0pt;
font-family:Arial'>Hi All,
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>I have code that has been in Production for almost 2 =
years
running many times per day flawlessly. I am interacting with a =
3rd
party DLL (WS_FTP Secure Dev Kit) which acts as a COM server. =
About 1.5
months ago and yesterday the DLL caused my Perl exe to crash; the crash =
should have
been trapped by eval blocks, but =
wasn’t…
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>Here is the sub (OO Method) where I execute the new =
method:
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'># Create a new WSFTP API object =
#
style=3D'font-size:10.0pt;
font-family:Arial'>sub createWSFTPComObject
style=3D'font-size:10.0pt;
font-family:Arial'>{
style=3D'font-size:10.0pt;
font-family:Arial'> =
my
$self =3D shift;
style=3D'font-size:10.0pt;
font-family:Arial'> =
my
$objRef =3D Win32::OLE->new('WsftpSDK.WsftpApi') || die =
"\nWSFTP.pm -
Unable to instantiate WS_FTP API object, error: =
$!";
style=3D'font-size:10.0pt;
font-family:Arial'> =
if
($objRef == undef)
style=3D'font-size:10.0pt;
font-family:Arial'> =
{
style=3D'font-size:10.0pt;
font-family:Arial'> =
&=
nbsp; print
"\nWSFTP.pm - Unable to create WS_FTP API =
Object!";
style=3D'font-size:10.0pt;
font-family:Arial'> =
&=
nbsp; die
"\nWSFTP.pm - $!";
style=3D'font-size:10.0pt;
font-family:Arial'> =
}
style=3D'font-size:10.0pt;
font-family:Arial'> =
style=3D'font-size:10.0pt;
font-family:Arial'> =
if
($self->{_displayMode} == 3)
style=3D'font-size:10.0pt;
font-family:Arial'> =
{
style=3D'font-size:10.0pt;
font-family:Arial'> =
&=
nbsp; print
"\nWSFTP.pm - Created WS_FTP API Object " . =
$objRef;
style=3D'font-size:10.0pt;
font-family:Arial'> =
}
style=3D'font-size:10.0pt;
font-family:Arial'> =
style=3D'font-size:10.0pt;
font-family:Arial'> =
return
$objRef;
style=3D'font-size:10.0pt;
font-family:Arial'>}
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>I am using ActivePerl 5.8.4.810 packaged to an exe =
using PDK
5.3. The code is running on a Windows 2003 server. =
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>Thanks,
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>Nick B.
------_=_NextPart_001_01C76117.496C8D95--
--===============0346822961==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============0346822961==--