473,657 Members | 2,493 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Virtual Memory

Ian
I have and Access 97 DB that prints a report that has many pages, sometime
about 800-1000 page, each page contains a colour picture along with text
boxes.

The pictures are displayed on the report but the DB only stores the path to
the picture. On the reports detail sections On Print event I have the code
([ImageFrame].Picture = [ImagePath]). Image path is the field that store the
picture location.

My problem is that when I send this report to the printer, it gets to about
350 pages, then runs out of virtual memory and closes Access.

I have tried increasing the Page File Size under the Performance Options.
Was Initial size 786 now set to 1500, Max was 1536 now set to 4000. This
made no difference at all, it still crashes at about page 350 of the Access
report just as it did before the changes.

I tried moving the code to the On Format event, then it flickers the
pictures on the screen for a while as it uses all the virtual memory, then
crashes before the report opens.

How can I print more than 350 pages?

Any suggestions would be apprecated.
Nov 12 '05 #1
5 3664
On Thu, 19 Feb 2004 23:47:56 -0000, Ian wrote:
...
My problem is that when I send this report to the printer, it gets to about
350 pages, then runs out of virtual memory and closes Access.
...


I've had a similar problem in the past on a much lower number of pages and
solved it by replacing the printer driver with an up-to-date version.

Peter

--
No mails please.
Nov 12 '05 #2
"Peter Doering" wrote
My problem is that when I send this
report to the printer, it gets to about
350 pages, then runs out of virtual
memory and closes Access.
I've had a similar problem in the past on
a much lower number of pages and
solved it by replacing the printer driver
with an up-to-date version.


If you are printing the images in reports, to avoid memory leakage, you
should also see MVP Stephen Lebans' http://www.lebans.com/printfailures.htm.
PrintFailure.zi p is an Access97 MDB containing a report that fails during
the Access formatting process prior to being spooled to the Printer Driver.
This MDB also contains code showing how to convert the contents of the Image
control to a Bitmap file prior to printing. This helps alleviate the "Out of
Memory" error that can popup when printing image intensive reports.

However, in my own experience in this area, the failures occurred with a lot
less than 350 pictures. Still, both suggestions are worth looking into.

Larry Linson
Microsoft Access MVP
Nov 12 '05 #3


Have you tried monitoring the amount of swapfile in use ?

It may be necessary to defragment your disk(s) in order for swapfiles to be able to grow to the sizes you
specify, and several of our customers have reported that a defrag resolved this problem for them.

There have been reports of memory leaks that may affect some approaches to handling images in Access Reports,
but it's not clear if that is the case here. Windows 9x/Me can be more susceptible to such issues, and
you can use the ‘Resource Meter’ on these platforms to see if you are reaching certain limits.

We've been able to generate reports of 1000+ pages with large images using our own image control (even
on Win9x), so it's certainly possible.

--
_______________ _______________ _______________ __________
http://www.ammara.com/
Image Handling Components, Samples, Solutions and Info
DBPix 2.0 - lossless jpeg rotation, EXIF, asynchronous

"Ian" <ia********@ntl world.com> wrote:
I have and Access 97 DB that prints a report that has many pages, sometime
about 800-1000 page, each page contains a colour picture along with text
boxes.

The pictures are displayed on the report but the DB only stores the path to
the picture. On the reports detail sections On Print event I have the code
([ImageFrame].Picture = [ImagePath]). Image path is the field that store the
picture location.

My problem is that when I send this report to the printer, it gets to about
350 pages, then runs out of virtual memory and closes Access.

I have tried increasing the Page File Size under the Performance Options.
Was Initial size 786 now set to 1500, Max was 1536 now set to 4000. This
made no difference at all, it still crashes at about page 350 of the Access
report just as it did before the changes.

I tried moving the code to the On Format event, then it flickers the
pictures on the screen for a while as it uses all the virtual memory, then
crashes before the report opens.

How can I print more than 350 pages?

Any suggestions would be apprecated.


Nov 12 '05 #4
Ian
I don't suppose I should be involved with any kind of advertising but I just
tried the DBPix and printed 8,000 pages with pictures without any virtual
memory loss. I still have concerns with portability but would like to say
how much I appreciate your help, both of you.
"Exponent" <ex******@hotma il.com> wrote in message news:4035dbed$1 @lala...


Have you tried monitoring the amount of swapfile in use ?

It may be necessary to defragment your disk(s) in order for swapfiles to be able to grow to the sizes you specify, and several of our customers have reported that a defrag resolved this problem for them.
There have been reports of memory leaks that may affect some approaches to handling images in Access Reports, but it's not clear if that is the case here. Windows 9x/Me can be more susceptible to such issues, and you can use the 'Resource Meter' on these platforms to see if you are reaching certain limits.
We've been able to generate reports of 1000+ pages with large images using our own image control (even on Win9x), so it's certainly possible.

