Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    GeModalDialog woes...

    SDK Help
    0
    2
    671
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 24/01/2005 at 03:54, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.200 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hi,

      I've got a simple custom modal dialog derived from GeModalDialog, built using the C4D 8.2 (because I want back-compatibility).

      Unfortunately, I've got an intermittent problem with it. Sometimes C4D crashes when I dismiss the dialog. Sometimes it doesn't. When it doesn't, it behaves exactly as it should.

      This sounds like a memory allocation/overwriting problem of some sort. I've tried allocating the dialog object both on the heap (with gNew) and on the stack, and can get the problem with either.

      My symptoms sound very like those described in this thread (though I haven't tested on a Mac) :
      https://developers.maxon.net/forum/topic/1487

      I don't believe that I have any globals/statics (I need to double check this).

      I also tried using the dialog code from the 'Serial' example in the SDK, and got the same problems.

      I know the above information is a bit vague, but does anyone have any suggestions for things to check, or any known issues with ModalDialogs...

      Cheers - Steve

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 24/01/2005 at 16:17, xxxxxxxx wrote:

        It's OK - forget it. I've found the problem (at last!).

        It was a combination of several things. I think I'd managed to get my build options messed up, and I also found an obscure bug in my code which was indirectly causing the problem.

        Cheers - Steve

        1 Reply Last reply Reply Quote 0
        • First post
          Last post