B
Bartje
I'm putting my first steps in the code access security
world and to run applications with different evidence.
I've been trying to write a hostapplication to give
assemblies a certain evidence and the hostapplication
seems to work well but when I close the application, I
get the following nullpointerexception:
Unhandled Exception: System.NullReferenceException:
Object reference not set to an instance of an object.
at System.Drawing.SafeNativeMethods.IntGdipDeleteFont
(HandleRef font)
at System.Drawing.SafeNativeMethods.GdipDeleteFont
(HandleRef font)
at System.Drawing.Font.Dispose(Boolean disposing)
at System.Drawing.Font.Finalize()
The strange thing is that is only appears when i host a
application with a form. For example: I've got 2
helloworld app's. One with a form with a "hello world"
label and one that writes "hello world" in the console.
the nullpointer only appears with the first application
(and also other applications with a form).
Is there someone who can help me to fix this prob?
thx a lot
bart
world and to run applications with different evidence.
I've been trying to write a hostapplication to give
assemblies a certain evidence and the hostapplication
seems to work well but when I close the application, I
get the following nullpointerexception:
Unhandled Exception: System.NullReferenceException:
Object reference not set to an instance of an object.
at System.Drawing.SafeNativeMethods.IntGdipDeleteFont
(HandleRef font)
at System.Drawing.SafeNativeMethods.GdipDeleteFont
(HandleRef font)
at System.Drawing.Font.Dispose(Boolean disposing)
at System.Drawing.Font.Finalize()
The strange thing is that is only appears when i host a
application with a form. For example: I've got 2
helloworld app's. One with a form with a "hello world"
label and one that writes "hello world" in the console.
the nullpointer only appears with the first application
(and also other applications with a form).
Is there someone who can help me to fix this prob?
thx a lot
bart