Search the web
Sign In
New User? Sign Up
DatabaseTemplateLibrary · The Database Template Library
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Cannot operate on invalidated dtl::DBStmt object   Message List  
Reply | Forward Message #2304 of 2479 |
Re: Cannot operate on invalidated dtl::DBStmt object

Broadly, I think that a DBStmt can go invalid if it has problems
executing
or gets into an invalid intermediate intermediate state. You should
get a
sql error indicating the problem.
If you want to re-use the statement you can try DBStmt.reset().
Or just re-assign it a new stmt.

Corwin

--- In DatabaseTemplateLibrary@yahoogroups.com, "msvenx" <msvenx@...>
wrote:
>
> Hi All,
>
> I am getting this exception with my VC++ client app using DTL 3.5.1
> with MS SQL Server 2005.
>
> Exception type: ValidityException Method: ValidatedObject::validate()
> Error Message: Cannot operate on invalidated object of type class
> dtl::DBStmt! objType: class dtl::DBStmt
>
> Any idea why the DBStmt object may not be a valid object? How does
DTL
> do the validity check & how often? Like, What are some typical
> instances where an object might go invalid?
>
> Thanks in advance.
>





Mon Oct 22, 2007 3:50 pm

corwinjoy
Offline Offline
Send Email Send Email

Forward
Message #2304 of 2479 |
Expand Messages Author Sort by Date

Hi All, I am getting this exception with my VC++ client app using DTL 3.5.1 with MS SQL Server 2005. Exception type: ValidityException Method:...
msvenx
Offline Send Email
Oct 19, 2007
6:43 pm

Broadly, I think that a DBStmt can go invalid if it has problems executing or gets into an invalid intermediate intermediate state. You should get a sql error...
Corwin Joy
corwinjoy
Offline Send Email
Oct 22, 2007
3:50 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help