Sign in Join

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

Mailing lists / lazarus / 1999-05

Is this me or is this some problem?

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Michael A. Hess
to Cliff Baeseman: I am trying to do something like this and am having some time with it. I am doing this...…
Cliff Baeseman wrote 8 lines
I am doing this... UList := TList.Create; su := TUnitList.Create; UList.Add(su); It fails with a access violatin? What am I forgetting?

I can't say I see anything specifically wrong and I am getting access violations myself during creates. I have written the whole of TApplication. In fact I have eliminated the application.pp file. It is now GUI API independent. It also does a CreateForm and Terminate and all that fun stuff. Now if I could just get it to work. I think I might hitting Shanes 'Self' problem. :-\

Midnight ... I'm calling it a day. :-)

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

Reply by email

Cliff Baeseman

I am trying to do something like this and am having some time with it.

I am doing this...

UList := TList.Create;
su := TUnitList.Create;
UList.Add(su);

It fails with a access violatin? What am I forgetting?

Cliff

Reply by email

Cliff Baeseman
to Cliff Baeseman

We are going to have to solve the Self Thing before going forward.

I just took a () it makes two calls using Self. I am getting access violations and weird stuff like that. And this is just doing

simple things with lists and such. I thought for a minute I forgot how to add a object to a Tlist!

In the first level object I succeded in doing the same thing. But in the tmain which is a tform decendant I cannot do a call like this. It is as if self is not accessible in the TForm Object;

My calls are correct but something weird is happening.

Cliff

"Michael A. Hess" wrote 28 lines
Cliff Baeseman wrote: > > I am doing this... > > UList := TList.Create; > su := TUnitList.Create; > UList.Add(su); > > It fails with a access violatin? What am I forgetting? I can't say I see anything specifically wrong and I am getting access violations myself during creates. I have written the whole of TApplication. In fact I have eliminated the application.pp file. It is now GUI API independent. It also does a CreateForm and Terminate and all that fun stuff. Now if I could just get it to work. I think I might hitting Shanes 'Self' problem. :-\ Midnight ... I'm calling it a day. :-) -- ==== 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

Reply by email