Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1076693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:27:53+00:00 2026-05-16T21:27:53+00:00

I registered a CALLBACK using: gluTessCallback(tess, GLU_TESS_COMBINE, (GLvoid(*)()) &scbCombine); Where scbCombine is a function

  • 0

I registered a CALLBACK using:

gluTessCallback(tess, GLU_TESS_COMBINE, (GLvoid(*)()) &scbCombine);

Where scbCombine is a function directly in the same .cpp file:

void CALLBACK scbCombine(const double newVertex[3], const double *neighborVertex[4], const float neighborWeight[4], double **outData)
{
    instanceMDC->cbCombine(newVertex, neighborVertex, neighborWeight, outData);
    printf("scbCombine \n");
}

And when I use test it, "scbCombine \n" is printed in the console!!! And then after calling the CALLBACK function, the tesselator invokes the error callback with the message: “need combine callback” (!!)

I have already two other tesselators in my app, and they work correct. But the last one don’t. I compared the code of this one as much as possible with the code of the other one. But I can’t see why it doesn’t work.

The cbCombine method (without “s” at the beginning) is this:

void MyClass::cbCombine(const double newVertex[3], const double *neighborVertex[4], const float neighborWeight[4], double **outData)
{
    outData = 0;
}

But the setting outData to zero can’t be the problem: I did this already with one of the other tesselators…

I’m getting crazy… I have spent already hours to this issue

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T21:27:54+00:00Added an answer on May 16, 2026 at 9:27 pm

    The problem was the zero, I had to do this:

    *outData = new double; // memory-leak, but not as I did it really.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having difficulty using a thirdparty library registration function to register a callback.
Is there anyway to register a PHP callback function to be executed when the
I registered a sub domain on my server using DNS: client.henrybuilt.com If I wanted
The registered accounts in my web application (Created using struts2) gets a separate site
I'm trying to get a jsonp callback working using jquery within a greasemonkey script.
I'm using C# but probably the same in VB.NET. I C++ I would just
I'm using register_callback() to register a call-back function for iostreams as described in Standard
I am writing a download file utility using WinINET, and have noticed (especially on
Im trying to create a simple callback using blocks. I have a MainViewController which
I'm trying to make an asynchronous HTTP GET request using Webclient, however, the registered

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.