Visio crash / bmp import.

A

Alon

Hello.
We have a mysterious crash, maybe someone can help.
In our application we display a visio viewer. Our users can reload this
viewer with different data.
Among the data we display the user can choose to display an image - bmp /
gif / jpg. In order to display the image we use ActivePage.Import(...);
Now, we suspect that when we have image as bmp, the reload is causing a
crash. We are not sure but it seems that for a gif (which is 2K) the clearing
of the viewer and repopulating it works fine, while with a bmp file (~50K) we
crash when we try to populate the viewer again.
The crash is when we try:
Window window = (Window)visDrawingControl.Window;
window.SetViewRect(Left,Top,width,height); --> Here we crash with an null
object reference exception.
Does anyone encounter such a scenario or can hint us in the way of dealing
images?
Thanks in advance.
Alon.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top