Problems with Opendoc6 or 7 and 64bit

I am wondering if anyone else has experienced the following issue.  I have a fairly simple application that I wrote in vb.net 2005.  All it does is open an array of slddrw files looks for a particular piece of text and then replaces it with something else.  It then saves the drawing and closes it.  The code works flawlessly under Windows XP 32.  When trying to run the code on the same group of files it will randomly hang on the opendoc.  It starts the load of the file and then hangs in a view only mode almost like it is waiting for some kind of response.  I am sure it has something to do with the 64bit OS becuase the problem never ocurrs in Windows XP 32bit.  Has anyone else experienced this issue.

I am running SolidWorks 2009 sp4.0

SolidworksApi macros