AlphaModder
-
Posts
4 -
Joined
-
Last visited
Posts posted by AlphaModder
-
-
Awesome. Especially as I'm already familiar with VS. Thanks!
-
So, I have an effect I'd like to program, and after finding CodeLab, I find it doesn't support dynamic UI controls, which I need, so I am trying to write a plugin in C# just using references to the Paint.NET assemblies, I.e. PaintDotNet.exe, PaintDotNet.Core.dll... and so on. Anyone know if this is possible, and if so, any pointers? (pun intended).
-
I was texturing in paint.net casually, and i selected an area and hit brightness and contrast, then -boom-
"An unhandled Exception Has Occured In Your Aplication"
the error report in the dialog was as follows:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
PaintDotNet.Threading.DispatcherException: This method may only be accessed from the thread that the dispatcher is affinitized to
at PaintDotNet.Threading.DispatcherExtensions.VerifyAccess(IDispatcher dispatcher) in D:\src\pdn\pdn_35x\src\Base\Threading\DispatcherExtensions.cs:line 24
at PaintDotNet.SystemLayer.ControlDispatcher.Control_HandleCreated(Object sender, EventArgs e) in D:\src\pdn\pdn_35x\src\SystemLayer\ControlDispatcher.cs:line 153
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Form.OnHandleCreated(EventArgs e)
at PaintDotNet.PdnBaseForm.OnHandleCreated(EventArgs e) in D:\src\pdn\pdn_35x\src\Core\PdnBaseForm.cs:line 1174
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmCreate(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at PaintDotNet.PdnBaseForm.OurWndProc(Message& m) in D:\src\pdn\pdn_35x\src\Core\PdnBaseForm.cs:line 1373
at PaintDotNet.PdnBaseForm.WndProc(Message& m) in D:\src\pdn\pdn_35x\src\Core\PdnBaseForm.cs:line 1337
at System.Windows.Forms.Control.ControlNativeWindow.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)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3634 (GDR.050727-3600)
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
PaintDotNet
Assembly Version: 3.510.4297.28970
Win32 Version: 3.510.4297.28970
CodeBase: file:///C:/Program%20Files/Paint.NET/PaintDotNet.exe
----------------------------------------
PaintDotNet.Base
Assembly Version: 3.510.4297.28957
Win32 Version: 3.510.4297.28957
CodeBase: file:///C:/Program%20Files/Paint.NET/PaintDotNet.Base.DLL
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3634 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
WindowsBase
Assembly Version: 3.0.0.0
Win32 Version: 3.0.6920.4021 built by: GDR
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/WindowsBase/3.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3637 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3639 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Core
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.1 built by: SP
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
PaintDotNet.Core
Assembly Version: 3.510.4297.28965
Win32 Version: 3.510.4297.28965
CodeBase: file:///C:/Program%20Files/Paint.NET/PaintDotNet.Core.DLL
----------------------------------------
PaintDotNet.SystemLayer
Assembly Version: 3.510.4297.28964
Win32 Version: 3.510.4297.28964
CodeBase: file:///C:/Program%20Files/Paint.NET/PaintDotNet.SystemLayer.DLL
----------------------------------------
PaintDotNet.Resources
Assembly Version: 3.510.4297.28964
Win32 Version: 3.510.4297.28964
CodeBase: file:///C:/Program%20Files/Paint.NET/PaintDotNet.Resources.DLL
----------------------------------------
PaintDotNet.Data
Assembly Version: 3.510.4297.28969
Win32 Version: 3.510.4297.28969
CodeBase: file:///C:/Program%20Files/Paint.NET/PaintDotNet.Data.DLL
----------------------------------------
PaintDotNet.Effects
Assembly Version: 3.510.4297.28970
Win32 Version: 3.510.4297.28970
CodeBase: file:///C:/Program%20Files/Paint.NET/PaintDotNet.Effects.DLL
----------------------------------------
CustomBrushesMini
Assembly Version: 2.1.4039.25699
Win32 Version: 2.1.4039.25699
CodeBase: file:///C:/Program%20Files/Paint.NET/Effects/CustomBrushesMini.dll
----------------------------------------
DragFrom
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/Program%20Files/Paint.NET/Effects/DragFrom.dll
----------------------------------------
EditableText
Assembly Version: 1.0.1.0
Win32 Version: 1.0.1.0
CodeBase: file:///C:/Program%20Files/Paint.NET/Effects/EditableText.dll
----------------------------------------
ExtendBorder
Assembly Version: 1.3.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Program%20Files/Paint.NET/Effects/ExtendBorder.dll
----------------------------------------
FindEdges
Assembly Version: 1.2.0.0
Win32 Version: 1.2.0.0
CodeBase: file:///C:/Program%20Files/Paint.NET/Effects/FindEdges.dll
----------------------------------------
Olden
Assembly Version: 1.5.0.0
Win32 Version: 1.5.0.0
CodeBase: file:///C:/Program%20Files/Paint.NET/Effects/Olden.dll
----------------------------------------
PrinterPlus
Assembly Version: 1.5.0.0
Win32 Version: 1.5.0.0
CodeBase: file:///C:/Program%20Files/Paint.NET/Effects/PrinterPlus.dll
----------------------------------------
SBCommon
Assembly Version: 3.0.0.0
Win32 Version: 3.0.0.0
CodeBase: file:///C:/Program%20Files/Paint.NET/Effects/SBCommon.dll
----------------------------------------
ThatOtherApp
Assembly Version: 2.2.0.0
Win32 Version: 2.2.0.0
CodeBase: file:///C:/Program%20Files/Paint.NET/Effects/ThatOtherApp.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
AnimGIF
Assembly Version: 2.4.4119.28305
Win32 Version: 2.4.4119.28305
CodeBase: file:///C:/Program%20Files/Paint.NET/FileTypes/AnimGIF.dll
----------------------------------------
ICSharpCode.SharpZipLib
Assembly Version: 0.86.0.518
Win32 Version: 0.86.0.518
CodeBase: file:///C:/Program%20Files/Paint.NET/ICSharpCode.SharpZipLib.DLL
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Developing an Effect Plugin Without CodeLab
in Plugin Developer's Central
Posted · Edited by AlphaModder
Okay, so after following that guide, i'm wondering how to use IndirectUI in it...?Got that, but can I use indirectui to validate values, i.e.. disable the 'OK' button when there are invalid values in the controls.
Also, is there a control to make a Button, like the 'randomize' ones inside of the dialog?