Quantcast

badarg, function_exported

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

badarg, function_exported

Joel Reymont
What is this telling me?

Is a function not exported and if so which function?

Is it game_logic_stack:game?

        Thanks, Joel

---
(<0.526.0>) error_logger ! {notify,
                            {error_report,<0.479.0>,
                             {<0.526.0>,crash_report,
                              [[{pid,<0.526.0>},
                                {registered_name,[]},
                                {error_info,
                                 {error,badarg,
                                  [{erlang,function_exported,
                                    [{game_logic_stack,game,
                                      {texas,none,none,none,false,false,0,0,

--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------



_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: badarg, function_exported

Joel Reymont
It always helps to ask!

The problem here is that erlang:function_exported is getting a bad argument.

On Aug 1, 2011, at 3:02 PM, Joel Reymont wrote:

> What is this telling me?
>
> Is a function not exported and if so which function?
>
> Is it game_logic_stack:game?
>
> Thanks, Joel
>
> ---
> (<0.526.0>) error_logger ! {notify,
>                            {error_report,<0.479.0>,
>                             {<0.526.0>,crash_report,
>                              [[{pid,<0.526.0>},
>                                {registered_name,[]},
>                                {error_info,
>                                 {error,badarg,
>                                  [{erlang,function_exported,
>                                    [{game_logic_stack,game,
>                                      {texas,none,none,none,false,false,0,0,

--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------



_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: badarg, function_exported

Sam Elliott
Have you defined your own behaviour, but not used atoms and integers in the list of tuples like so? It looks like the arity argument you are giving it is all messed up, it should be an integer not a tuple/record.

behaviour_info(callbacks) ->
  [{init,1}, ... ]

It might also be worth checking where you define any modules to look for callbacks in, such as when you start a gen_server. I expect if that isn't an atom, erlang will complain.

Sam

--
Sam Elliott
[hidden email]
--


On Mon, Aug 1, 2011 at 3:15 PM, Joel Reymont <[hidden email]> wrote:
It always helps to ask!

The problem here is that erlang:function_exported is getting a bad argument.

On Aug 1, 2011, at 3:02 PM, Joel Reymont wrote:

> What is this telling me?
>
> Is a function not exported and if so which function?
>
> Is it game_logic_stack:game?
>
>       Thanks, Joel
>
> ---
> (<0.526.0>) error_logger ! {notify,
>                            {error_report,<0.479.0>,
>                             {<0.526.0>,crash_report,
>                              [[{pid,<0.526.0>},
>                                {registered_name,[]},
>                                {error_info,
>                                 {error,badarg,
>                                  [{erlang,function_exported,
>                                    [{game_logic_stack,game,
>                                      {texas,none,none,none,false,false,0,0,

--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------



_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions


_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Loading...