SWF中的内存(Flash Player) [英] Memory in SWF (Flash Player)

查看:227
本文介绍了SWF中的内存(Flash Player)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Flash播放器可以使用的内存大小是否有限制?如果你有一个随着时间的推移,从服务器获取大量的数据,那么越来越多的数据将被保存在内存中...这是有限制吗?

<不过,在桌面PC上运行的任何版本的Flash中,都没有这样的功能。只要您的应用程序使用更多的内存,桌面Flash将不断从操作系统请求,直到操作系统内存不足或崩溃。当然,开发人员应该适当地限制你的内存使用,但是Flash不会强迫你这样做。在Flash Lite中(为手机设计的手机版本),宿主应用程序会对内存使用量进行预先配置的限制,但这可能不是您所关心的。 :)


Are there any limitations on the amount of memory that the flash player can use? If you have a swf that over time gets a lot of data from the server, then more and more data will be kept in memory... Is there a limitation on this?

Thx, Lieven Cardoen

解决方案

Not in any version of Flash that runs on desktop PCs. As long as your application keeps using more memory, desktop Flash will keep requesting it from the OS, until the OS runs out of memory or something crashes. Of course you the developer should limit your memory usage as appropriate, but Flash won't force you to do so.

In Flash Lite (the mobile version designed for cell phones), the host application imposes preconfigured limits on memory usage, but that's probably not what you care about. :)

这篇关于SWF中的内存(Flash Player)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