I am having difficulty passing an object to a PowerThread object.
I wish to raed a file and keep the contents after being parsed in an object.
I create the ThreadParam object OK
I pass the object I want to store the data in OK
When I execute the thread however I get the following:
Exception: Memory Access Violation
If I create the object to store the data within the thread itself it is OK, but then I cant use the object with another thread.
Has anyone tried passing objects to PowerThread with success.
I am creating an object for the threadparam parameters and passing it OK.
The issue I have is with an object which is one of the properties of the object I pass as a prameter. The object itself has a property which contains a powercollection.
Cant post the code as restricted.
If anyone can suggest based on what I have said that would be good.
If not I will strip out a baseline sample and post that.
Can anyone help.
Kind regards,
Neil
I wish to raed a file and keep the contents after being parsed in an object.
I create the ThreadParam object OK
I pass the object I want to store the data in OK
When I execute the thread however I get the following:
Exception: Memory Access Violation
If I create the object to store the data within the thread itself it is OK, but then I cant use the object with another thread.
Has anyone tried passing objects to PowerThread with success.
I am creating an object for the threadparam parameters and passing it OK.
The issue I have is with an object which is one of the properties of the object I pass as a prameter. The object itself has a property which contains a powercollection.
Cant post the code as restricted.
If anyone can suggest based on what I have said that would be good.
If not I will strip out a baseline sample and post that.
Can anyone help.
Kind regards,
Neil
Comment