Events causing crash

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
sazzer
Just popping in
Just popping in
Posts: 12
Joined: Wed Jan 12, 2005 12:06

Events causing crash

Postby sazzer » Tue Aug 17, 2004 23:31

Well - that patch totally failed to solve the problem :) No change whatsoever to the results after making that change...

What makes it even more infuriating is that I've just compiled Demo7 and it works perfectly - and yet the code that was basically copied and pasted into my program doesn't work at all...

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Events causing crash

Postby CrazyEddie » Wed Aug 18, 2004 05:01

Well - that patch totally failed to solve the problem :) No change whatsoever to the results after making that change...

:cry:

What makes it even more infuriating is that I've just compiled Demo7 and it works perfectly - and yet the code that was basically copied and pasted into my program doesn't work at all...

Which can only mean that the problem is being caused by something else you are/aren't doing. So I ask again, what is the exact exeption that causes program termination, and can you post some debugging information like a call stack that shows where in the program the issue is occurring.

If I could reproduce the problem here this would not be required (since I'd just get it myself), but since I can't, you'll have to provide this information for me ;)

CE.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Events causing crash

Postby CrazyEddie » Wed Aug 18, 2004 12:17

Hehe :) Glad you got it working okay.

Thanks for the suggestion of the configure options, I'll get this looked into.

And I sincerely apologize to boost for saying it's an evil baaaastard :wink:

:lol: But it is evil.

CE.

User avatar
sazzer
Just popping in
Just popping in
Posts: 12
Joined: Wed Jan 12, 2005 12:06

Events causing crash

Postby sazzer » Sun Aug 22, 2004 15:18

Seems I've found out what's wrong with my code too - as you said, there was nothing wrong with the code itself. Just the fact that boost::bind doesn't work properly with Managed C++ code - which I was using... Turning off the /CLR flag and it all works fine... :)
--
Graham

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Events causing crash

Postby CrazyEddie » Sun Aug 22, 2004 17:26

That's great news :)

You could possibly produce some kind of functor object of your own that would allow you to make the handler call within managed C++ (rather than using boost::bind), though since I've never tried it I can't advise the best route to take with that.

Having said that, if you don't need the managed environment and are happy to continue without it, then this is a non-issue anyway ;)

CE.

User avatar
sazzer
Just popping in
Just popping in
Posts: 12
Joined: Wed Jan 12, 2005 12:06

Events causing crash

Postby sazzer » Sun Aug 22, 2004 19:26

I do want the managed environment for what I'm aiming for, but I can find another way of doing it than writing the whole thing in managed code...
Just a pain that boost::bind doesn't work with the managed function calls - even in unmanaged classes... Kinda useful at times :)


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 5 guests