Koenraad Lelong wrote:
Marc Weustink schreef:
Sam Liddicott wrote:
I may be asking obvious questions here, but you didn't reveal a lot
about your setup.

Do you event have a DISPLAY environment variable set?
Instead of setting your env, you can also start your app like:

your_app --display=yourserver:0

Marc

Tried this, and got another result.
./project1 --display=viper:0
gives :
[FORMS.PP] ExceptionOccured
 Sender=EReadError
 Exception=Invalid Filer Signature
 Stack Trace:
 ...
TApplication.HandleException Invalid Filer Signature
 Stack trace:
 ...
then a form appears (with a red circle with a white bar in it) :
 Invalid Filer Signature
 Press OK to ingore and risk data corruption.
 Press Cancel to kill the program
[ OK ] [ Cancel ]
And the form seems to respond to a click on one of the buttons, it
terminates the application.

This is some progress, thanks. Other suggestions ?

at leas this is no: "Gtk-WARNING **: cannot open display:"
so you now have your display and ran into a complete different problem.

  Exception=Invalid Filer Signature:
maybe some endian issue or a corrupt file or a bad compiled string constant (the form layout is stored internally in a string)

Maybe, as a test, you can write the contents of the result of LazarusResources.Find('TForm'):TLResource directly after the line {$I unit1.lrs} in the initialization section of your form.

(and compare this to the contents of unit1.lrs)

Marc

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

Reply via email to