Jump to content

Custom Vex Function Is Crashing..


Recommended Posts

Hey all, I'm re-compiling a vex function that worked just fine in 7.0.214. I'm recompiling for 8.0.324 and getting crashes when the function is used. It's compiling w/out error.

I've narrowed down the crash to:

int status = 1;
GU_Detail *detail;
cerr<<"About to load...";
status = detail->load(filename, isBinary);
cerr<<"Loaded!"<<endl;

That's it.. I never gets to the "Loaded!" line and houdini crashes. There's really not much else going on above this spot in the code. I've mailed support on this one too, but thought I'd also try my luck here and see if there are any suggestions.

Thanks!

daniel

Link to comment
Share on other sites

Shouldn't detail be an object instead of a pointer? There must be more you're ommitting here.

20554[/snapback]

Ah, yea.. hmm. I have the option to load from a file or use the "op:/" syntax to get at geometry out of a sop:

detail = (GU_Detail *)sop->getCookedGeo( context, 1 );

in that case it's a pointer to the sop data. I think I just got a bit confused when loading off disk. What's stumped me though is I'm pretty sure my code worked in 7.0.214.. now I'm curious

thanks for the reality check, I'll try that tomorrow at work

d

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...