|
Erlang Run Time Errors
|
|
03-03-2017, 07:16 AM
Post: #4
|
||||
|
||||
RE: Erlang Run Time Errors
(03-03-2017 12:23 AM)oort Wrote: "Surely it's not a expect value to be returned to the main event handler."oort, sorry for making things confuse to you. I could look better the problem and the code. The return value in 'command' isn't the problem in this case. By checking this code fragment from the original coder I saw that he already took care of that, so you probably didn't touched that: Code: +command_1({window,geom_viewer_stereo}, St) ->Ok, back to your problem... (03-03-2017 12:23 AM)oort Wrote: Yes, I think {wings,geom_title,[{geom,2}]} is supposed to define a new geometry window id number that is one higher than any existing windows.Yes, you are right. Let's read the message from the top of the stack of the error dump: bad return value: {'EXIT', {undef, [{wings,geom_title,[{geom,2}]}, {wpc_stereoscopic,new_viewer,6}, the function new_viewer/6 into wpc_stereoscopic module tried to call the function geom_title into wings module with the parameter [{geom,2}] (list of one parameter), but this function is undefined. I took a look at the source and the function is really in wings.erl module, but it isn't exported. That is why it's crashing. what you can do is to copy it to your plugin source: Quote:geom_title(geom) -> and in the function new_viewer you remove the module name prefixing the function call (that actually is wings).
|
||||
|
« Next Oldest | Next Newest »
|
| Messages In This Thread |
|
Erlang Run Time Errors - oort - 03-02-2017, 09:06 PM
RE: Erlang Run Time Errors - micheus - 03-02-2017, 10:55 PM
RE: Erlang Run Time Errors - oort - 03-03-2017, 12:23 AM
RE: Erlang Run Time Errors - micheus - 03-03-2017 07:16 AM
RE: Erlang Run Time Errors - oort - 03-03-2017, 05:08 PM
RE: Erlang Run Time Errors - micheus - 03-03-2017, 07:53 PM
RE: Erlang Run Time Errors - oort - 03-04-2017, 04:10 AM
RE: Erlang Run Time Errors - oort - 03-11-2017, 01:42 AM
RE: Erlang Run Time Errors - micheus - 03-11-2017, 01:45 AM
RE: Erlang Run Time Errors - oort - 03-11-2017, 01:48 AM
|
User(s) browsing this thread: 1 Guest(s)




@MicheusVieira
MicheusVieira
Micheuss
micheus4wings3d