明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
楼主: baitang36

[经验] 把任意文件打包到lsp程序中[汇编语言版]bin2lsp

  [复制链接]
 楼主| 发表于 2022-8-6 13:34:01 | 显示全部楼层
MUSIC-DIE 发表于 2021-9-4 13:31
怎么做的啊?    遇到了大文件打包  不能编译的问题了

试验过6M以下打包没问题,太大有时会莫名出错。可能是adobe的问题
发表于 2022-8-6 14:13:19 | 显示全部楼层
baitang36 发表于 2022-8-6 13:34
试验过6M以下打包没问题,太大有时会莫名出错。可能是adobe的问题

桌子的程序大了确实会死机,但我没看到是多大的限制。bricscad有明确的限制
VM_MAXIMUM_MEM


On a typical machine, the memory block pre-allocated for LISp is around 256 MB - this is sufficient for 99% of all Lisp applications.
Nevertheless, we got around 2...3 cases reported by Lisp developers, where this memory was not sufficient, and an "out-of-memory"situation happened.

Usually, such LISP code temporarily required some more memory for huge list data ... normally, fixing and redesigning the way way as such huge amount of data is to be processed will prevent such out-of-memory cases.

But if necessary, the amount of reserved LISP memory can be adjusted by VM_MAXIMUM_MEM.



Arguments

integer number 0 ... 850, specifies the amount of memory to be used (0 means "automatically adjusted")

Default

0 - memory size is automatically adjusted, normally reserves ~256 MB as LISP memory

Example

VM_MAXIMUM_MEM # 400
will result in 400 MB LISP memory reserved

Remarks

effect of VM_MAXIMUM_MEM setting can be verified with (mem) function, which reports actual memory usage
回复 支持 1 反对 0

使用道具 举报

发表于 2024-10-19 12:01:14 | 显示全部楼层
是不是要先把要打包的文件转化成二进制,再用你这个程序打包?
 楼主| 发表于 2024-10-19 14:10:56 | 显示全部楼层
lxl304712346 发表于 2024-10-19 12:01
是不是要先把要打包的文件转化成二进制,再用你这个程序打包?

不需要,所有文件都可以打包
发表于 2024-10-19 17:11:36 | 显示全部楼层
baitang36 发表于 2024-10-19 14:10
不需要,所有文件都可以打包

我把打包生成的文件放在d盘就成功,放在其他盘显示“Error: Automation 错误 源 : ADODB.Stream 描述 : 写入文件失败。 帮助文件 : C:\Windows\HELP\ADO270.CHM - "SAVETOFILE"”     
 楼主| 发表于 2024-10-20 06:21:21 | 显示全部楼层
lxl304712346 发表于 2024-10-19 17:11
我把打包生成的文件放在d盘就成功,放在其他盘显示“Error: Automation 错误 源 : ADODB.Stream 描述 :  ...

权限问题,你的系统不允许。
发表于 2024-10-20 07:07:09 来自手机 | 显示全部楼层
携带的确方便,不错!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2025-8-16 16:07 , Processed in 0.250423 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表