hello all ,

If i have a static reference to object as a class member . and this object is a scheduler that contain ( Jobs , and triggers ) . is there any way to make this object lives even after my function call ends .

Show your code, and we'll help. There are ways to make it live after function call.

one was is not to make it a local variable to that function call.

Again show your code, and you'll get better replies.

thanks for reply , i got what i need ,

My issue solved by using a thread that works in loop while(true) , after main function finish , it seems that the main function thread doesn't die until its child die too .

anyway thanks a lot for reply .

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.