Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (274 - 276 of 3893)

Ticket Resolution Summary Owner Reporter
#1552 Wont Fix DriveSpaceFree reports free space of 0 for CD Jon jer826
Description

DriveGetFileSystem correctly reported a fs of CDFS. However, DriveSpaceFree reports free space of 0 and @error = 0. In Windows Explorer, Windows reports 665MB free. Is it possible that DriveSpaceFree does not handle CD-R / CD-RW correctly?

#1554 Rejected RegExp precompile handling Jon MrCreatoR <mscreator@…>
Description

It is not a secret that the use of regular expressions is divided into two phases:

  • Expression precompilation;
  • Execution of compiled expression with target text

Each of these phases takes precious time (processor ticks)... when dealing with large texts, compilation time is unimportant, but for short lines this time greatly exceeds the execution time, and any kind of regular expression optimization will not help here... the situation is exacerbated for the case when one expression is used in the cycle loop (for example, an array of lines) - each call leads to unnecessary recompilation of the same expression. Hence the need for a function to pre-compile the expression in the handle, which can then be applied to StringRegExp/StringRegExpReplace on a par with the very expression, most likely it will require a steam function to close the handle / free memory.

Following the PCRE man page, the engine supports this possibility.

Thanks.

#1565 Fixed Arrays as object properties; memory leak Jon trancexx
Description

If arrays are used with objects as e.g. properties some sort of memory leak occurs. This seems to be specific only to Array type. Example (monitor memory usage during execution):

$a = StringSplit("a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z", ",")

MsgBox(0, "", "start")
For $count = 0 To 10000
	$obj = ObjCreate("Scripting.Dictionary")
	$obj.add("test", $a)
	$obj = 0
Next
MsgBox(0, "", "stop")

For possible comparisons, VBS version would be:

a = Split("a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z", ",")
 
MsgBox("start")
For count = 0 to 10000
    Set obj=CreateObject("Scripting.Dictionary")
    obj.add "test", a
    Set obj = Nothing
Next
MsgBox("stop")

No leak there (or with some other languages).

Note: See TracQuery for help on using queries.