在Delphi 2009应用程序中使用xulrunner(gecko sdk)v1.9.1.4127浏览器
它成功运行并打开了请求的页面,但是...没有图像!另外,在日志中,我可以看到,该服务器已将所有HTML中使用的图像发送到浏览器!
这里的日志:
[08.10.2011 19:00:09]: Got command: index.html
[08.10.2011 19:00:09]: running game....
[08.10.2011 19:00:09]: s! Content-type: text/html, size: 31990
[08.10.2011 19:00:10]: browser: Waiting for 127.0.0.1…
[08.10.2011 19:00:10]: browser:
[08.10.2011 19:00:10]: Access violation at address 014DF56D in module 'xul.dll'. Read of address 00000014
[08.10.2011 19:00:10]: browser: Transferring data from 127.0.0.1…
[08.10.2011 19:00:10]: browser: Waiting for 127.0.0.1…
[08.10.2011 19:00:10]: Got command: game.css
[08.10.2011 19:00:10]: Content-type: text/css
[08.10.2011 19:00:10]: s! Content-type: text/css, size: 5124
[08.10.2011 19:00:10]: browser: Transferring data from 127.0.0.1…
...
[08.10.2011 19:00:10]: Got command: data/images/loading.gif
[08.10.2011 19:00:10]: Content-type: image/gif
[08.10.2011 19:00:10]: s! Content-type: image/gif, size: 9370
[08.10.2011 19:00:10]: browser: Transferring data from 127.0.0.1…
[08.10.2011 19:00:10]: browser: Connecting to 127.0.0.1…
[08.10.2011 19:00:10]: browser: Waiting for 127.0.0.1…
[08.10.2011 19:00:10]: Got command: jsiq.css
[08.10.2011 19:00:10]: Content-type: text/css
[08.10.2011 19:00:10]: s! Content-type: text/css, size: 422
[08.10.2011 19:00:10]: Got command: data/images/title.png
[08.10.2011 19:00:10]: Content-type: image/png
[08.10.2011 19:00:10]: s! Content-type: image/png, size: 27783
[08.10.2011 19:00:10]: Got command: data/images/defense/ac.jpg
[08.10.2011 19:00:10]: Content-type: image/jpg
[08.10.2011 19:00:10]: s! Content-type: image/jpg, size: 1912
我已经尝试了xulrunner的另一个版本(1.9.2.4259,1.9.2.4280),但是它们在js3250.dll中出现错误:
该如何解决呢?或者,如何知道-xul.dll错误的原因是什么?
最佳答案
当然,问题很容易解决:)
HTTPServer通过字符串提供所有文件数据,然后更改为通过流提供服务-一切都变得正常
关于delphi - xul.dll和图像中的异常未在delphi应用程序内的gecko浏览器中显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7697753/