OrganizerCopy fails, half remedy found but cause unknown

Z

Zhukov Andrew

Hello.
I'd appreciate your help with the following.
I am using COM interoperability libraries (JACOB) in Java to create Word
instances and manipulate Word documents programmatically. I am using
Microsoft Word 2003 Pro (11.6359.6360) SP1, Greek edition. Basically there is
a template A somewhere on my drive, and a number of different B templates
somewhere else. I create lots of documents from the B templates, and then
copy parts of A template to them with OrganizerCopy. In particular, I copy a
certain macro module and a toolbar. We do this copying for every new document
- currently it's not the right time to judge why. So, ... after random
periods of time (sometimes it's a month, and sometimes a few days) and while
everything seems to have been working alright, OrganizerCopy suddenly fails,
particularly when copying the toolbar (it runs okay for the macro module),
and keeps failing each time it is invoked (for the toolbar), until I delete
the Data key in the registry. (according to KB191178
(http://support.microsoft.com/kb/191178)). After this everything continues to
run smoothly.
The thing is that i don't understand why it happens, and what to do to avert
this thing happening.. After some research we discovered that at the time of
failure, the data key in the registry (when we export it in a Registry Hive
file, binary form) is exactly 1069056 bytes long, while when we delete it,
and it is recreated by word, it is almost 10 times smaller. I saw that it
grows slowly, and (it seems) randomly - although when i open it in the
editor, among chunks of unreadable bytes, you can decipher the filenames
where we copy the toolbars... Does Word stores them in some way in the
registry? How do I turn this off? I already tried to turn off the MRU list,
but it doesn't help. Maybe i do something wrong - e.g. leaving some files
open etc. and then word writes info to the Data key and makes it grow, -
maybe it eventually reaches 1MB size, and can't grow any more, so
OrganizerCopy fails? Any idea?

Thanks a lot.
Andrew
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top