是德科技
直播中

李秀云

7年用户 814经验值
私信 关注
[问答]

Active-X列表视图导致大量文件膨胀

在我们最新的项目(甚至是inruntime)上导入和运行使用ActiveX控件的程序时,我们一直在遭受严重的内存泄漏,并且无法解决问题。
我应该说这个项目正在运行Vee 6.01。
我们一直在与安捷伦讨论这个问题.Agilent承认了一个缺陷并为其指定了一个优先级,以便在将来的任何版本中都能解决。
我们正在等待听到的是ifAgilent将会产生一个6.02版本,如果这将包含一个修复程序。我们很快就会听到。最好的问候尼克-----原始消息-----来自:owner-vrf @ lvld。

回帖(3)

李秀云

2019-10-15 08:48:45
我在Windows 2000上使用Common Controls 6.0的Active-X列表视图。我在一天中的文件大小从2MB到32MB不等,在保存之间没有(或非常小的)编辑。
我检查了VEE文件,并且有93800个明显二进制的LINES被保存为ListView的“状态”。
其中一个小编辑是确保我在完成它时执行了aListView.ListItems.Clear(),这样就不会有任何状态要保存。
文件从5MB重复到10MB迭代。目前我持有大约10MB(但我肯定想回到2MB)。有没有人成功处理过Active-X膨胀?谢谢,--------
--------------------------------------------------
-----------这是由Majordomo管理的“vrf”maillist。
要向该maillist发送消息,只需发送电子邮件至“vrf@lvld.agilent.com”。
订阅和取消订阅是通过地址“vrf-request@lvld.agilent.com”完成的。如果您需要详细信息,只需将包含“help”文本的消息发送到“vrf-request@lvld.agilent.com”.---
--------------------------------------------------
----------------

以上来自于谷歌翻译


     以下为原文

  I am using an Active-X List View from Common Controls 6.0 on Windows 2000.
I have during the course of the day had file sizes ranging from 2MB to 32MB
with no (or very minor) edits between saves.  I have examined the VEE file
and there is 93800 LINES of apparent binary being saved as the 'state' of
the ListView.  One of the minor edits was to make sure that I executed a
ListView.ListItems.Clear() when I finished with it so that there wouldn't be
any state to save.  File went from 5MB to 10MB that iteration.

Currently I am holding at around 10MB (but I'd sure like to get back to
2MB).

Has anyone successfully dealt with Active-X bloat before?

Thanks,



---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------
举报

熊辉

2019-10-15 09:06:00
嗨,安东尼,我一直生活在这个问题上很长一段时间 - 这是一个难以置信的痛苦!
需要注意的一点是,如果您的代码正常退出(不是错误退出),您应该能够预防它。
如果即使正常退出也有问题,可以通过稍微改变代码来完成某些操作。
在这个主题上有一些旧消息,我将在今天晚些时候寻找(帮助任何人?)。
我也知道如果关闭调试版本,你可能会做得更好。不幸的是,开发需要调试器并且可能存在错误。这意味着程序膨胀有时会成为一个问题。
因为这个,我从来没有运行我正在积极编辑的代码副本 - 我总是制作副本并运行它。
就像我说的 - 多么痛苦!
尽管如此,我们可以比其他人编译更快.Barriewhoi -------------------------------------
--------------------------------这是由Majordomo管理的“vrf”maillist。
要向该maillist发送消息,只需发送电子邮件至“vrf@lvld.agilent.com”。
订阅和取消订阅是通过地址“vrf-request@lvld.agilent.com”完成的。如果您需要详细信息,只需将包含“help”文本的消息发送到“vrf-request@lvld.agilent.com”.---
--------------------------------------------------
----------------

以上来自于谷歌翻译


     以下为原文

  Hi Anthony,

I have been living with this problem for quite awhile - its an
incredible pain!  One thing to note is that you should be able to
prevent it if your code exits normally (not an error exit).  If you have
the problem even with a normal exit, something can probably be done by
changing your code slightly.  There are some old messages on this
subject which I will look for later today (help anybody?).  I also
understand that you might do better if you turn off the debugger
options.

Unfortunately, development needs the debugger and errors are likely.
This means program bloat is going to be a problem sometime.  Because of
this, I never run the copy of the code I am actively editing - I always
make a copy and run it instead.  Like I said - what a pain!  Still, we
can make a copy faster than others can compile.

Barrie
whoi

---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------
举报

李秀云

2019-10-15 09:21:11
巴里,谢谢你的回复,我很感激。
它证实了我在正确的轨道上。
我昨晚发现使用ListView的UF是错误的,但我没有注意到它,因为我在之前的使用中在UF上留下了一个错误引脚。
从那时起,事情似乎在表现自己,但我想在喊Eureka之前再多检查一下。再次感谢,-----原始信息-----来自:Barrie Walden [mailto:bwalden@whoi.edu]发送:
2001年11月13日星期二下午2:45到:Mohrenweiser,AnthonyCc:vrf@lvld.agilent.com主题:Re:vrf Active-X列表视图导致大量文件臃肿!嗨Anthony,我一直生活在这个问题上很长一段时间 -
它难以置信的痛苦!
需要注意的一点是,如果您的代码正常退出(不是错误退出),您应该能够预防它。
如果即使正常退出也有问题,可以通过稍微改变代码来完成某些操作。
在这个主题上有一些旧消息,我将在今天晚些时候寻找(帮助任何人?)。
我也知道如果关闭调试版本,你可能会做得更好。不幸的是,开发需要调试器并且可能存在错误。这意味着程序膨胀有时会成为一个问题。
因为这个,我从来没有运行我正在积极编辑的代码副本 - 我总是制作副本并运行它。
就像我说的 - 多么痛苦!
尽管如此,我们可以比其他人编译更快.Barriewhoi -------------------------------------
--------------------------------这是由Majordomo管理的“vrf”maillist。
要向该maillist发送消息,只需发送电子邮件至“vrf@lvld.agilent.com”。
订阅和取消订阅是通过地址“vrf-request@lvld.agilent.com”完成的。如果您需要详细信息,只需将包含“help”文本的消息发送到“vrf-request@lvld.agilent.com”.---
--------------------------------------------------
----------------

以上来自于谷歌翻译


     以下为原文

  Barrie,

Thanks for your reply, I appreciate it.  It confirms that I am on the right
track.  I found last night that the UF with the ListView was erroring, but I
hadn't noticed it because I had left an error pin on the UF in a previous
session.  Since then things seem to be behaving themselves, but I wanted to
do some more checking before shouting Eureka.

Thanks again,



-----Original Message-----
From:      Barrie Walden [mailto:bwalden@whoi.edu]
Sent:     Tuesday, November 13, 2001 2:45 PM
To:     Mohrenweiser, Anthony
Cc:     vrf@lvld.agilent.com
Subject:     Re: vrf Active-X List View causing massive file bloat!

Hi Anthony,

I have been living with this problem for quite awhile - its an
incredible pain!  One thing to note is that you should be able to
prevent it if your code exits normally (not an error exit).  If you have
the problem even with a normal exit, something can probably be done by
changing your code slightly.  There are some old messages on this
subject which I will look for later today (help anybody?).  I also
understand that you might do better if you turn off the debugger
options.

Unfortunately, development needs the debugger and errors are likely.
This means program bloat is going to be a problem sometime.  Because of
this, I never run the copy of the code I am actively editing - I always
make a copy and run it instead.  Like I said - what a pain!  Still, we
can make a copy faster than others can compile.

Barrie
whoi
---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------
举报

更多回帖

发帖
×
20
完善资料,
赚取积分