petr4ppc Well-Known Member Licensed User Longtime User Aug 22, 2014 #1 Dear friends, please... It is possible ignore specified error message... I get error message in standard msg box and I can disable this message box, because the error is not important....is it possible? Thank you p4ppc
Dear friends, please... It is possible ignore specified error message... I get error message in standard msg box and I can disable this message box, because the error is not important....is it possible? Thank you p4ppc
giga Well-Known Member Licensed User Longtime User Aug 22, 2014 #2 Can you give more detail about the error? Where is this happening? Upvote 0
petr4ppc Well-Known Member Licensed User Longtime User Aug 22, 2014 #3 Yes Giga, please... I get this error message: B4X: java.lang.RuntimeException: Object should first be initialized (JavaObject) This message is in messagebox and I want only know, please, if it is possible to disable msg window when the error start..... Thank you very much best regards p4ppc Upvote 0
Yes Giga, please... I get this error message: B4X: java.lang.RuntimeException: Object should first be initialized (JavaObject) This message is in messagebox and I want only know, please, if it is possible to disable msg window when the error start..... Thank you very much best regards p4ppc
RandomCoder Well-Known Member Licensed User Longtime User Aug 22, 2014 #4 You should initialise the object before attempting to use it, but if for whatever reason you don't want to do this, you could place the code in a Try, Catch block which you would then be able to ignore the error. Regards, RandomCoder. Upvote 0
You should initialise the object before attempting to use it, but if for whatever reason you don't want to do this, you could place the code in a Try, Catch block which you would then be able to ignore the error. Regards, RandomCoder.
Erel B4X founder Staff member Licensed User Longtime User Aug 24, 2014 #5 You can also check whether the object is initialized or not with jo.IsInitialized. Upvote 0
petr4ppc Well-Known Member Licensed User Longtime User Aug 25, 2014 #6 Dear Erel and Random coder, I have used both = Try Catch block and JO.isInitialized and the message is not opening, I think that this solution for eliminatig error message is OK It is SOLVED Thank you very much for your help... p4ppc Upvote 0
Dear Erel and Random coder, I have used both = Try Catch block and JO.isInitialized and the message is not opening, I think that this solution for eliminatig error message is OK It is SOLVED Thank you very much for your help... p4ppc