>I am using VFP6SP5 on a NT4.0 machine.
>
>I am calling a DLL created by another programmer in my company. The DLL function that I call modifies one of the strings that I pass to it by reference. As soon as it does the modification, I get the C0000005 error. I have padr() with " " to the lentgh needed and one beyond, trying to stop this error, but it does not work at the moment.
> I did a search both in FAQ and these threads back to the first of the year (maybe I should go back farther) and could not find anything like this. I found one thread close, but it had to do with an object, not a DLL call.
> Anyone have any idea?
>
>TIA
>Beth
hi Beth,
(1) what does that dll do ?
(2) What are the parameters to the dll ( at least a pointer to the string and the length of the string)
I suspect that the dll does modifications outside the string boundaries. If so, it will corrupt the vfp memory which may cause the c000005
Gregory