Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Uncaught TypeError
Tue, May 2 2017 3:48 AMPermanent Link

Uli Becker

Hi,

on a mobile device (app created with PhoneGap) I sometimes get this
error when creating and showing a form:

"Uncaught TypeError: sender.tbasicpanelcontrol_getbackground is not a
function"

Has anyone experienced that?

The error occurs from time to time, it's not reproducable. After
confirming the message everythings seems to work fine.

Thanks Uli



Attachments: Error.png
Tue, May 2 2017 4:50 AMPermanent Link

Matthew Jones

Uli Becker wrote:

> "Uncaught TypeError: sender.tbasicpanelcontrol_getbackground is not a function"
>
> Has anyone experienced that?

Not that specifically, but looks like there is some event that is being send a Sender that is not the expected TBasicPanelControl. The iPhone allows you to attach a debugger to the browser, but not sure about PhoneGap, and that isn't an iPhone so I don't know, but if you can get into the browser to trap errors then you may be able to work it out from the call chain..

--

Matthew Jones
Thu, May 4 2017 3:57 AMPermanent Link

Uli Becker

> Not that specifically, but looks like there is some event that is being send a Sender that is not the expected TBasicPanelControl. The iPhone allows you to attach a debugger to the browser, but not sure about PhoneGap, and that isn't an iPhone so I don't know, but if you can get into the browser to trap errors then you may be able to work it out from the call chain..

Thanks, Matthew. Maybe Tim has an idea what's causing this. I'm not able
to debug that on a phone.

Uli
Thu, May 4 2017 4:21 AMPermanent Link

Matthew Jones

Next step is to search the output JavaScript for that text, and see if you can work out where it is happening.

--

Matthew Jones
Thu, May 4 2017 12:38 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< Thanks, Matthew. Maybe Tim has an idea what's causing this. I'm not able to debug that on a phone. >>

It's probably what Matthew indicated: an event handler that is being fired on an object instance that has been freed.  In order to debug it, I'll need (at the very least) a URL with an un-compressed version of the application.

If you want to debug it yourself, I would look for any references to the Background property for any control in your code, and then put some debugging output statements around each call to see which reference is causing the error.

Tim Young
Elevate Software
www.elevatesoft.com
Image