Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
In my VB.NET application on occasion when I try to print directly to a printer I get the error "not enough memory". But I have more than enough memory and the application is not that intesive is there anything else that could be the problem?
Posted
Memory leak, lack of disk space (affects Windows swap file), lack of memory on the printer, recursive functions being called to many times, or just a (un)helpful microsoft error that atually means something else. If its intermittent a memory leak or a recursive function call going wrong are most likely candidates.

Afraits

"The avalanche has started, it is too late for the pebbles to vote"

  • Administrators
Posted

Does this error occur randomly or after the application has been running for a while or after several attempts have been made to print? If so it could be a case of you not correctly freeing up the resources you are using during the printing (Pens, brushes, graphics objects etc).

 

Could you post the relevant printing code (or at least the bits where you allocate / free resources) as this may help people to identify the problem.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...