I'm using a DLL function that accepts an integer array from VB, does some
hardware I/O, modifies the VB array and exits. I'm passing the VB array
as outlined in Appendix A of the PB manual, so that should be okay. The
trouble is that the PB DLL function needs to allocate an integer array for
temporary use with the I/O driver; how can I be sure that the local array
memory won't conflict with the passed VB array?
The hardware I/O driver has a debug mode that shows the memory addresses
of the arrays passed to it, and it appears that there is a memory
overlap. If true, I could pass all of the needed arrays from VB to PB, but
that would really gum up the VB code (more than it already is
).
Any ideas?
------------------
Mark Newman
hardware I/O, modifies the VB array and exits. I'm passing the VB array
as outlined in Appendix A of the PB manual, so that should be okay. The
trouble is that the PB DLL function needs to allocate an integer array for
temporary use with the I/O driver; how can I be sure that the local array
memory won't conflict with the passed VB array?
The hardware I/O driver has a debug mode that shows the memory addresses
of the arrays passed to it, and it appears that there is a memory
overlap. If true, I could pass all of the needed arrays from VB to PB, but
that would really gum up the VB code (more than it already is

Any ideas?
------------------
Mark Newman
Comment