Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

EOutOfResourcesError when preview called

edited May 2006 in General
Any idea why we get an out of resources exception (Not enough storage is
available to process this command) when we call preview on reports....>

Call stack as follows....
Application:
-------------------------------------------------------
1.1 Start Date : Fri, 26 May 2006 16:42:17 +0100
1.2 Name/Description: ourapp.exe
1.3 Version Number : 1.0.3.307
1.4 Parameters :

Exception:
--------------------------------------------------------------------------
2.1 Date : Fri, 26 May 2006 16:42:51 +0100
2.2 Address: 00452553
2.3 Module : R6.exe
2.4 Type : EOutOfResources
2.5 Message: Not enough storage is available to process this command. .

Active Controls:
------------------------------------
3.1 Form Class : TppPrintPreview
3.2 Form Text : Print Preview
3.3 Control Class: TButton
3.4 Control Text : Close

Computer:
---------------------------------
4.1 Name : RSERVER
4.2 User : Administrator
4.3 Total Memory: 511 Mb
4.4 Free Memory : 74 Mb
4.5 Total Disk : 100.11 Gb
4.6 Free Disk : 94.02 Gb

Operating System:
---------------------------------------
5.1 Type : Microsoft Windows 2003
5.2 Build # : 3790
5.3 Update : Service Pack 1
5.4 Language: English (United States)

Call Stack Information:
---------------------------------------------------------------------------------------------
|Address |Module |Unit |Class |Procedure/Method
|Line|
---------------------------------------------------------------------------------------------
|773A9CE1|user32.dll | | |GetPropA
| |
|7C82F2FC|ntdll.dll | |
|RtlLeaveCriticalSection | |
|007E94CF|R6.exe |ppViewr.pas
|TppScreenDevice|CalculateScaledPageSize |1796|
|007E92B0|R6.exe |ppViewr.pas
|TppScreenDevice|CalculateScaledPageSize |1760|
|007E8EDE|R6.exe |ppViewr.pas
|TppScreenDevice|RenderFullBlankPage |1670|
|007E8E8C|R6.exe |ppViewr.pas
|TppScreenDevice|RenderFullBlankPage |1659|
|007E8C87|R6.exe |ppViewr.pas |TppScreenDevice|RenderPage
|1606|
|007E8BD0|R6.exe |ppViewr.pas |TppScreenDevice|RenderPage
|1589|
|007E834A|R6.exe |ppViewr.pas |TppScreenDevice|EventNotify
|1269|
|007370EC|R6.exe |ppComm.pas |TppCommunicator|SendEventNotify
|791 |
|00737088|R6.exe |ppComm.pas |TppCommunicator|SendEventNotify
|777 |
|007CC51C|R6.exe |ppClass.pas |TppCustomReport|DoOnNoData
|4094|
|007A41DC|R6.exe |ppCache.pas |TppCacheManager|TakeCacheAction
|419 |
|007A4462|R6.exe |ppCache.pas |TppCacheManager|CreateStreams
|520 |
|007CC464|R6.exe |ppClass.pas |TppCustomReport|DoOnNoData
|4080|
|00753005|R6.exe |ppEngine.pas |TppEngine |DoOnNoData
|2358|
|00752F70|R6.exe |ppEngine.pas |TppEngine |DoOnNoData
|2339|
|00752BBB|R6.exe |ppEngine.pas |TppEngine |Init
|2180|
|0074FD3E|R6.exe |ppEngine.pas |TppEngine |Generate
|545 |
|0074FD14|R6.exe |ppEngine.pas |TppEngine |Generate
|537 |
|0074FC52|R6.exe |ppEngine.pas |TppEngine |RequestPage
|510 |
|007B514B|R6.exe |ppReport.pas |TppReport |RequestPage
|1930|
|007DD383|R6.exe |ppDevice.pas |TppPublisher |DoOnPageRequest
|1233|
|007DD324|R6.exe |ppDevice.pas |TppPublisher |DoOnPageRequest
|1222|
|007DD077|R6.exe |ppDevice.pas |TppPublisher |Publish
|1043|
|007DD014|R6.exe |ppDevice.pas |TppPublisher |Publish
|1027|
|007C4448|R6.exe |ppProd.pas |TppProducer |PublishReport
|1341|
|007C44F6|R6.exe |ppProd.pas |TppProducer |PrintToDevices
|1398|
|007C44A4|R6.exe |ppProd.pas |TppProducer |PrintToDevices
|1388|
|007B502C|R6.exe |ppReport.pas |TppReport |PrintToDevices
|1891|
|007C5482|R6.exe |ppProd.pas |TppProducer
|PreviewFormActivateEvent |2020|
|0073ABD5|R6.exe |ppForms.pas |TppForm |Activate
|526 |
|0073ABAC|R6.exe |ppForms.pas |TppForm |Activate
|522 |
|007779A0|R6.exe |ppPrvDlg.pas |TppPrintPreview|Activate
|146 |
|773ACCE1|user32.dll | | |CallNextHookEx
| |
|773A9CE1|user32.dll | | |GetPropA
| |
|773AD015|user32.dll | | |SendMessageA
| |
|773ACFD1|user32.dll | | |SendMessageA
| |
|007C4681|R6.exe |ppProd.pas |TppProducer |PrintToScreen
|1508|
|007C45FC|R6.exe |ppProd.pas |TppProducer |PrintToScreen
|1485|
|007C4311|R6.exe |ppProd.pas |TppProducer |Print
|1283|
|007C42B0|R6.exe |ppProd.pas |TppProducer |Print
|1271|
|007B3EAD|R6.exe |ppReport.pas |TppReport |Print
|1042|

Comments

  • edited May 2006
    Looking into it a bit further, it only occurs when viewing full screen.
    Alos the machine only has 512mb ram and when I stopped pcanywhere then it
    was fine. I'd just say that a lack of memory is the problem despite the
    task manager showing 123mb available.

  • edited May 2006
    Hi Paul,

    Yes, this could be possible. What are the specifications of this report?
    Is this a large report? Is it a two pass report? Do you have CachePages
    set to True? Are there any large images present? How much data is being
    accessed at once? All of these factors can contrubute to memory usage. A
    couple things to try would be to disable the Report Outline and set
    Report.CachePages to False.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.