THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/10/2006 at 22:02, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.102
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
---------
I've been alerted to a crash situation with my plugin's dialog when switching layouts.
Thing is that it's very specific. The conditions are:
1. The dialog must be saved with the layout being reselected (say, from Startup->Standard->Startup layouts).
2. The dialog must be docked.
3. The dialog has no thumbnails being shown or no Runtimes (and thus no thumbnails) - as best as can be found.
If the dialog is not docked, no crash. (???) 'xplain that one please. If docked, but thumbnails are visible (any thumbnails), no crash.
I cannot find a debug breakpoint that corresponds with the crash - i.e.: this is crashing while making a Cinema 4D call and not one of my plugin's. But it is definitely instigated by my plugin. As best as I can tell, it is crashing before it reaches RestoreLayout() (?). As far as I am aware, there are no other plugin calls prior to this - any you can submit?
It is always crashing at the same instruction:
mov ecx,dword ptr [edx+4]
Lot of help that is. The error is "Access Violation" and obviously there is an invalid/NULL pointer involved.
Since Cinema 4D is in the middle of switching layouts, finding the root cause here is more than frustrating. No way to GePrint. No way to raise an error dialog. And little I can do to find the entry point to this crash (!!!!).
Tell me what to do.