Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invalid Pointer

Status
Not open for further replies.

parv2k

MIS
Feb 15, 2006
4
CA
I'm getting an invalid pointer exception as my program closes which is bothering me. Looking at the project code ... it pass the Application.Run line and reaches end. Which you would think it would pass over and terminate the program. But appearantly on that line is where the exception occurs.

It happens only in case i run a pervasive stored procedure. I run stored procedure on click of a button, if don;t run that stored procedure it works fine. I gone thru the stored procedure and all the cursor and other stuff is properly closed in stored procedure.

Is there any way i able to control this error. This is very urgent and important.

Thanks in advance.
Parv
 
IN addition my above message, also i didn't assign any memory at my own and don't free anything. Everything is take care by Delphi. So i'm not sure why on run of a specific pervasive stored procedure it gives the error. At the same time i call other pervasive stored procedure which works fine.

Thanks,
 
After the Application.Run is when the unit finalization code runs.

Check Project/Options/Compiler/Use Debug DCUs and rebuild to step into the closing code.

Tell us the unit/procedure where the error appears; the version of Delphi, the OS version and the db engine you are using and the exact error message. Add some other info if you can, like the component/object which produces the error.

buho (A).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top