Hugo wrote:
> Felipe Monteiro de Carvalho wrote:
>> On 10/28/06, Hugo <[EMAIL PROTECTED]> wrote:
>>>  Do i have to uninstall GTK
>>
>> No
>>
>>> How do I know what environment Lazarus is using? Thanks
>>
>> I think we can be sure it´s using win32 and the problem isn´t GTK.
>>
>> Can you start Lazarus from the command line and create a backtrace for
>> it´s crash?
>>
>> Lazarus comes with a debugger called GDB. You can use it from the
>> command line. It´s located on lazarus/mingw/bin
>>
>> Here are instructions to use it to create a backtrace:
>>
>> http://wiki.lazarus.freepascal.org/Creating_a_Backtrace_with_GDB
>>
> 
> Ok... I did the backtrace recommend by Felipe (output information
> below)... I think that the real problem is the debugger itself. I
> disabled it on the | Environment > Debugger Options > General > Debugger
> Type and File > (none)  |  Formerly, in place of "(none)" ;  "GNU
> debugger (GDB)" was selected.  After that, program as simple as the ones
> on the wiki tutorial run perfectly. What should i do with the debugger?

The debugger shipped with the lazarus install should work. In fact it
did, otherwise you couldn't produce the backtrace.

About the backtrace, it is known that gdb cant backtrace into win32
system libs. So most of it can be ignored.

> ////////OUTPUT INFORMATION FROM GDB//////////////
> 
> GNU gdb 6.2.1
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i686-pc-cygwin"...
> (gdb) break fpc_raiseexception
> Breakpoint 1 at 0x4cc856
> (gdb) run
> Starting program: /cygdrive/c/lazource/project1.exe
> Program received signal SIGSEGV, Segmentation fault.
> 0x7c918fea in ntdll!RtlpWaitForCriticalSection () from ntdll.dll
> (gdb) backtrace

[snipped 744 lines of misleading backtrace]

> #745 0x003a0043 in ?? ()
> #746 0x0057005c in VMT_CLASSES_EFILERERROR ()
> #747 0x004e0049 in CLASSES_TREADER_$__DOFIXUPREFERENCES ()

This looks like there is something wrong when loading your form data. Do
you have a from1.lfm ?

What if you save your project under a different name ?

Marc



_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to