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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delphi 6 and TAdvStringGrid error...

Status
Not open for further replies.

chunkyman

IS-IT--Management
Aug 10, 2007
10
MT
Hi,
I hope someone can help me because I am lost with this.
I wrote an application usin Delphi 6 and on a tab I have used multiple TAdvStringGrids (TMS).

The problem is that whenever I close my application with "CLOSE;" itermittingly I get an error of "Debugger Exception Notification Project MYPROJ.exe raised exception class EInvalidOperation with message 'Control 'maintabcontrol' has no parent window'. Process stopped. Use Step or Run to continue"

Then I press F9 to continue and I get this error "Control 'maintabcontrol' has no parent window." then when I click OK on this error I get this "Application Error
Exception EAccessViolation in module MYPROJ.exe at 00001D71.
Access violation at address 00401D71 in module 'MYPROJ.exe'. Write of address 00000018."

Hope someone can help
Thanks
 
This is just a guess without seeing the code, but it sounds like 'maintabcontrol' may have been created manually somewhere. Adding FreeAndNil(maintabcontrol) to the OnDestroy process of its parent should solve it.


Roo
Delphi Rules!
 
Hi and thank you for replying.
I did what you suggested but now I am getting this error: "---------------------------
Debugger Exception Notification
---------------------------
Project MYPROJ.exe raised exception class EInvalidPointer with message 'Invalid pointer operation'. Process stopped. Use Step or Run to continue" then when I press F9 again I get: "---------------------------
Debugger Exception Notification
---------------------------
Project MYPROJ.exe raised exception class EAccessViolation with message 'Access violation at address 00796493 in module 'Tripper2007.exe'. Read of address 0000004C'. Process stopped. Use Step or Run to continue."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top