I am charged with upfitting our decoder to do at least a modicum of error handling so we can attempt proper carry on if there's a bad image or something.
Since the sts return strings aren't documented (as far as I can tell) and since I don't really want to return a string anyhoo (this is a dll return) can someone suggest a pattern for setting at least a true false return?
I tried to set a code based on (!LT_SUCCESS) but couldn't really get that to work.
I've seen the example where the sts is converted to a string:
// retrieve the formatted string
const char* str = getLastStatusString(sts);
is there a known always good string or something I can compare to in order to set a code?
Thanks for any suggestions.
error handling sts strings LT_SUCCESS etc
Moderator: jskiffington
3 posts
• Page 1 of 1
error handling sts strings LT_SUCCESS etc
Last edited by chewiecat on Tue Jan 18, 2011 1:22 pm, edited 1 time in total.
- chewiecat
- Posts: 7
- Joined: Thu Aug 06, 2009 11:29 am
Humm.. that method seems to work pretty well ..I guess one of my mistakes was trying to check sts on things like a
nav->moveto . I backed some of these checks out and it seems to work better.
Might be nice to have all those strings documented or some error codes provided one day. For the most part even with large file sets we see no problem but when there is one it makes it difficult to pin down when there's no return code to speak of. Probably most of my issues are just from using an older version of the decoder anyhoo. So...hopefully the upgrade to sdk 7 (c++ v9) will fix them.
nav->moveto . I backed some of these checks out and it seems to work better.
Might be nice to have all those strings documented or some error codes provided one day. For the most part even with large file sets we see no problem but when there is one it makes it difficult to pin down when there's no return code to speak of. Probably most of my issues are just from using an older version of the decoder anyhoo. So...hopefully the upgrade to sdk 7 (c++ v9) will fix them.
- chewiecat
- Posts: 7
- Joined: Thu Aug 06, 2009 11:29 am
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
- Forum index
- The team • Delete all board cookies • All times are UTC - 7 hours
