
string space corrupt error
: the manual suggest that SSC errors may be caused by ASM routines which
: modify strings. i believe my routine is doing that. is there any way to
: verify that is what is causing the error ? is there any way to correct the
: problem without changing the ASM routine ?
: Thanks for the help,
: Shake
I have written ASM subs that modify passed strings and have not
encountered and problems doing this. However, it is a definite problem if
your ASM routine is changing the length of a passed string and then
returning it to QB. QB maintains string descriptors which tell it the
length of the string in question. When a call is made to an ASM program
and strings are passed, QB knows these lengths and expects them to be
unchanged upon their return. I do not know of any way to get around this
- others who read this group might.
You may want to re-examine the ASM routine and find out for sure what is
happening. You may even want to try replicating the ASM function in QB
(slow - I know) to test other parts of your program. This could help
you zero in on the problem.
I hope this helps,
Bob
--
+-----------------------------------------------------------------------+
+-----------------------------------------------------------------------+