Sign in Join

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

Mailing lists / fpc-devel / 2002-10

1.1 array of const

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Andrew Johnson

I discovered what I think is a bug in fpc 1.1, but am having trouble tracing down particulars so I am posting here instead. With the new fixes to 1.1, most of lazarus has started compiling with it, however programs (including lazarus itself) die on execution. I traced this down to a single function :

Result := gtk_widget_new(GTKAPIWidget_GetType, 'hadjustment', [nil,
'vadjustment', nil,  nil] );

which raises an AV in GTK+, gtk_args_collect. This problem only occurs when sending the array of const, so I am guessing something with array of const has been broken, or has at least broken compatibility with C. If I can figure out an easy example/explanation of this problem I will also post a bug report, but until then, anybody have any ideas?

Andrew

Reply by email