Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8930337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:52:19+00:00 2026-06-15T08:52:19+00:00

Our product is an addin for Microsoft Office and we have some GUI in

  • 0

Our product is an addin for Microsoft Office and we have some GUI in it.

We use Graphics.DrawImage to draw images.

The problem is that we have a specific user that reported some issues with GUI not showing up in Microsoft Outlook, but in the same time it works fine in Microfot Word.

The error I see in the logs is:

System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
    at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
    at System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y, Int32 width, Int32 height)

I know that may imply on some kind of limited resources problem, but the thing is that the same GUI is running in Microsoft Word perfectly fine. Furthermore, the image that we try to draw is a 16×16 tiny icon.

Is there any kind of limitations that a specific process can have that might cause this?

Update: The issue occurred with a specific image that was not loaded properly from a file stream.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T08:52:21+00:00Added an answer on June 15, 2026 at 8:52 am

    When using a MemoryStream it’s important that the stream is kept alive during all usage of the image until the image is disposed. This is because the image needs to read sometimes from the memory area represented by the memory stream.

    If the stream is closed before the image is disposed the memory area may or may not become invalid.

    When you dispose the image the stream will be closed as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our product includes some custom hardware, that connects to a PC via USB. We've
In our product, we have frames that are basically three inheritance levels down from
We are adding some stored procedures to our product that can be called by
We have a company product (asp.net website) that gets compiled and distributed to our
With our product we have a simple backup tool for the sql server database.
Our product has got some different active branches in SVN. We are thinking to
I need to use externally hosted product images as the product image for the
I have code external to OpenERP that functions as an existing product pricing system.
We have a custom attribute that our previous developer (recently disappeared) has created in
First, some background: Our product needs to integrate with the Lotus Notes client by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.