Re: file copy routine crashes on XP SP2

From: Randy Birch (rgb_removethis_at_mvps.org)
Date: 09/13/04


Date: Sun, 12 Sep 2004 20:49:50 -0400

But what is the exact error that it's throwing? "Seems to indicate a
problem with kernel32" is insufficient information to diagnose the problem.
Also, make sure you are double-terminating the strings passed to
SHFileOperation with vbNullChar or chr$(0) under NT-based systems.

--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"Marshal Anderson" <newspost@getridofthismarshal.co.uk> wrote in message
news:4142e028.11868660@news.microsoft.com...
: Been using a routine to bulk copy files and underlying folders for
: several years in applications - one I got from Randy Birch's site I
: think. It uses a shell command (I think, I'm a bit of a simple
: copy/paste/experiment merchant when it comes to API stuff), but the
: method seems pretty comon in VB6 code sites. Anyway, the routine has
: been running fine on W95 and up.
:
: A user recently discovered a bug in a new package, the copy process
: failed, seems to indicate the problem is with kernel32.dll. On testing
: previous packages with the same routine on the same machine the same
: error appears. (OK, no suprise, but I was hoping I;d made an error in
: the new package) This is a bit drastic, it means several packages will
: fail and they need to be re-written.
:
: So, has anyone come accross this problem with XP service pack 2?
: Anyone got a nice neat copy everything routine that doesn't use APIs
: (or the FSO)?? I'm in a real fix with this and would really appreciate
: any help anyone can give.
:
: Marshal
:
:


Relevant Pages

  • Re: file copy routine crashes on XP SP2
    ... >several years in applications - one I got from Randy Birch's site I ... >method seems pretty comon in VB6 code sites. ... Anyway, the routine has ... >the new package) This is a bit drastic, ...
    (microsoft.public.vb.general.discussion)
  • Re: Pragma for conditional compilation? (Ada 2005 vs. 95)
    ... defined package. ... package test1 is ... -- this package does contain a initialize routine that configures ... but my "problem" is in declaring types which I want to be visible ...
    (comp.lang.ada)
  • Re: Real Time IO routines answering Simon Wright part 2
    ... A few Ada conferences back in the early to ... -- Package must be included with program source code, ... Uses the default Put routine. ...
    (comp.lang.ada)
  • Re: Check for modules presence
    ... import routine that just pushes the name of the package onto array ... array and dies if it's not empty. ... There are a number of issues with it, such as it only detecting missing modules ... that have had their import routine called, but that's what use does anyway. ...
    (perl.beginners)
  • file copy routine crashes on XP SP2
    ... several years in applications - one I got from Randy Birch's site I ... copy/paste/experiment merchant when it comes to API stuff), ... Anyway, the routine has ... A user recently discovered a bug in a new package, ...
    (microsoft.public.vb.general.discussion)