2014-09-22 13:34 UTC
As per the title - are there any known problems?
The reason I ask, all the machines at our company are running IE8 and my code works just fine but when I run the same code on my home machine which is running the same AutoCAD version (Architecture 2014) but has IE11 installed I get a strange error.
My code basically shows a dialog box with a browser control and that control shows a short bit of html code - all very basic. On our work machines we can run this caode all day long without a hitch but on my home machine I can run it once and then on the second run it crashes - the dialog box appears but the html is not there and then AutoCAD crashes and I get a debug box telling me that acad.exe has crashed and the fault module is mshtml.dll.
If I run this code once then fully close AutoCAD and restart I can run it again but if I ever attempt a second run I get the same error. I am loathe to install IE11 on my work machine in case it is the cause and then I'll have to faff about removing it etc which is never an easy task.
At this point I haven't provided any sample code as I just wanted to test the water and see if there weere any known bugs that may explain what is happening here.
Another 'possible' trigger may be to do with my machine setup - I had been running AutoCAD 2015 but due to a lot of problems surrounding COMMAND-S (a whole other subject...) I removed it and went back to 2014 and since then I have had quite a few niggling problems crop up so I'm not sure if my HTML problem is possibly being caused by whatever the downgrade has messed up.
**EDIT**
I should just clarify something here. When I say I can't run the code a second time , I actually mean I can't run it in a second drawing in the same AutoCAD session. If I run it once and then close that drawing then open a new drawing and try to run the same code it crashes.
**EDIT **
OK, I made a quick sample. Load this into Drawing1 and it runs fine, showing the webpage as expected. Load the same code into Drawing2 in the same AutoCAD session and the dialog appears but with no webpage and then AutoCAD crashes (for me anyway).
(setq testdia
'("YWt6A4YHAAA4MhUEBuLTKscQaj9uA80ZteB+JzxMp7T5Dr62pqa1UN8/9rXmlXmSi2RlkdBTJr5c"
"z018bDr+dnaGfjD3VTo67o9/An5sKTh8BgerzeDgV8J1NrLWBYQLKcPU0B0IykglFvEybSsiPG1g"
"/gkH3vkhR2ZUH2hb8g/gzg3+TJhWUtV3MhziRt66QqFP0Ijctsm843QJiB3/TO0iJz1TH+K9QLUn"
"2NICfZwPDFAmuNTLbW7pkxAexxjHVOzTFlMp1yc8ZMAGNaxornGdX/uIPU2nvSa/O6o3GKDeEZXa"
"UxywXv2mHaiTs5ON//qYUAwTlveZmNm8KWqQDYRRF73CKZkpbQYpe3nOa4wvRil5T/148AxSjxr3"
"CdMPwDg3jbwnzmBBLYbHvDFrgNBCJC1GmVuPcWlfX0yp7/G8VW9kkmaQqba4ah/yHADlrvpnD+DA"
"NH1AeQJ1iZbSiOAdVqhm5FcimKLarzj5ctke3MWxRnWD/A0BO+QrAIX39nMKtJ9WyJl1DQWuGMr8"
"G7SyvUIoC4Y6nzlUNXFrAN6OA/sFKmhl9+WFrUb1fLlcw9ePU55umY1OaVzDTvlVdKnd9gSh2mTo"
"qwczHyNtzwBXdsDTgqKXsJEPGzC7mtvBENYF4PCL4bYRRIXokfWMmQ1q+S6B3dS30ZAAKIAtKoNf"
"YCyEvbCA+IYJrJ/stmEpowY8nxf78VdyUWdhoz3FK4IcQ8u2nzWniSSGheGMdjXKsMqBx/FML2g9"
"Vc/AJGviicQpIclUNgvR/G9a1Z4wBOVUxqvHVNKAzrzPUqMyg/lSgz0oKK2fiWl/II/P")
)
(defun c:test/Form1#OnInitialize (/)
(dcl-Html-Navigate test/Form1/Html1 "www.msn.com")
)
(defun c:test/Form1/TextButton1#OnClicked (/)
(dcl-Form-Close test/Form1)
)
(dcl-Project-Import testdia nil nil)
(dcl-Form-Show test/Form1)
The reason I ask, all the machines at our company are running IE8 and my code works just fine but when I run the same code on my home machine which is running the same AutoCAD version (Architecture 2014) but has IE11 installed I get a strange error.
My code basically shows a dialog box with a browser control and that control shows a short bit of html code - all very basic. On our work machines we can run this caode all day long without a hitch but on my home machine I can run it once and then on the second run it crashes - the dialog box appears but the html is not there and then AutoCAD crashes and I get a debug box telling me that acad.exe has crashed and the fault module is mshtml.dll.
If I run this code once then fully close AutoCAD and restart I can run it again but if I ever attempt a second run I get the same error. I am loathe to install IE11 on my work machine in case it is the cause and then I'll have to faff about removing it etc which is never an easy task.
At this point I haven't provided any sample code as I just wanted to test the water and see if there weere any known bugs that may explain what is happening here.
Another 'possible' trigger may be to do with my machine setup - I had been running AutoCAD 2015 but due to a lot of problems surrounding COMMAND-S (a whole other subject...) I removed it and went back to 2014 and since then I have had quite a few niggling problems crop up so I'm not sure if my HTML problem is possibly being caused by whatever the downgrade has messed up.
**EDIT**
I should just clarify something here. When I say I can't run the code a second time , I actually mean I can't run it in a second drawing in the same AutoCAD session. If I run it once and then close that drawing then open a new drawing and try to run the same code it crashes.
**EDIT **
OK, I made a quick sample. Load this into Drawing1 and it runs fine, showing the webpage as expected. Load the same code into Drawing2 in the same AutoCAD session and the dialog appears but with no webpage and then AutoCAD crashes (for me anyway).
(setq testdia
'("YWt6A4YHAAA4MhUEBuLTKscQaj9uA80ZteB+JzxMp7T5Dr62pqa1UN8/9rXmlXmSi2RlkdBTJr5c"
"z018bDr+dnaGfjD3VTo67o9/An5sKTh8BgerzeDgV8J1NrLWBYQLKcPU0B0IykglFvEybSsiPG1g"
"/gkH3vkhR2ZUH2hb8g/gzg3+TJhWUtV3MhziRt66QqFP0Ijctsm843QJiB3/TO0iJz1TH+K9QLUn"
"2NICfZwPDFAmuNTLbW7pkxAexxjHVOzTFlMp1yc8ZMAGNaxornGdX/uIPU2nvSa/O6o3GKDeEZXa"
"UxywXv2mHaiTs5ON//qYUAwTlveZmNm8KWqQDYRRF73CKZkpbQYpe3nOa4wvRil5T/148AxSjxr3"
"CdMPwDg3jbwnzmBBLYbHvDFrgNBCJC1GmVuPcWlfX0yp7/G8VW9kkmaQqba4ah/yHADlrvpnD+DA"
"NH1AeQJ1iZbSiOAdVqhm5FcimKLarzj5ctke3MWxRnWD/A0BO+QrAIX39nMKtJ9WyJl1DQWuGMr8"
"G7SyvUIoC4Y6nzlUNXFrAN6OA/sFKmhl9+WFrUb1fLlcw9ePU55umY1OaVzDTvlVdKnd9gSh2mTo"
"qwczHyNtzwBXdsDTgqKXsJEPGzC7mtvBENYF4PCL4bYRRIXokfWMmQ1q+S6B3dS30ZAAKIAtKoNf"
"YCyEvbCA+IYJrJ/stmEpowY8nxf78VdyUWdhoz3FK4IcQ8u2nzWniSSGheGMdjXKsMqBx/FML2g9"
"Vc/AJGviicQpIclUNgvR/G9a1Z4wBOVUxqvHVNKAzrzPUqMyg/lSgz0oKK2fiWl/II/P")
)
(defun c:test/Form1#OnInitialize (/)
(dcl-Html-Navigate test/Form1/Html1 "www.msn.com")
)
(defun c:test/Form1/TextButton1#OnClicked (/)
(dcl-Form-Close test/Form1)
)
(dcl-Project-Import testdia nil nil)
(dcl-Form-Show test/Form1)