Hi netmaestro,
First thought is that the dll should return a string in a global var. So:
Code: Select all
Global rv$
ProcedureDLL.s WordExists()
;rv$=""
a = Random(1)
If a = 1
rv$="FOUND"
Else
rv$="NOT FOUND"
EndIf
ProcedureReturn rv$
EndProcedure
However I tried that and still got an error. Error can occur with numbers under 9909, after repeated runs. The value returned (peeked) increments with each call, by the length of the returned string, so perhaps this is a memory leak problem?
I also tried clearing the return string first (commented line above) it made no difference.
So this post doesn't help you much, does it? Sorry. But maybe it helps track a bug, or maybe it helps next poster to see where we both have it wrong.
@}--`--,-- A rose by any other name ..