Robert Boisvert wrote:

I'm working on a project to connect to a SQLExpress database on a Win7x64 
computer and running into a problem when I fork to a child process.  I know 
that it is important to close file handles when forking but I can't seem to 
close the ADO handles and the program crashes when the child process terminates 
(see program snippet below).  Is my code in error or is there something amiss 
with the ADO/DBI drivers?

DBD::ADO uses Win32::OLE, and the ActiveState people say:

  ... you definitely cannot use Win32::OLE in a program that uses (pseudo-)fork.

  <http://www.nntp.perl.org/group/perl.par/2007/01/msg2802.html>


Steffen


P.S.: Sorry for the long delay. Our spam filter complained about
the MS office content. Look here what happens:

  <http://www.nntp.perl.org/group/perl.dbi.users/2011/04/msg35763.html>


Reply via email to