Sign in Join

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

Mailing lists / lazarus / 1999-08

Something is wrong with Self in dispatch messages

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Curtis White
to Michael A. Hess: It seems that the value Self that is being passed to the TNotifyEvent from the Dispatch…

This probably explains the sudden problem I experienced last night. I cycled the compiler, rtl and everything last night. Then I went in and compiled Lazarus. I had added a button to the compileroptions dialog so you could click the button to close the dialog. Before I cycled the compiler and rtl, the new button worked fine. After I cycled, it now crashes Lazarus when I press the button. I don't know what changed, but definitely something. Probably the same thing you are experiencing.

Curtis

On 07-Aug-99 Michael A. Hess wrote 19 lines
It seems that the value Self that is being passed to the TNotifyEvent from the Dispatch is getting hosed. Previously this worked OK. Now the value in the Self is just garbage and when I try to access it it just makes my program core. Does any one have a clue what in the RTL might have changed to mess this up? If not I'll try and dig down myself and find it. Check out the comdialogs example to see the anomoly. The buttonClick method has garbage for the Sender data. -- ==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

----------------------------------
Curtis White
Curtis White
http://www.teleport.com/~osiriz/
----------------------------------

Reply by email

Michael A. Hess

It seems that the value Self that is being passed to the TNotifyEvent from the Dispatch is getting hosed. Previously this worked OK. Now the value in the Self is just garbage and when I try to access it it just makes my program core. Does any one have a clue what in the RTL might have changed to mess this up? If not I'll try and dig down myself and find it.

Check out the comdialogs example to see the anomoly. The buttonClick method has garbage for the Sender data.

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Michael A. Hess
to Curtis White: This probably explains the sudden problem I experienced last night. I cycled the…
Curtis White wrote
Probably the same thing you are experiencing.

If you are attempting to access the Sender data

   buttonClick(Sender : TObject);

and casting it to be a TButton and get information from it then yes that is the problem. Something has messed that up. :_(

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Curtis White
to Michael A. Hess
On 07-Aug-99 Michael A. Hess wrote 8 lines
> If you are attempting to access the Sender data buttonClick(Sender : TObject); and casting it to be a TButton and get information from it then yes that is the problem. Something has messed that up. :_(

No, I'm not doing that. I just have the OnClicked event and in the event handler, I just have Hide. It was working before I cycled the compiler but now it crashes Lazarus. So I don't know what is causing that to happen. I am going to try to update and cycle everything again tonight and try again. Hopefully it will work.

Curtis

Reply by email