--
_______________ _______________ _______________ __________
http://www.ammara.com/
Image Handling Components, Samples, Solutions and Info
DBPix 2.0 - lossless jpeg rotation, EXIF, asynchronous

"Ian" <ia********@ntl world.com> wrote:
I have and Access 97 DB that prints a report that has many pages, sometimeabout 800-1000 page, each page contains a colour picture along with text
boxes.

The pictures are displayed on the report but the DB only stores the path tothe picture. On the reports detail sections On Print event I have the code([ImageFrame].Picture = [ImagePath]). Image path is the field that store thepicture location.

My problem is that when I send this report to the printer, it gets to about350 pages, then runs out of virtual memory and closes Access.

I have tried increasing the Page File Size under the Performance Options.
Was Initial size 786 now set to 1500, Max was 1536 now set to 4000. This
made no difference at all, it still crashes at about page 350 of the Accessreport just as it did before the changes.

I tried moving the code to the On Format event, then it flickers the
pictures on the screen for a while as it uses all the virtual memory, thencrashes before the report opens.

How can I print more than 350 pages?

Any suggestions would be apprecated.

Nov 12 '05 #5
Here are some steps you must follow to eliminate/reduce the error you
are encountering:

1) Defrag your Hard drive. The temp printer output files Access
generates can be very large when they contain images.

2) Make sure the drive you point your Virtual Memory Manager to has
several hundred MB's of free space.

3) If you are still using Win9x then make sure you reboot before
printing.

4) You must turn off the "Loading Image" dialog via the Registry
solution here:
http://www.mvps.org/access/api/api0038.htm

5) Load the Images into the Image control from the Detail Section's
Print event NOT THE FORMAT EVENT.
If you follow the above steps and your Report still fails then here are
a couple of more solutions:

1) Upgrade to the latest version of Windows at the very least. Better
yet, upgrade to Access 2003 as well.
or
2) Use the PrintOUt method to only print out a limited number of pages
at a time. Repeat as required.
or
3) THis solution seems to look after most of the memory issues. At
runtime convert the Images to Bitmap format prior to loading them into
the Image control. Here is some sample code:
From: Stephen Lebans (St***********@ mvps.org)
Subject: Re: Images in Reports
View: Complete Thread (18 articles)
Original Format
Newsgroups: microsoft.publi c.access.report s
Date: 2002-09-16 18:46:39 PST
Bruce I finally got a chance to test your method last night. It helped
but only with the actual printing and not the Print Preview itself.
I was able to print the failed Report directly to the printer or to a
disk printer file so that's great! Don't get me wrong, it's still a good
thing because at least you can print the report!

Unfortunately Acess still runs out of resources when you page back and
forth through Print Preview.
I plan to spend some time onthis issue shortly.
Here is the code I use to convert any Jpeg, Gif, or Metafile into a BMP.
Rather than using one of my API solutions I have cheated and set a
Reference to Standard OLE Types type library in order to get at the
SAVETODISK method. But no ActiveX controls are required
Private Sub Detail_Print(Ca ncel As Integer, PrintCount As Integer)

Private ctr As Long

ctr = ctr + 1

Select Case ctr
Case 1
Me.Image10.Pict ure = CreateBitmapFil e("C:\A.jpg")

Case 2
Me.Image10.Pict ure = CreateBitmapFil e("C:\b.jpg")

Case 3
Me.Image10.Pict ure = CreateBitmapFil e("C:\c.jpg")
ctr = 0

Case Else
ctr = 0

End Select

End Sub

Private Sub Report_Open(Can cel As Integer)
ctr = 0
End Sub
Private Function CreateBitmapFil e(fname As String) As String

Dim obj As Object

Set obj = LoadPicture(fna me)
If Not IsNull(obj) Then

SavePicture obj, "C:\SL11-52"
DoEvents
End If
CreateBitmapFil e = "C:\SL11-52"
Set obj = Nothing

End Function

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Ian" <ia********@ntl world.com> wrote in message
news:lDzZb.143$ 8N6.90@newsfe1-win...
I don't suppose I should be involved with any kind of advertising but I just tried the DBPix and printed 8,000 pages with pictures without any virtual memory loss. I still have concerns with portability but would like to say how much I appreciate your help, both of you.
"Exponent" <ex******@hotma il.com> wrote in message news:4035dbed$1 @lala...


Have you tried monitoring the amount of swapfile in use ?

It may be necessary to defragment your disk(s) in order for swapfiles to be able to grow to the sizes you
specify, and several of our customers have reported that a defrag
resolved this problem for them.

There have been reports of memory leaks that may affect some
approaches to handling images in Access Reports,
but it's not clear if that is the case here. Windows 9x/Me can be
more susceptible to such issues, and
you can use the 'Resource Meter' on these platforms to see if you
are reaching certain limits.

