DocumentUltimateConfigurationMaximumStackSize Property
Gets or sets a value that specifies maximum stack size of threads, in bytes, which should be used when necessary.
Note that this should be set only if you get
StackOverflowException for some document conversions (e.g. PDFs with signed certificates).
When set, if current thread's stack size is lower than the value, a new thread will be created with the value
and the conversion will be done inside this thread to prevent
StackOverflowException.
The default is 0, which means disabled.
Namespace: GleamTech.DocumentUltimateAssembly: GleamTech.DocumentUltimate (in GleamTech.DocumentUltimate.dll) Version: 7.2.0
public int MaximumStackSize { get; set; }
Public Property MaximumStackSize As Integer
Get
Set
Property Value
Int32 DocumentUltimateConfiguration.Current.MaximumStackSize = 1024 * 1024; //1 MB (1048576 bytes)
DocumentUltimateConfiguration.Current.MaximumStackSize = 4 * 1024 * 1024; //4 MB (4194304 bytes)
DocumentUltimateConfiguration.Current.MaximumStackSize = 1024 * 1024 '1 MB (1048576 bytes)
DocumentUltimateConfiguration.Current.MaximumStackSize = 4 * 1024 * 1024 '4 MB (4194304 bytes)
<!-- Setting MaximumStackSize to 1MB in <appSettings> tag of Web.config -->
<appSettings>
<add key="DocumentUltimate:MaximumStackSize" value="1048576"/>
</appSettings>
<!-- Setting MaximumStackSize to 4MB in <appSettings> tag of Web.config -->
<appSettings>
<add key="DocumentUltimate:MaximumStackSize" value="4194304"/>
</appSettings>