Forum > General

What when RAD becomes SAD?

(1/2) > >>

Dino_:
When working on a project in lazarus I had this sad experience, It came to me when I did as I always do, adding buttons to a form, and clicking on them to ad the procedure and make the button do what I want...
I did hit the wrong button, and did not want the "procedure. wrongbuttonclick" that was listed in the unit file, so I just deletet it, both under "Type" and under "Implemetation" , but the next time I compiled my project, it was all gone... or at least all but the form..  every button, textbox etc. was gone..

How on earth does I get this back... does I have to start all over again? or is it a simpler way...

system:
Lazarus Editor v0.9.0 beta under SuSE 8.1 - KDE.

Marc:
If lazarus didn't crash and you can't find any reference to a component in you're source, I would say bad luck. Otherwise, are you looking at the correct file and/or is there someting left in your temp dir ?

Now, on how could this happen. Yopu just deleted the declaration and hitted compile ?

Dino__:

--- Quote from: "Marc" ---....
. Otherwise, are you looking at the correct file and/or is there someting left in your temp dir ?

Now, on how could this happen. Yopu just deleted the declaration and hitted compile ?
--- End quote ---


Looking at the correct file, and it`s all in the temp dir..

And yea, just deleted the declaration, and hit compile, and like magic, all components gone from the compiled form... But they all is there in the IDE thoug...



I have been wondering if this could be a GTK-issue, but does not know where to look...

Marc:

--- Quote from: "Dino__" ---
And yea, just deleted the declaration, and hit compile, and like magic, all components gone from the compiled form... But they all is there in the IDE thoug...

--- End quote ---


OK, so you have still you complete form, and you can edit it.
My guess is that there is still the event declaration in the button.OnClick event where you clicked first on. Now an non  existing event is streamed, which causes a form load faillure.


--- Quote from: "Dino__" ---
I have been wondering if this could be a GTK-issue, but does not know where to look...

--- End quote ---


Naah, GTK doesn't know anything about streaming, LCL and OnClick events :)

Dino__:
Well, now like magic has turned into more like a mysteri... :?:

And there are no event declaration in the button.OnClick, at least not that I was able to find...

And:

Lazarus just dies when trying to run it, and kills my x-server at the same time..  like "if I can`t, X can`t either.."

Will try to set up another SuSE system using my other computer, just to see if similar stuff happends then... :?

Navigation

[0] Message Index

[#] Next page

Go to full version