[gstreamer-bugs] [Bug 604810] Gstreamer Related functions crash when a XMLSerializer has been created

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Dec 17 05:06:11 PST 2009


https://bugzilla.gnome.org/show_bug.cgi?id=604810
  GStreamer | gst-sharp | unspecified

--- Comment #6 from Maarten Bosmans <mkbosmans at gmail.com> 2009-12-17 13:06:09 UTC ---
To answer my own question (the second).
>From MSDN, for Assembly.Location:

The location of the loaded file that contains the manifest. If the loaded file
was shadow-copied, the Location is that of the file after being shadow-copied.
If the assembly is loaded from a byte array, such as when using the
Load(Byte[]) method, Location is an empty string ("").
Exceptions
SecurityException     The caller does not have the required permission.

So the correct solution would be to check for String.Empty and catch
SecurityException.
The lazy, and perhaps best, way out is of course to extend the try{} block
which we already use to also cover the offending line.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list