sasha
-Interested User-
Posts: 54
Joined: Jul 21, 2004
|
Posted: Oct 31, 2004 06:34 PM
Msg. 1 of 1
1. IQConnect is not running.
2. Register the client app via IQ32.DLL
3. Kill my client before removing/unregistering
4. Restart my client and RegisterClientApp() returns false. MessageBox pops up and says client application already registered.
How can I tell if the False value returned in 4. is due to an error or because the client application is already registered?
I don't know whether I should call RemoveClientApp() and call RegisterClientApp() again because the RegisterClientApp() returning false doesn't mean anything specific.
If I try this and call RemoveClientApp() then the callback notifies me that the connection is OK. Very confusing because at this point IQConnect isn't even running. If I rely on the status callback then it tells me that I'm connected.
Another weird thing is that if I now call RegisterClientApp() I get three more callbacks of status OK - still confusing.
Can DTN provide a better return code that describes the reason instead of just true or false?
Maybe it would be useful to provide an additional function that returns true or false if a client application is already registered. This way I can see if the client app is already registered.
But I don't know how this would help in the case where IQConnect process crashes. Since the point of RegisterClientApp() is to restart IQConnect if it is not started, currently RegisterClientApp() doesn't actually restart it if IQConnect crashed and the application is already registered. Edited by sasha on Oct 31, 2004 at 06:44 PM
|