Click here to Skip to main content
15,442,338 members

Comments by AnotherKen (Top 10 by date)

AnotherKen 24-Jun-19 21:17pm View     CRLF
I tend to use a boolean variable to store the object's existence state in. So I would do something like: if !form1Exists { Form1 form1 = new Form1(); form1Exists = TRUE; } I would declare the boolean variable form1Exists and probably form2Exists also as global variables, that way I don't have to worry about loosing the value if the routine that sets it goes out of scope. I would also set that value to false if I knew that form was closed.
AnotherKen 14-Aug-18 12:22pm View    
Ok, well, the error message means you tried to use an uninstantiated object. Either a property or method. This throws an error because if the object is not instantiated, it does not exist on the heap which is where it is looked for when you try to access it, that causes an exception to be thrown. Any object you use, even one in a library you did not write, has to be insantiated with the NEW keyword so that you can use it.
AnotherKen 1-Apr-15 0:45am View    
Thanks Dave, that is more or less what I had assumed, I was hoping there would be an easier way since HP is a little tight lipped about this at the moment.
AnotherKen 1-Apr-15 0:44am View    
Good point there, I was able to find it's ip-address and change the sleep time to 15 minutes. I guess I will still have to wait and see if HP will provide a SDK that will let me see if I can get the printer to wake up when it is asleep.
AnotherKen 17-May-13 15:41pm View    
I have gotten to the point where I agree that I can use RSA Asymmetric encryption for the application I am working on. My initial tests are now working. I had originally gone with AES because it was easier to pickup and use than RSA, but with time I was able to find the information I needed to get RSA encryption working. Thank you for taking the time to respond to my question.