Im having a bit of a problem with a project in Delphi 6.
Basically what I need to do is to toggle visible/invisible some menu options in my application.
a short sample of what Ive done so far (in the show event of my main form):
if vshowoption = False then
mmMain.Items.Find('MyOption').Visible := False;
vshowoption is a boolean variable that is read from an .Ini file
mmMain is the main menu of my application
'MyOption' is the caption of the menu option I want to make invisible
unfortunatly when executed, the application is displaying the following error message:
Project Pfsclient.exe raised exception class EAccessViolation with message 'Access Violation at address 00468D57in module 'pfsclient.exe'. read of address 00000039'. Process stopped. Use Step or Run to continue.
Any suggestions on how to sort this problem are most wellcome.