I created a STRING SEARCH function in C/C++ - and I'm trying to use it in a multi-threaded situation in VB.

I started this problem in a thread in the C/C++ section of the forum - here

http://www.vbforums.com/showthread.php?t=675943

At any rate - my last post shows me getting this error trying to call the function.

Ran the code - got to that point - and in the immediate window I did

Code:
?firstIndexOfKeyword("i had fancy italian food for lunch", {"meh", "feh", "italian"}, 3)
{"An exception 'Microsoft.VisualStudio.Debugger.Runtime.CrossThreadMessagingException' occurred"}
    _HResult: -2146232832
    _message: "Error in the application."
    Data: {System.Collections.ListDictionaryInternal}
    HelpLink: Nothing
    HResult: -2146232832
    InnerException: Nothing
    IsTransient: False
    Message: "An exception 'Microsoft.VisualStudio.Debugger.Runtime.CrossThreadMessagingException' occurred"
    Source: "Microsoft.VisualStudio.Debugger.Runtime"
    StackTrace: "   at Microsoft.VisualStudio.Debugger.Runtime.Main.ThrowCrossThreadMessageException(String formatString)     at System.Windows.Forms.SafeNativeMethods.GetWindowTextLength(HandleRef hWnd)     at System.Windows.Forms.Control.get_WindowText()     at System.Windows.Forms.Form.get_WindowText()     at System.Windows.Forms.Control.get_Text()     at System.Windows.Forms.Form.get_Text()     at System.Windows.Forms.Form.ToString()"
    TargetSite: {Void ThrowCrossThreadMessageException(System.String)}
And got a pop-up error about not finding the ENTRY point and this ugly cross threading error...