You're running the program from Lazarus. In Lazarus, set the debugging options to "Dwarf with sets" or some of the other dwarf options if you prefer a different one.
Run the program from Lazarus, when the access violation occurs, there should be a box that gives you information about where the access violation took place. Take a screenshot of that box and post it here.
also in Application.CreateForm(TfrmMain, frmMain); i get:
Application = <Error: Identifier not found: "Application" at start of expression>
var
Application: TApplication =
class
(TCustomApplication)
C:\lazarus\lcl\forms.pp(1988,3)
Description
The TApplication singleton.
Application
is a unit global variable with the
TApplication
instance representing the currently executing application. The value for the variable is assigned in the initialization section for the unit when the application is started. It is freed in the finalization section when the application is terminated.
Use the
TApplicationProperties
component to provide design-time configuration settings for properties (including event handlers) which are automatically applied to Application at run-time.
oohh and also in Lazarus when i execute it in xp and going to the main form in the form editor the program crashes showing error of Access Violation