Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-08

TCustomForm.ShowModal impossible

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Luis R. Hilario B.

Hello everyone,

---
FPC: 2.4.0 [2010/01/25] for i386
Lazarus: Lazarus fixes ( lazarus-0.9.28.3-27057-20100811) ---

I upgraded to Mandriva 2010.1, and now I have an error when I open some windows: "Access violation" in Lazarus (View->Units.../View->Forms... etc.)

In my application (Run time):
"TCustomForm.ShowModal impossible" and "Access violation".

The same program works fine in Windows.

Could it be a problem with the new libraries in Mandriva? Which?

Here some suspicious information:

/usr/bin/ld: warning: ../link.res contains output sections; did you forget -T? INPUT(
-lX11
-lgdk_pixbuf-2.0
-lgtk-x11-2.0
-lgdk-x11-2.0
-lgobject-2.0
-lglib-2.0
-lgthread-2.0
-lgmodule-2.0
-lpango-1.0
-lpthread
-latk-1.0
-lcairo
-ldl
)
GROUP(
-lc
)
INPUT(
/usr/lib/gcc/i586-manbo-linux-gnu/4.4.3/crtend.o
/usr/lib/crtn.o
)
ENTRY(_start)
SECTIONS
{

  PROVIDE (__executable_start = 0x010000); . = 0x010000 + SIZEOF_HEADERS;
  .interp         : { *(.interp) }
  .hash           : { *(.hash) }
  .dynsym         : { *(.dynsym) }
  .dynstr         : { *(.dynstr) }
  .gnu.version    : { *(.gnu.version) }
  .gnu.version_d  : { *(.gnu.version_d) }
  .gnu.version_r  : { *(.gnu.version_r) }
  .rel.dyn        :
    {
      *(.rel.init)
      *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*)
      *(.rel.fini)
      *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*)
      *(.rel.data.rel.ro*)
      *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*)
      *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*)
      *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*)
      *(.rel.got)
      *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*)
    }
  .rela.dyn       :
    {
      *(.rela.init)
      *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
      *(.rela.fini)
      *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*)
      *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*)
      *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*)
      *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*)
      *(.rela.got)
      *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
    }
  .rel.plt        : { *(.rel.plt) }
  .rela.plt       : { *(.rela.plt) }
  .init           :
  {
    KEEP (*(.init))
  } =0x90909090
  .plt            : { *(.plt) }
  .text           :
  {
    *(.text .stub .text.* .gnu.linkonce.t.*)
    KEEP (*(.text.*personality*))
    *(.gnu.warning)
  } =0x90909090
  .fini           :
  {
    KEEP (*(.fini))
  } =0x90909090
  PROVIDE (_etext = .);
  .rodata         :
  {
    *(.rodata .rodata.* .gnu.linkonce.r.*)
  }
  . = ALIGN (0x1000) - ((0x1000 - .) & (0x1000 - 1));
  .dynamic        : { *(.dynamic) }
  .got            : { *(.got) }
  .got.plt        : { *(.got.plt) }
  .data           :
  {
    *(.data .data.* .gnu.linkonce.d.*)
    KEEP (*(.fpc .fpc.n_version .fpc.n_links))
    KEEP (*(.gnu.linkonce.d.*personality*))
  }
  PROVIDE (_edata = .);
  PROVIDE (edata = .);
  .threadvar : { *(.threadvar .threadvar.* .gnu.linkonce.tv.*) }
  __bss_start = .;
  .bss            :
  {
   *(.dynbss)
   *(.bss .bss.* .gnu.linkonce.b.*)
   *(COMMON)
   . = ALIGN(32 / 8);
  }
  . = ALIGN(32 / 8);
  PROVIDE (_end = .);
  PROVIDE (end = .);
  .stab          0 : { *(.stab) }
  .stabstr       0 : { *(.stabstr) }

}

Reply by email

Vannus
to Luis R. Hilario B.

Just a thought, aren't you meant to derive from TCustomForm rather than use direct?

TForm = class(TCustomForm)
TMyForm = class(TCustomForm)

So that you always use myTForm.ShowModal or myTMyForm.ShowModal ? Unless you're doping anything particularly unusual I wouldv'e thought TForm would've done the job anyways...

- V

