2 weeks ago - last edited 2 weeks ago
Hi Experts
I'm facing a strange issue while using Singleton class object with a static data attribute to transfer data between two enhancements in the update task.
In the Enhancement 1, I'm creating an instance of the class and using a Put method to set certain data to a static attribute of the class which I want to pass on to the second enhancement.
In the Enhancement 2, I'm using the instance of the singleton class and retrieving the data passed in Enhancement 1 using a GET method.
Both the enhancements are called in the Update Task.
Now the issue. When I place a break point in both the enhancement and execute the process, things work fine. In the Enhancement 2, the class's object is already available and I'm able to get the data transferred from Enhancement 1 using the GET method.
But when I don't use the debugging, when the background process executes Enhancement 2, somehow the class object is not instantiated, and the data passed from Enhancement 1 is lost.
Any pointers on why this is happening and how to resolve this would be much helpful.
Thanks
User | Count |
---|---|
83 | |
11 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.