akusoft,
I don't really know why you are getting the error. I haven't seen such
error. Also, script code did not show any specific scenerio you could get
into to see the error (the error may happen on an instance
activation/deactivation events only).
Just to clarify what you are trying to do, either:
1) You use XPProEmulation component from XPeTools package. This
component allows you to add automatically all components from specified
category to the Configuration.
1) Or you use XPProEmulation.slx project (> 2000 components) and you are
trying to add all printer components.
(I have done both here, in fact).
If 1), I have already done that a long while ago. The result project you
will find on
www.xpefiles.com, it was called Printers.slx (zipped).
If 2), then you may not just have enough memory for TD (I've seen some
inconsistent behaviour of XPe Dev Tools, especially TD, when there is not
enough RAM).
I can suggest you these workarounds:
- Add more RAM and try it again
- I have just done this - added all printer components (from "Hardware :
Devices : Printers" category, 309 components) into the XPProEmulation.slx.
I can send you the result project (42Mb though, so provide me a good
location to upload the file).
- Start with Printers.slx instead.
- If you really need to use XPProEmultion but still can't add the
printer components. Launch Printer.slx, build it and just manually merge the
build into your XPProEmulation build (directory to directory copy). All the
printer components (drivers) do not have registry resources but just files
(INFs, DLLs, SYSs). So it should be fine to just add this file to your major
build and PnP will do the rest for you.
Good luck,
KM