Uses Cleaner wizard - out of handles error for larger project
I am getting "out of handles" error & IDE hangs, when I try to use the "Uses Cleaner" wizard on my Delphi 2007 project having 3266 files.
However, as an alternative, I can open a handful of files in IDE and run this wizard with limited option to fix files currently opened in IDE.
As the number of files in my project are very large, I can not repeat the alternative way. Can someone tell me, how to fix larger number of Delphi files in a single run?
My environment details are:
CN Pack Version Used: 18.104.22.1684 Build 2015.08.15
IDE: Delphi 2007
Operating System: Windows 7 (64 bit) with 8 GB RAM
Number of files in a Delphi project: 3266
Thanks in advance.
[[i] Last edited by ajayrp at 2015-10-1 21:23 [/i]]
How Large the Project.
We'll consider how to optimize the clean action.
Could you tell us when did the "Out of Handle" occurs? After click "Process" Button in Dialog or click "Clean" Button in Result Dialog?
If a snapshot can be provided, it will help much.
Thanks for your reply.
Please find the attached PDF document with detailed steps & screenshots to reproduce this issue.
Before we do the clean, we call IDE's API to build the project to get all latest dcus. It seems Out-of-Resource when calling the building API. There's no other good ways to call building, I'll do some investigation more.
Thanks for looking in to it.
Actually, I am using below approach - but it is a bit mechanical, painstaking and time consuming. A better workaround is also welcome.
1. Open few files in IDE
2. Run the wizard on opened files
3. Save changes
4. Repeat above steps for next set of files
Now I do some optimization but still possible out-of-resource when do the processing after get check results. I'll build a new nightly-build version for testing.
The new nightly-build version 787 is available at [url]http://www.cnpack.org/downbuilds.php[/url]
Please help to download and verify it? If more problem occurs, please tell us.
Thanks for your continuous efforts in providing resolution to this issue.
I tested version 787, but no luck. It raised an "[i]access violation in vcldesigner100.bpl[/i]" and then raised same earlier errors: "[i]Code 1158[/i]" & "[i]Not enough times available[/i]".
:L Seems very difficult. I'll build a debug version 789 for testing, could you help us to capture the log?
789 debug version is ready. When run Delphi after installation, CnDebugViewer will popup and record the log. After bug occured, please stop CnDebugViewer and save the log to a xml file and send to me?
Could you please locate me the 789 build. It is not available at: [url=http://www.cnpack.org/downbuilds.php]http://www.cnpack.org/downbuilds.php[/url]
At the bottom of the page. or [url]http://www.cnpack.org/downbuilds.php?kind=debug&lang=en[/url]
The log generated by CnDebugViewer has some critical information like: project structure, source code files names, etc.
Due to some restrictions at our end, I cannot send out the log as is. Is there any way to generate thelog excluding this information?
BTW, When the access violation in vcldesigner100.bpl occurred the last log printed was:
[[i] Last edited by ajayrp at 2015-10-19 19:28 [/i]]
Powered by Discuz! Archiver 5.0.0
© 2001-2006 Comsenz Inc.
This one log is the last one but not useful. Could you find the "OS Exception' item in CnDebugViewer? Its items nearby maybe show the error call stack.