> No doubt. Is the convention typical C callable stuff when linking in > with a LV VI? Is the DLL "sandbox" more robust in LV than in VEE? >
The DLL sandbox in LV catches exceptions, so many illegal accesses will result in an error return code instead of a crash, but it is still possible for the DLL to corrupt the memory LV hands it, or to corrupt other LV memory adjacent to them. This can cause problems on return, or often when the VI is being removed from memory. In 9 out of 10 cases, this is because a pointer to a buffer that was supposed to be presized is given to the DLL with insufficient space. Unfortunately, unlike LV arrays or OLE arrays, there is no way for this to be verified -- both sides just trust one another. As for calling convention, when calling a DLL, it is the DLL that determines the calling convention, and you specify which you want to use in the dialog where you configure the call parameters. If you mean the convention for a DLL built in LV, I am not at a PC at the moment, but I believe it supports both. Greg McKaskle
