2011-09-12 02:59 PM - last edited on 2023-08-03 09:36 AM by Doreena Deng
2011-09-13 12:35 PM
frankito5 wrote:Try making the dialog a palette rather than a modeless dialog - I believe there may still be underlying problems registering a modeless dialog correctly from the API.
I have alredy made an aplicattion who works properly with a Modal Dialog. Now, i would like to change this modal dialog into a Modeless one. But i have found some problems, due to when i run the API i can not interact with the Dialog and in few seconds, the application closes and error report starts.
2011-09-14 01:46 PM
2011-09-14 04:00 PM
frankito5 wrote:Have you determined where the crash is occurring (e.g. with the debugger)?
With the green one, the Dialog appears but i cant operate or move it and in few seconds, bug problems dialog appear and archiCAD closes.
2011-09-15 10:06 AM
2011-09-15 11:07 AM
frankito5 wrote:Sorry, I can't pinpoint what's going wrong here. There are some redundancies in your code, but they wouldn't cause a crash, e.g. the following does nothing:
I think i am forgetting something in the Callback, but i am not sure. Could be something related with the 'DGModelessHandler'? It converts the system messages in DG messages but i don't know it is necessary. Some suggestions? I am blocked and i do not know how to continue
itemId=itemId;...and it is unnecessary to call
2011-09-15 12:21 PM
Ralph wrote:frankito5 wrote:
I think it is very important to determine the point where the add-on crashes - it may have nothing to do with the dialog. The stack trace could provide important clues to the reason for the failure. I'm surprised the debugger isn't trapping the crash - are you sure you're running the debug version and have at least one breakpoint set? If you're debugging with Visual Studio, it might also be useful to turn on all the runtime checks too.
2011-09-15 01:23 PM
2011-09-15 02:07 PM
frankito5 wrote:What about the stack trace? This will tell you where the crash occurred and - more importantly - the call sequence leading up to it.
When im debugging, the report gives the following information:[]
Now, could you give me more information about possible solutions??
2011-09-15 02:40 PM
What about the stack trace? This will tell you where the crash occurred and - more importantly - the call sequence leading up to it.Call stack:
Just to confirm - have you changed the dialog resources in these tests to identify it as a palette rather than a modeless dialog?'GDLG' 32540 Modeless 0 0 320 250 "Prueba" {