Hi, 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?
I appreciate whatever assistance you can provide, Robert Boisvert Business Analyst SYNCHRONOSS TECHNOLOGIES (m) 908-745-1268 (aim) robert.boisv...@synchronoss.com robert.boisv...@synchronoss.com<mailto:john.prenic...@synchronoss.com> http://www.synchronoss.com<http://www.synchronoss.com/> [cid:image001.jpg@01CBF88C.0657AC30]<http://twitter.com/synchronoss> [cid:image002.jpg@01CBF88C.0657AC30] <http://blog.synchronoss.com/> [cid:image003.jpg@01CBF88C.0657AC30] <http://www.linkedin.com/companies/synchronoss-technologies> Ensure The Most Powerful Mobility Customer Experience: http://bit.ly/CNPlusCT Software Environment Windows 7 Enterprise, 64-bit OS ActivePerl v5.12.3 DBI v1.616 DBD-ADO v2.99 Program Snippet use DBI; $oDB = DBI->connect ('dbi:ADO:Provider=SQLNCLI;Initial Catalog=dbase;Data Source=\SQLEXPRESS', 'user', 'pswd'); print "Start parent script\n"; $oDB->disconnect; undef $oDB; # expect that all DB file handles closed $nPID = fork; if (!$nPID) { print "End child script\n"; exit 0; # crashes here } wait; print "End parent script\n"; exit 0;
<<inline: image001.jpg>>
<<inline: image002.jpg>>
<<inline: image003.jpg>>