A
Adam Romanski
I have a problem, with getting value of a variable that is set in
thread. I start the Thread in a main class, thread gets the value from
server and sets it as static variable. After starting the thread I try
to print the value of " threadObjetc.staticvariable " but every time
it has a null value. I suppose that the reason for that is that thread
works in a background and functions of main class continues anyway. If
someone had a similar problem and could help me to avoid it I would be
gratefull for help, Thanks
thread. I start the Thread in a main class, thread gets the value from
server and sets it as static variable. After starting the thread I try
to print the value of " threadObjetc.staticvariable " but every time
it has a null value. I suppose that the reason for that is that thread
works in a background and functions of main class continues anyway. If
someone had a similar problem and could help me to avoid it I would be
gratefull for help, Thanks