Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...These forums are an excellent source and example of the way people can help each other..."

Geography

Where in the world do Tek-Tips members come from?
rjbalicki (Programmer)
30 Jan 01 14:23
My tquery.unprepare statement crashes my program.  My order of operations is this:

1. create
2. databasename:='database'
3. sql.add
4. prepare
4. open
5. Loop until eof
6. close
7. unprepare (blows up here)
8. free (never gets here)

Does anyone know of a reason why this may happen?  I have other querys that use the same logic in this program and they all work alright.  The only thing I'm doing different is passing the self object from the procedure to the function containing the code I'm referencing as a TComponent and using this TComponent parameter in the create statement.  Any help would be great!
alphonsus (TechnicalUser)
1 Feb 01 5:46
   Just to make a test:
   pass "nil" when creating the Query. It may be that the component you're passing as the owner is being destoyed somewhere else in the program so destroying its children also.
   Hope it helps,

   Alphonsus.


Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close