Luis R. Hilario B. wrote 139 lines
Hello everyone, --- FPC: 2.4.0 [2010/01/25] for i386 Lazarus: Lazarus fixes ( lazarus-0.9.28.3-27057-20100811) --- I upgraded to Mandriva 2010.1, and now I have an error when I open some windows: "Access violation" in Lazarus (View->Units.../View->Forms... etc.) In my application (Run time): "TCustomForm.ShowModal impossible" and "Access violation". The same program works fine in Windows. Could it be a problem with the new libraries in Mandriva? Which? Here some suspicious information: /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T? INPUT( -lX11 -lgdk_pixbuf-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -lgobject-2.0 -lglib-2.0 -lgthread-2.0 -lgmodule-2.0 -lpango-1.0 -lpthread -latk-1.0 -lcairo -ldl ) GROUP( -lc ) INPUT( /usr/lib/gcc/i586-manbo-linux-gnu/4.4.3/crtend.o /usr/lib/crtn.o ) ENTRY(_start) SECTIONS { PROVIDE (__executable_start = 0x010000); . = 0x010000 + SIZEOF_HEADERS; .interp : { *(.interp) } .hash : { *(.hash) } .dynsym : { *(.dynsym) } .dynstr : { *(.dynstr) } .gnu.version : { *(.gnu.version) } .gnu.version_d : { *(.gnu.version_d) } .gnu.version_r : { *(.gnu.version_r) } .rel.dyn : { *(.rel.init) *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) *(.rel.fini) *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) *(.rel.data.rel.ro*) *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*) *(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) *(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) *(.rel.got) *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) } .rela.dyn : { *(.rela.init) *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) *(.rela.fini) *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) *(.rela.got) *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) } .rel.plt : { *(.rel.plt) } .rela.plt : { *(.rela.plt) } .init : { KEEP (*(.init)) } =0x90909090 .plt : { *(.plt) } .text : { *(.text .stub .text.* .gnu.linkonce.t.*) KEEP (*(.text.*personality*)) *(.gnu.warning) } =0x90909090 .fini : { KEEP (*(.fini)) } =0x90909090 PROVIDE (_etext = .); .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) } . = ALIGN (0x1000) - ((0x1000 - .) & (0x1000 - 1)); .dynamic : { *(.dynamic) } .got : { *(.got) } .got.plt : { *(.got.plt) } .data : { *(.data .data.* .gnu.linkonce.d.*) KEEP (*(.fpc .fpc.n_version .fpc.n_links)) KEEP (*(.gnu.linkonce.d.*personality*)) } PROVIDE (_edata = .); PROVIDE (edata = .); .threadvar : { *(.threadvar .threadvar.* .gnu.linkonce.tv.*) } __bss_start = .; .bss : { *(.dynbss) *(.bss .bss.* .gnu.linkonce.b.*) *(COMMON) . = ALIGN(32 / 8); } . = ALIGN(32 / 8); PROVIDE (_end = .); PROVIDE (end = .); .stab 0 : { *(.stab) } .stabstr 0 : { *(.stabstr) } } -- http://luisdigital.com -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100811/d46e0c79/attachment-0001.html>

Reply by email