We've been able to generate reports of 1000+ pages with large images
using our own image control (even
on Win9x), so it's certainly possible.

--
_______________ _______________ _______________ __________
http://www.ammara.com/
Image Handling Components, Samples, Solutions and Info
DBPix 2.0 - lossless jpeg rotation, EXIF, asynchronous

"Ian" <ia********@ntl world.com> wrote:
I have and Access 97 DB that prints a report that has many pages,
sometimeabout 800-1000 page, each page contains a colour picture along with textboxes.

The pictures are displayed on the report but the DB only stores the path to
the picture. On the reports detail sections On Print event I have
the
code([ImageFrame].Picture = [ImagePath]). Image path is the field that
store
thepicture location.

My problem is that when I send this report to the printer, it gets
to
about350 pages, then runs out of virtual memory and closes Access.

I have tried increasing the Page File Size under the Performance
Options.Was Initial size 786 now set to 1500, Max was 1536 now set to 4000. Thismade no difference at all, it still crashes at about page 350 of the
Accessreport just as it did before the changes.

I tried moving the code to the On Format event, then it flickers
thepictures on the screen for a while as it uses all the virtual
memory, thencrashes before the report opens.

How can I print more than 350 pages?

Any suggestions would be apprecated.



Nov 12 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2519
by: Luis Pinho | last post by:
Hi, I would like to know is there's any method that can give me the quantity of virtual memory being used my C# application. I search in the System.Diagnostics namespace but the amount of memory that I get from the different counter has nothing to do with the virtual memory showned in the Task Manager. Thanks,
3
10588
by: Gregor Wind | last post by:
Hello all, for my image processing application I need a large amount of virtual memory. I read, that it is normaly possible to get 2GB of virtual memory for each process and when you modify the boot.ini file it should be possible to get 3GB vitual memory for one process. I have tried to allocate nearly 2GB in my application, but I receive the SystemOutOfMemory Exception. It is only possible to allocate a little bit more than 1GB. I...
10
3801
by: VM | last post by:
How can I limit the use of the PC's virtual memory? I'm running a process that basically takes a txt file and loads it to a datatable. The problem is that the file is over 400,000 lines long (77 MB) and after a while I get the Windows message saying that the virtual memory's getting really low. Plus the machine gets really sluggish (with multi-threading). Is it possible to use the virtual memory until it reaches a certain limit and then use...
0
1378
by: Rob | last post by:
hi! i am running a aspnet-application on a machine with 1 gb ram. looking into the taskmanager, the aspnet_wp-process is going to use up to 60 megs heap memory and about 55 megs virtual memory. also there are up to 500 changes in pagefaults per second. the cpu-usage of aspnet_wp is varying between 25 and 95 percent. the taskmanager told me, there are about 700mb heap memory available. the memorylimit-value in my machine.config-file is...
3
1991
by: jtertin | last post by:
I was wondering how to manage Virtual Memory usage within a VB app. I have a form with a trend on it that takes ~40MB of virtual memory when it is loaded (depending on the amount of data being plotted). When the form is closed, the memory is still being used (even though I call the .dispose method of the chart object). Every time I re-open the same form, there goes 40MB more virtual memory. This memory is not released until the...
6
10719
by: zissop | last post by:
Hello I have a strange situation with my ASP.Net applications running on Windows 2003 Server x64. As soon as they get instantiated (a visitor hits a page). the virtual memory they allocate goes to something around 5GB! I can't explain the reason. I even made a very simple page (no Web.config, no global.asax, just text output) and it behaves the same. The applications uses 3 tier architecture with all (IIS, component, etc) running at 64...
1
1902
by: Michael Kansky | last post by:
I have a simple windows app written in VB.net. It has IE control on the form. Once IE control gets utilized by navigating to different www pages, Virtual memory used by the application rises and when garbage is collected the Virtual memory taken by the app stays the same and never gets released as long as the app is running. Physical memory, however is released upon garbage collection. Am i doing something wrong? Is there a way to...
0
1631
by: George2 | last post by:
Hello everyone, Sorry that this question is related to another question I posted some time before because I have some new findings and self-analysis. My question is why sometimes from perfmon on Windows, working set larger than virtual memory? I think virtual memory is the total size of memory (committed, reserved, shared, private) and working set is just the RAM touched by current process currently. Virtual memory should always larger...
3
3922
by: Adam Clauss | last post by:
We have an application which is fairly network intensive. During some stress testing, we had it setup to open approximately 300-400 TCP connections (outbound connections, we are a TCP client). Almost immediately upon starting and loading configuration information, the application starts opening up connections and the memory usage immediately skyrockets. With slightly higher numbers of connections, the application actually begins...
0
8421
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8325
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8742
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8518
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1971
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1734
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.