Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 18 total
Thread TPersistent iheritance lost
Wed, Jul 6 2016 9:16 AMPermanent Link

Matthew Jones

Here's an odd one. Code that has been working fine just started
breaking because a derived class has "lost" its TPersistent
inheritance. I cannot fathom what I did to break it.

I have
TItemCommon = class (TPersistent);

Then I have
TItemOne = class (TItemCommon);
and
TItemTwo = class (TItemCommon);

The code creates TItemOne just fine and the .loadobject works fine, but
the TItemTwo which is created doesn't have it. Looking in the Chrome
debugger, TItemTwo has an _proto for TItemCommon, but then goes
straight to Object, and not TPersistent as the TItemOne does.

Anyone got a suggestion as to why this might be?

--

Matthew Jones
Wed, Jul 6 2016 9:49 AMPermanent Link

Matthew Jones

Matthew Jones wrote:

> Anyone got a suggestion as to why this might be?

Me! Me! Me!  It appears that the order of the files in the output
javascript is significant, and the compiler is outputting the TItemTwo
before TItemCommon is, which means TItemCommon is not ready for use
yet. Now to work out how I did that...

--

Matthew Jones
Wed, Jul 6 2016 10:04 AMPermanent Link

Matthew Jones

Matthew Jones wrote:

> Matthew Jones wrote:
> ... and the compiler is outputting the TItemTwo
> before TItemCommon is, which means TItemCommon is not ready for use
> yet. Now to work out how I did that...

Okay, this appears to be due to a circular reference, in the
implementation section. I'd found an issue with this before, and Tim
had fixed it. Seems there is a side effect.

I can work around it by using another unit as intermediary, but Tim, if
you need any more info let me know...


--

Matthew Jones
Thu, Jul 7 2016 7:58 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< Okay, this appears to be due to a circular reference, in the implementation section. I'd found an issue with this before, and Tim had fixed it. Seems there is a side effect.

I can work around it by using another unit as intermediary, but Tim, if you need any more info let me know...>>

Yes, please send over a sample project or code that demonstrates the issue.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Jul 7 2016 8:35 AMPermanent Link

Matthew Jones

Tim Young [Elevate Software] wrote:

> Yes, please send over a sample project or code that demonstrates the
> issue.

I'll see if my project will make it happen - it is the big one though...

--

Matthew Jones
Mon, Jul 11 2016 11:39 AMPermanent Link

Matthew Jones

Matthew Jones wrote:

> Tim Young [Elevate Software] wrote:
>
> > Yes, please send over a sample project or code that demonstrates the
> > issue.
>

Project coming soon, with details. By email (confidential!).

--

Matthew Jones
Mon, Jul 11 2016 12:08 PMPermanent Link

Matthew Jones

Matthew Jones wrote:

> Project coming soon, with details. By email (confidential!).

Sent from personal email address.

--

Matthew Jones
Mon, Jul 11 2016 1:08 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< Sent from personal email address. >>

Which email address ?  I don't see anything yet...

Was it a .zip file ?

Tim Young
Elevate Software
www.elevatesoft.com
Mon, Jul 11 2016 2:47 PMPermanent Link

Matthew Jones

Tim Young [Elevate Software] <timyoung@elevatesoft.com> wrote:
> Matthew,
>
> << Sent from personal email address. >>
>
> Which email address ?  I don't see anything yet...
>
> Was it a .zip file ?
>


A zip code is included. M-J.com. To support@

--
Matthew Jones
Mon, Jul 11 2016 5:01 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

Hmm, still didn't see anything yet...checking the admin logs for Google mail, yep, it got marked as spam.

Try sending it directly to me (timyoung@elevatesoft.com)

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com
Page 1 of 2Next Page »
Jump to Page:  1 2
Image