ThinkGeo.com    |     Documentation    |     Premium Support

Issue regarding highlighting a feature from a background worker on load

I am having an issue highlighting features from a layer on load. I receive an Index outside of the bounds of the array error on the following line


Dim fCollection As Collection(Of Feature) = layerToSearchSHP.FeatureSource.GetFeaturesByColumnValue("LOTS_", 7)


If I do the highlighting without the background worker on load, however, it works fine. It is essential to be done on a background worker, however. Any help is appreciated. If you can not recreate the issue I have a working demo I can email to support. Thank you.



Nelson, 
  
 Thanks for your post! 
  
 If I understand correctly, you do the query GetFeaturesByColumnValues in another threading which use the background worker? Can you show me what you are trying to do in the Main thread or other threads? 
  
 It would be very helpful and be very appreciated if you can created a demo for us. 
  
 Thanks for any more information to recreate this problem 
  
 Yale 


Yale, please advice me on how I can e-mail the demonstration to you so that you may see. And yes it sounds like you understood the steps required to create the exception.



Nelson, 
  
 Please email your demonstration code to support@thinkgeo.com and ask for to forword to Yale. 
  
 Thanks for your help, I appreciate it very much. 
  
 Any more questions just let me know. 
  
 Yale