Forum > Windows
I get access violation when running my project in windows xp
Froxter:
--- Quote from: 440bx on April 25, 2025, 03:08:00 pm ---@Froxter,
post a screenshot of the access violation, that information could be helpful in solving the problem.
--- End quote ---
Compiling in XP i get this
Bart:
Build your project with full debug and line info (-Criot -gl -gh -gw2).
Include the units LazLogger, and LCLExceptionStacktrace in your program.
Start the program with --debug-log=path\to\logfile
Let the program crash
Attach the log file here.
Alternatively run the program in gdb, let it crash and get a backtrace.
Bart
Froxter:
--- Quote from: Bart on April 25, 2025, 03:59:41 pm ---Build your project with full debug and line info (-Criot -gl -gh -gw2).
Include the units LazLogger, and LCLExceptionStacktrace in your program.
Start the program with --debug-log=path\to\logfile
Let the program crash
Attach the log file here.
Alternatively run the program in gdb, let it crash and get a backtrace.
Bart
--- End quote ---
I wasnt able to find the "-Criot" and make the log file
440bx:
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.
Froxter:
--- Quote from: 440bx on April 25, 2025, 04:48:43 pm ---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.
--- End quote ---
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
Navigation
[0] Message Index
[#] Next page
[*] Previous page