• Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Social Media
    •   @Wings3dOfficial
    •   @Wings3dOfficial
    •   Wings3dOfficial
    •   Wings3dOfficial
  • Register
  • Login
  • Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Register
  • Login
Wings 3D Development Forum Wings 3D Programming v
« Previous 1 2 3 4 Next »
Erlang Run Time Errors

 
  • 0 Vote(s) - 0 Average
Erlang Run Time Errors

micheus
Offline

Forum's Admin and Support | Bug fixer
Posts: 3,681
Threads: 185
Joined: Jun 2012
#4
03-03-2017, 07:16 AM
(03-03-2017, 12:23 AM)oort Wrote: "Surely it's not a expect value to be returned to the main event handler."
Not sure what you are saying. Still just a hacker... Smile Sad

Here is the part of the code that is supposed to create two geometry windows, in case it helps???
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) ->
+    new_viewer_stereo(St),
+    keep;
Just in case, as I told in the previous post, there are some specific "values" expected to be returned among those I enumerate you find the other in the wings.erl:command_response/3


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.

I think new_viewer is supposed to create a geometry window.
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) ->
?__(1,"Geometry");
geom_title({geom,N}) ->
?__(2,"Geometry #") ++ integer_to_list(N).

and in the function new_viewer you remove the module name prefixing the function call (that actually is wings).
[Image: tw.png] @MicheusVieira [Image: yt.png] @MicheusVieira [Image: da.png] Micheuss [Image: ig.png] micheus4wings3d
* Wings3D Team stands for: Björn and Dan
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Messages In This Thread
Erlang Run Time Errors - by oort - 03-02-2017, 09:06 PM
RE: Erlang Run Time Errors - by micheus - 03-02-2017, 10:55 PM
RE: Erlang Run Time Errors - by oort - 03-03-2017, 12:23 AM
RE: Erlang Run Time Errors - by micheus - 03-03-2017, 07:16 AM
RE: Erlang Run Time Errors - by oort - 03-03-2017, 05:08 PM
RE: Erlang Run Time Errors - by micheus - 03-03-2017, 07:53 PM
RE: Erlang Run Time Errors - by oort - 03-04-2017, 04:10 AM
RE: Erlang Run Time Errors - by oort - 03-11-2017, 01:42 AM
RE: Erlang Run Time Errors - by micheus - 03-11-2017, 01:45 AM
RE: Erlang Run Time Errors - by oort - 03-11-2017, 01:48 AM

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode