2011-07-07 08:35 UTC
I have encountered a problem with one of my dialogs which I can't resolve. I have a very simple modal dialog which contains a few labels, an html box and an OK button. All it does is display a simple html file to inform a user of what steps have been carried out during a process. There are no links or anything in the the HTML, it is purely simple text. I created the dialog on a machine running 64bit Win7 and no matter what I do I cannot replicate the problem on this machine. However, when I passed the routine to a user with 32bit XP, he noticed an odd behaviour:
If the dialog is shown and the user directly clicks the OK button then it closes as one would expect and nothing untoward happens. However, if the user clicks within the html box, either accidentally or to scroll the html text, and then clicks the OK button, the dialog closes but then about 5-10 seconds later AutoCAD crashes without warning and you are left with nothing more than the Autodesk Error Report dialog.
I have tested this on another similar machine and the exact same thing happens but I have also tried it on a very old laptop also running XP32 and this does not have the same problem. I have also tried it on an XP virtual machine on my Win7 machine and it won't crash on there either. Finally I tested on my Win7 home machine (again 64bit) and once again, the crash does not happen.
And that is why I'm stuck - on some machines no matter how I try I cannot trigger the crash whereas on other machines it triggers absolutely every time we go through the step of clicking the html and then the OK button. In order to check it wasn't a glitch in my original dialog I created a standalone code snippet which replicates the dialog but does nothing else. If I then run this routine it displays the modal dialog but the the html area is blank (as I haven't put any links in) for simplicity. And sure enough the exact same behaviour is displayed by each of the machines, some crash, some don't.
I don't know if anybody else would be able to replicate this as I don't know what causes some machines to crash and others not. If anybody would care to try it, I have included my example code below.
Is anybody able to give any reasons as to why this is happening or what may be a possible trigger?
(defun c:nick_crash ()
(defun c:crasher2_Form1_TextButton1_OnClicked (/)
(dcl_Form_close crasher2_form1)
)
(setq testdia
'("YWt6AzoRAAC9l6GEBuKT6DUxLT9quYHJPGcXu/oeCt0XXNwvP3o0u2PxbuvZ8XvQNmFeNBdtP1q4"
"uuNQoscOmzm+Kdzmxgrb0IJ+usZKL0oPnzjb4E3JoscNdNNm7fxESU3DgQUYsLLjDQAJxEPJ4j3A"
"1FpQXfAXMh7ykCSefgYtexLbIZAuYTt8sxryr2u5L0osZT15CxM6Zbhvqwm51hOtqHoj0zYv85cA"
"swpbFsLgTrlgHTbs8WrzN6+7HaTXMfJKBfIvIakdRaMLlocGSABkq4BsBDsvem8c2cKcFCCTMFZ5"
"f5p151QF79vp5NxHqjWq0CaMI6pnKr4pqnOTNOmNjUfWJN0ZF/IEGMqQgSqWe9/hdoMjsgl1K6Ac"
"19bDFVCA6xv/RB5CwaM84ACuIMa7r4gFPLF0g3zrVSTRGi+m0SQECWy5X40aahgD3WY8eFnXILpy"
"q0asqiDd4FSWpuDB9+eYEtN9xHUVeIp6h+FckdV5Sn6bExD7ifTQYEwlqLXEpHr9c4Aewd1FCyl6"
"FfnPqc9gSIRL+Z7KzpFNBOaL3q9z4jIDXEeE+2BuhOquTFuI9YmP27Z80TH4gsh2uuMrfD+dbpw5"
"+RtePJlWxg1q8lAi3wj4LF+9P3clIGQ0WbCUAKL6lKgX6rpaizc/K/QqBFagnsCucfrgUX8/pKU/"
"KTF0Q5uT1o3rD7N0hVvfm3BRB0WWlButITmS7WaBr4VCxsQg8oESqN2TW/6Of74O195rrr5uhN5g"
"99oBUsr6WB2HdnGeUlwqR6oXxFyW34j8e6k/pg4XQUDG0EVIIvf+c6kzyAFut5H901Uevaj4QX5l"
"YgVhqH+hXCtzbfF2je1Ydy3O4X43lkNVPhY924PpM+aIwD2DQ1HBtsdObFa+3Njt7ObBPGd0MfrA"
"MJ2qsJrBJ7sOr9GIxcZCSRUknEuFjq8ZtV+NcGzhIUTl9J7dQXNAAqwbRtVCIsiP7RzGyoK52wLG"
"imqcLKk33hp3c4nOgcmup31l4+8M3C29MfTfrcTfr6fyAc6o/7DvPAqUeUtGHYrxRzyB9Fl24hfE"
"DaVGqzKgYK9fspSBte9CFHjS2MFs0yimFgvpf1NQQX8XYXCg")
)
(dcl_project_import testdia nil nil)
(dcl_Form_Show crasher2_form1)
)
If the dialog is shown and the user directly clicks the OK button then it closes as one would expect and nothing untoward happens. However, if the user clicks within the html box, either accidentally or to scroll the html text, and then clicks the OK button, the dialog closes but then about 5-10 seconds later AutoCAD crashes without warning and you are left with nothing more than the Autodesk Error Report dialog.
I have tested this on another similar machine and the exact same thing happens but I have also tried it on a very old laptop also running XP32 and this does not have the same problem. I have also tried it on an XP virtual machine on my Win7 machine and it won't crash on there either. Finally I tested on my Win7 home machine (again 64bit) and once again, the crash does not happen.
And that is why I'm stuck - on some machines no matter how I try I cannot trigger the crash whereas on other machines it triggers absolutely every time we go through the step of clicking the html and then the OK button. In order to check it wasn't a glitch in my original dialog I created a standalone code snippet which replicates the dialog but does nothing else. If I then run this routine it displays the modal dialog but the the html area is blank (as I haven't put any links in) for simplicity. And sure enough the exact same behaviour is displayed by each of the machines, some crash, some don't.
I don't know if anybody else would be able to replicate this as I don't know what causes some machines to crash and others not. If anybody would care to try it, I have included my example code below.
Is anybody able to give any reasons as to why this is happening or what may be a possible trigger?
(defun c:nick_crash ()
(defun c:crasher2_Form1_TextButton1_OnClicked (/)
(dcl_Form_close crasher2_form1)
)
(setq testdia
'("YWt6AzoRAAC9l6GEBuKT6DUxLT9quYHJPGcXu/oeCt0XXNwvP3o0u2PxbuvZ8XvQNmFeNBdtP1q4"
"uuNQoscOmzm+Kdzmxgrb0IJ+usZKL0oPnzjb4E3JoscNdNNm7fxESU3DgQUYsLLjDQAJxEPJ4j3A"
"1FpQXfAXMh7ykCSefgYtexLbIZAuYTt8sxryr2u5L0osZT15CxM6Zbhvqwm51hOtqHoj0zYv85cA"
"swpbFsLgTrlgHTbs8WrzN6+7HaTXMfJKBfIvIakdRaMLlocGSABkq4BsBDsvem8c2cKcFCCTMFZ5"
"f5p151QF79vp5NxHqjWq0CaMI6pnKr4pqnOTNOmNjUfWJN0ZF/IEGMqQgSqWe9/hdoMjsgl1K6Ac"
"19bDFVCA6xv/RB5CwaM84ACuIMa7r4gFPLF0g3zrVSTRGi+m0SQECWy5X40aahgD3WY8eFnXILpy"
"q0asqiDd4FSWpuDB9+eYEtN9xHUVeIp6h+FckdV5Sn6bExD7ifTQYEwlqLXEpHr9c4Aewd1FCyl6"
"FfnPqc9gSIRL+Z7KzpF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