Luis R. Hilario B.
to Luis R. Hilario B.: --- FPC: 2.4.0 [2010/01/25] for i386 Lazarus: Lazarus fixes (…

What's common in the windows:

View ->Units....
View ->Forms....
Project ->Project Options
Project ->Compiler Options

I have a nice "Access violation".
Does anyone else here with Mandriva 2010.1?

2010/8/10 Luis R. Hilario B. :

Show quoted text 131 lines
Hello everyone, --- FPC: 2.4.0 [2010/01/25] for i386 Lazarus: Lazarus fixes ( lazarus-0.9.28.3-27057-20100811) --- I upgraded to Mandriva 2010.1, and now I have an error when I open some windows: "Access violation" in Lazarus (View->Units.../View->Forms... etc.) In my application (Run time): "TCustomForm.ShowModal impossible" ?and "Access violation". The same program works fine in Windows. Could it be a problem with the new libraries in Mandriva? Which? Here some suspicious information: /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T? INPUT( -lX11 -lgdk_pixbuf-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -lgobject-2.0 -lglib-2.0 -lgthread-2.0 -lgmodule-2.0 -lpango-1.0 -lpthread -latk-1.0 -lcairo -ldl ) GROUP( -lc ) INPUT( /usr/lib/gcc/i586-manbo-linux-gnu/4.4.3/crtend.o /usr/lib/crtn.o ) ENTRY(_start) SECTIONS { ?PROVIDE (__executable_start = 0x010000); . = 0x010000 + SIZEOF_HEADERS; ?.interp ? ? ? ? : { *(.interp) } ?.hash ? ? ? ? ? : { *(.hash) } ?.dynsym ? ? ? ? : { *(.dynsym) } ?.dynstr ? ? ? ? : { *(.dynstr) } ?.gnu.version ? ?: { *(.gnu.version) } ?.gnu.version_d ?: { *(.gnu.version_d) } ?.gnu.version_r ?: { *(.gnu.version_r) } ?.rel.dyn ? ? ? ?: ? ?{ ? ? ?*(.rel.init) ? ? ?*(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) ? ? ?*(.rel.fini) ? ? ?*(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) ? ? ?*(.rel.data.rel.ro*) ? ? ?*(.rel.data .rel.data.* .rel.gnu.linkonce.d.*) ? ? ?*(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) ? ? ?*(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) ? ? ?*(.rel.got) ? ? ?*(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) ? ?} ?.rela.dyn ? ? ? : ? ?{ ? ? ?*(.rela.init) ? ? ?*(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) ? ? ?*(.rela.fini) ? ? ?*(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) ? ? ?*(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) ? ? ?*(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) ? ? ?*(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) ? ? ?*(.rela.got) ? ? ?*(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) ? ?} ?.rel.plt ? ? ? ?: { *(.rel.plt) } ?.rela.plt ? ? ? : { *(.rela.plt) } ?.init ? ? ? ? ? : ?{ ? ?KEEP (*(.init)) ?} =0x90909090 ?.plt ? ? ? ? ? ?: { *(.plt) } ?.text ? ? ? ? ? : ?{ ? ?*(.text .stub .text.* .gnu.linkonce.t.*) ? ?KEEP (*(.text.*personality*)) ? ?*(.gnu.warning) ?} =0x90909090 ?.fini ? ? ? ? ? : ?{ ? ?KEEP (*(.fini)) ?} =0x90909090 ?PROVIDE (_etext = .); ?.rodata ? ? ? ? : ?{ ? ?*(.rodata .rodata.* .gnu.linkonce.r.*) ?} ?. = ALIGN (0x1000) - ((0x1000 - .) & (0x1000 - 1)); ?.dynamic ? ? ? ?: { *(.dynamic) } ?.got ? ? ? ? ? ?: { *(.got) } ?.got.plt ? ? ? ?: { *(.got.plt) } ?.data ? ? ? ? ? : ?{ ? ?*(.data .data.* .gnu.linkonce.d.*) ? ?KEEP (*(.fpc .fpc.n_version .fpc.n_links)) ? ?KEEP (*(.gnu.linkonce.d.*personality*)) ?} ?PROVIDE (_edata = .); ?PROVIDE (edata = .); ?.threadvar : { *(.threadvar .threadvar.* .gnu.linkonce.tv.*) } ?__bss_start = .; ?.bss ? ? ? ? ? ?: ?{ ? *(.dynbss) ? *(.bss .bss.* .gnu.linkonce.b.*) ? *(COMMON) ? . = ALIGN(32 / 8); ?} ?. = ALIGN(32 / 8); ?PROVIDE (_end = .); ?PROVIDE (end = .); ?.stab ? ? ? ? ?0 : { *(.stab) } ?.stabstr ? ? ? 0 : { *(.stabstr) } } -- http://luisdigital.com

Reply by email

Luis R. Hilario B.
to Luis R. Hilario B.

I have more information about the problem:

I eliminated a TListBox component of my program and the error "TCustomForm.ShowModal impossible" disappeared.

I tried to put the component again, but I get the following error: TControlSelection.AssignPersistent Form7:TForm7
AddComponent TListBox Parent=Form7:TForm7 137,332,0,0 Parent is 'Form7:TForm7'
Access violation
Stack trace:
$B7440DBE
...

And a window that says:
"Error moving component ListBox1:TListBox"

I found something in the Gnome bugzilla:
https://bugzilla.gnome.org/show_bug.cgi?id=608439

libgtk-x11-2.0.so.0.1800.3 (Mandriva 2010.0) Good
libgtk-x11-2.0.so.0.2000.1 (Mandriva 2010.1) Bad

2010/8/12 Luis R. Hilario B. :

Show quoted text 148 lines
What's common in the windows: View ->Units.... View ->Forms.... Project ->Project Options Project ->Compiler Options I have a nice "Access violation". Does anyone else here with Mandriva 2010.1? 2010/8/10 Luis R. Hilario B. : > Hello everyone, > > --- > FPC: 2.4.0 [2010/01/25] for i386 > Lazarus: Lazarus fixes ( lazarus-0.9.28.3-27057-20100811) > --- > > I upgraded to Mandriva 2010.1, and now I have an error when I open some windows: > "Access violation" in Lazarus (View->Units.../View->Forms... etc.) > > In my application (Run time): > "TCustomForm.ShowModal impossible" ?and "Access violation". > > The same program works fine in Windows. > > Could it be a problem with the new libraries in Mandriva? Which? > > Here some suspicious information: > > /usr/bin/ld: warning: ../link.res contains output sections; did you forget -T? > INPUT( > -lX11 > -lgdk_pixbuf-2.0 > -lgtk-x11-2.0 > -lgdk-x11-2.0 > -lgobject-2.0 > -lglib-2.0 > -lgthread-2.0 > -lgmodule-2.0 > -lpango-1.0 > -lpthread > -latk-1.0 > -lcairo > -ldl > ) > GROUP( > -lc > ) > INPUT( > /usr/lib/gcc/i586-manbo-linux-gnu/4.4.3/crtend.o > /usr/lib/crtn.o > ) > ENTRY(_start) > SECTIONS > { > ?PROVIDE (__executable_start = 0x010000); . = 0x010000 + SIZEOF_HEADERS; > ?.interp ? ? ? ? : { *(.interp) } > ?.hash ? ? ? ? ? : { *(.hash) } > ?.dynsym ? ? ? ? : { *(.dynsym) } > ?.dynstr ? ? ? ? : { *(.dynstr) } > ?.gnu.version ? ?: { *(.gnu.version) } > ?.gnu.version_d ?: { *(.gnu.version_d) } > ?.gnu.version_r ?: { *(.gnu.version_r) } > ?.rel.dyn ? ? ? ?: > ? ?{ > ? ? ?*(.rel.init) > ? ? ?*(.rel.text .rel.text.* .rel.gnu.linkonce.t.*) > ? ? ?*(.rel.fini) > ? ? ?*(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*) > ? ? ?*(.rel.data.rel.ro*) > ? ? ?*(.rel.data .rel.data.* .rel.gnu.linkonce.d.*) > ? ? ?*(.rel.tdata .rel.tdata.* .rel.gnu.linkonce.td.*) > ? ? ?*(.rel.tbss .rel.tbss.* .rel.gnu.linkonce.tb.*) > ? ? ?*(.rel.got) > ? ? ?*(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) > ? ?} > ?.rela.dyn ? ? ? : > ? ?{ > ? ? ?*(.rela.init) > ? ? ?*(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) > ? ? ?*(.rela.fini) > ? ? ?*(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) > ? ? ?*(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) > ? ? ?*(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) > ? ? ?*(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) > ? ? ?*(.rela.got) > ? ? ?*(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) > ? ?} > ?.rel.plt ? ? ? ?: { *(.rel.plt) } > ?.rela.plt ? ? ? : { *(.rela.plt) } > ?.init ? ? ? ? ? : > ?{ > ? ?KEEP (*(.init)) > ?} =0x90909090 > ?.plt ? ? ? ? ? ?: { *(.plt) } > ?.text ? ? ? ? ? : > ?{ > ? ?*(.text .stub .text.* .gnu.linkonce.t.*) > ? ?KEEP (*(.text.*personality*)) > ? ?*(.gnu.warning) > ?} =0x90909090 > ?.fini ? ? ? ? ? : > ?{ > ? ?KEEP (*(.fini)) > ?} =0x90909090 > ?PROVIDE (_etext = .); > ?.rodata ? ? ? ? : > ?{ > ? ?*(.rodata .rodata.* .gnu.linkonce.r.*) > ?} > ?. = ALIGN (0x1000) - ((0x1000 - .) & (0x1000 - 1)); > ?.dynamic ? ? ? ?: { *(.dynamic) } > ?.got ? ? ? ? ? ?: { *(.got) } > ?.got.plt ? ? ? ?: { *(.got.plt) } > ?.data ? ? ? ? ? : > ?{ > ? ?*(.data .data.* .gnu.linkonce.d.*) > ? ?KEEP (*(.fpc .fpc.n_version .fpc.n_links)) > ? ?KEEP (*(.gnu.linkonce.d.*personality*)) > ?} > ?PROVIDE (_edata = .); > ?PROVIDE (edata = .); > ?.threadvar : { *(.threadvar .threadvar.* .gnu.linkonce.tv.*) } > ?__bss_start = .; > ?.bss ? ? ? ? ? ?: > ?{ > ? *(.dynbss) > ? *(.bss .bss.* .gnu.linkonce.b.*) > ? *(COMMON) > ? . = ALIGN(32 / 8); > ?} > ?. = ALIGN(32 / 8); > ?PROVIDE (_end = .); > ?PROVIDE (end = .); > ?.stab ? ? ? ? ?0 : { *(.stab) } > ?.stabstr ? ? ? 0 : { *(.stabstr) } > } > > -- > http://luisdigital.com > -- http://luisdigital.com

Reply by email

Luis R. Hilario B.
to Mattias Gaertner

I was using "Lazarus fixes" and not the latest version.

Solved, thanks.

2010/8/17 Mattias Gaertner :

Show quoted text 18 lines
On Mon, 16 Aug 2010 19:45:36 -0400 "Luis R. Hilario B." wrote: > I have more information about the problem: > > I eliminated a TListBox component of my program and the error > "TCustomForm.ShowModal impossible" disappeared. Have you tried with the svn version? Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email