MarkerEvent

H

ha1o

Hi, I need help with a problem that I asked you some time ago but I reappear
again.

I am using MarkerEvent of the AxDrawingControl class. I create some row
action to the shapes to create objects like right-click menu items. At first,
I clicked those menu items on the shapes and nothing happes. Here I get
information about a patch that could solve the problem, the Shared Add-in
Update for Microsoft .NET Framework 2.0(KB908002).

When I ran the patch, it appeared that the problem was fixed. But, I have it
again. I ran the patch, I re-install Visio SDK, and Visio itself, I install
the Visio-SP2; and ran the patch every time, but the MarkerEvent doesn't
trigger when it should. I am thinkig to format the entire machine but I'm not
sure if that is going to work either.

Hope you can help me.
 
N

nbelyh

ha1o said:
Hi, I need help with a problem that I asked you some time ago but I reappear
again.

Do you use other visio events (except for MarkerEvent)?
- If yes, do they work?
- If no, may be you just have all visio events turned off?
You can check this in:
Tools--> Options --> Security --> Enable Automation Events.
 
H

ha1o

Hi

I checked that setting and it is on. I have other computer for testing
purpose and it works on that computer, but in my computer don't. The only
difference I see is that in my computer I have installer the full Visual
Studio .NET 2005 and in the other just the framework.
 
H

ha1o

Hello again

I made some progress, but maybe you know where I am. First I was working in
an application to draw circuits. This application is a WinForms and contains
a form that use the AxDrawingControl class. Now I create another C# project
with the same characteristics to draw Racks. This second application is the
one with the MarkerEvent problem.

The application use different shapes but these shapes have the same custome
properties, basically they work in both applications. My point is that if I
drop the any shape of any application in the first application, they work,
but if I do the same with the second application, the rack application, it
doesn't work.

And there is another thing, when I terminate the second application, it
throws an error that says something like this: 'The instruction at
"0x6108ae82" referenced memory at "0x00000050". The memory could not be
"read".' twice. The first application doesn't have this problem. I already
try to fix the problem replacing the AxDrawingControl object and reinstalling
the Visio SDK, but that memory error keeps coming out.

I think there must be a reference problem somewhere, but I don't know where
to look. I am even starting to think you can develop just one of this
application for machine! :(

Thanks for any help.
 
H

ha1o

Hello again

I made some progress, but maybe you know where I am. First I was working in
an application to draw circuits. This application is a WinForms and contains
a form that use the AxDrawingControl class. Now I create another C# project
with the same characteristics to draw Racks. This second application is the
one with the MarkerEvent problem.

The application use different shapes but these shapes have the same custome
properties, basically they work in both applications. My point is that if I
drop the any shape of any application in the first application, they work,
but if I do the same with the second application, the rack application, it
doesn't work.

And there is another thing, when I terminate the second application, it
throws an error that says something like this: 'The instruction at
"0x6108ae82" referenced memory at "0x00000050". The memory could not be
"read".' twice. The first application doesn't have this problem. I already
try to fix the problem replacing the AxDrawingControl object and reinstalling
the Visio SDK, but that memory error keeps coming out.

I think there must be a reference problem somewhere, but I don't know where
to look. I am even starting to think you can develop just one of this
application for machine! :(

Thanks for any help.

--Edited
The error that comes out when the program is terminated occurs only when I
open Stencil files in the second application, when I don't open stencil files
it works fine, but the shapes still does not trigger the MarkerEvent.
 

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