[ActiveX] Unhandled exceptions recreating AnnotationEditor

Discussions about annotation support.
User avatar
AgfaDev
Posts: 33
Joined: Thu Sep 12, 2013 7:48 am

Re: [ActiveX] Unhandled exceptions recreating AnnotationEdit

Post by AgfaDev » Wed Sep 25, 2013 8:26 am

I have installed 10.0.8 and tested the features.
Indeed the issue with annotations is fixed !!!
Thanks for the effort.

Question though:

Was this a general issue or was it specific for the Gupta environment?
When the last is the case, more detailed info on why there were issues with GdPicture and SqlWindows can help to improve the Gupta environment to be more compatible.

If you want you could send me a private message indicating what was the difference between say C++/VB6 using COM interface compared to SqlWindows concerning the handling of COM. This info, I could pass on to the Gupta developers to see if they can be more in line with those development environments.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: [ActiveX] Unhandled exceptions recreating AnnotationEdit

Post by Loïc » Thu Sep 26, 2013 6:05 pm

Hello,

Sorry for the delay.
The solution is quite hard to explain. Basically to fix the issue we've hooked the Windows messaging system in order to deliver only expected messages from your environment. Since we did not know the source code of gupta we had to trace the communication between the gupgta COM container and the GdPicture usercontrol and filtered the message that caused the crash. I think the fix is quite clean and should prevent similar issue in future released of Gupta.

Hope this clarify.

With best regards,

Loïc

User avatar
AgfaDev
Posts: 33
Joined: Thu Sep 12, 2013 7:48 am

Re: [ActiveX] Unhandled exceptions recreating AnnotationEdit

Post by AgfaDev » Thu Oct 10, 2013 12:05 pm

Hi,

I'm encountering issues now which might be related to the one which was fixed earlier.
(the annotation editor issue)

It seems that when closing a form on which the viewer and/or the thumbnail components are placed, the application gets unstable when
the form is closed.

It is not immediately visible, but after opening and closing forms containing the viewer/thumbs these issues can occur:

- The viewer component does not show any images, the canvas color is the same as the form color
- The environment crashes without any message
- A .NET error pops up, like this:

Code: Select all

************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at System.Windows.Forms.UnsafeNativeMethods.IOleInPlaceFrame.SetActiveObject(IOleInPlaceActiveObject pActiveObject, String pszObjName)
   at System.Windows.Forms.Control.ActiveXImpl.InPlaceActivate(Int32 verb)
   at System.Windows.Forms.Control.ActiveXImpl.OnFocus(Boolean focus)
   at System.Windows.Forms.Control.OnGotFocus(EventArgs e)
   at System.Windows.Forms.Control.WmSetFocus(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WmSetFocus(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.UserControl.WmSetFocus(Message& m)
   at System.Windows.Forms.UserControl.WndProc(Message& m)
   at GdPicture10.GdViewer.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ActiveXImpl.System.Windows.Forms.IWindowTarget.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I created a simple test source to show this.

The application creates a start-form with a button to start multiple viewer forms.
The viewer form only contains the GdViewer and the thumbnail component.
No actions are performed, only create the form and no methods or properties are set.

In all cases, every form (4 instances are created) is ok. The viewer has a black background.

Now close manually all viewer forms and press the button again to create the 4 forms.
In some cases a crash, in some only the viewer object is not black (so not working) or a .NET error pops up.

So i guess it seems related to the Annotation Editor issue. The environment combination does not clean up the instances and therefore makes it unstable.

Here is the source, you can open it in the demo version for Team Developer 6.1
Instability.zip
(1.01 MiB) Downloaded 315 times
I hope the issue can be found. Right now this is blocking as our application will open multiple viewers (and close them).

PS
I'm using the latest 10.0.13 version.

I also tested with only the viewer object and only the thumbnail object.
The testcase has issues on those tests. So it seems they both separately and combined are the cause.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: [ActiveX] Unhandled exceptions recreating AnnotationEdit

Post by Loïc » Sat Oct 12, 2013 5:05 pm

Hello,

problem fixed for the next minor release that will be published within four days.

With best regards,

Loïc

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: [ActiveX] Unhandled exceptions recreating AnnotationEdit

Post by Loïc » Sun Oct 13, 2013 12:12 pm

Hello,

The new version including the patch is available for download: https://www.gdpicture.com/download.php

With best regards,

Loïc

User avatar
AgfaDev
Posts: 33
Joined: Thu Sep 12, 2013 7:48 am

Re: [ActiveX] Unhandled exceptions recreating AnnotationEdit

Post by AgfaDev » Mon Oct 14, 2013 9:09 am

Yes, GdPicture 10.0.14 has fixed the issues in the Gupta environment.
Many thanks for this quick and efficient support !

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: [ActiveX] Unhandled exceptions recreating AnnotationEdit

Post by Loïc » Mon Oct 14, 2013 5:14 pm

You're welcome,

Please let me know soon if you encounter any other issue, my Gupta eval expires within 5 days :mrgreen:

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests