[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-dev] Extensions load but don't export as symbols
From: |
strk |
Subject: |
Re: [Gnash-dev] Extensions load but don't export as symbols |
Date: |
Thu, 20 Sep 2007 22:29:10 +0200 |
On Thu, Sep 20, 2007 at 10:36:32AM -0700, Dave Watson wrote:
> On 9/19/07, strk <address@hidden> wrote:
> >
> > > get_variable_raw("mysql") failed, returning UNDEFINED
> >
> > Try changing line 423 of extensions/mysql/mysql_db.cpp to use init_member
> > instead of set_member.
> >
> > init_member will take care of converting the label to lowercase if needed
> > (needed in your case, it seems).
> >
> > To confirm that's the problem you may also try targetting your movie
> > to SWF7 or higher, in which case "MySQL" should be found.
> >
> > --strk;
> >
>
> OK, I just changed line 423 to use a lowercase mysql instead of MySQL, and I
> get a bit further, but now it seems no methods are recognized:
>
> ------
>
> get var: db=[object(gnash::mysql_as_object):0x81a6900]
> After execution, PC is 74.
> Stack: "[string:gnash]" | "[string:gnash]" | "[string:gnash]" |
> "[string:localhost]" | "[number:4]" |
> "[object(gnash::mysql_as_object):0x81a6900]"
>
> PC:75 - EX: ActionPushData
>
> dict_lookup[4]
>
> 0) type=dict8 (4), value=[string:connect]
> After execution, PC is 75.
> Stack: "[string:gnash]" | "[string:gnash]" | "[string:gnash]" |
> "[string:localhost]" | "[number:4]" |
> "[object(gnash::mysql_as_object):0x81a6900]" | "[string:connect]"
>
> PC:80 - EX: ActionCallMethod
>
>
> method name: [string:connect]
> method object/func: [object(gnash::mysql_as_object):0x81a6900]
> method nargs: 4
> 18278] 10:33:43: ACTIONSCRIPT ERROR: Attempt to call a value which is
> neither a C nor an ActionScript function
Change line 159 of server/vm/action.cpp to:
throw ActionException(_("Attempt to call a value which is neither a C nor an
ActionScript function (%s)"), method.to_debug_string().c_str());
and see what is the message
--strk;