I was able to replicate the following error everytime.
Running FlashDevelop 4.0.4 RTM for Microsoft.NET 2.0 (R2337) with Windows XP SP3.
Information from IE: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident 4.0; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.4056.2152; .NET CLR 3.5.30729; .NET4.0C; .NET CLR 1.1.4322)
Don't currently have access to any other OS to test against.
In the test app to demonstrate the bug, the enable1.txt file (1.8 MB) can be found at this page:
http://bit.ly/Lti1D4 (redirects to a code.google.com page)
So, set a breakpoint on the line with trace("done"); in the code at the foot of this post.
Test Project and I get a big red cross inside a red square displayed in the locals panel, along with a dialog box saying:
Unhandled exception has occured in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.
A generic error occurred in GDI+.
Details
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat format)
at Aga.Controls.Tree.NodeControls.BaseTextControl.Draw(TreeNodeAdv node, DrawContext context)
at Aga.Controls.Tree.TreeViewAdv.DrawNode(TreeNodeAdv node, DrawContext context)
at Aga.Controls.Tree.TreeViewAdv.DrawRow(PaintEventArgs e, DrawContext& context, Int32 row, Rectangle rowRect)
at Aga.Controls.Tree.TreeViewAdv.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
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
----------------------------------------
FlashDevelop
Assembly Version: 4.0.0.0
Win32 Version: 4.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/FlashDevelop.exe
----------------------------------------
PluginCore
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/PluginCore.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3634 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.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
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3636 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.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
----------------------------------------
AirProperties
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/AirProperties.DLL
----------------------------------------
AS2Context
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/AS2Context.DLL
----------------------------------------
ASCompletion
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/ASCompletion.DLL
----------------------------------------
AS3Context
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/AS3Context.DLL
----------------------------------------
XMLCompletion
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/XMLCompletion.DLL
----------------------------------------
Aga
Assembly Version: 1.7.0.0
Win32 Version: 1.7.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Aga.DLL
----------------------------------------
ASClassWizard
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/ASClassWizard.DLL
----------------------------------------
BookmarkPanel
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/BookmarkPanel.DLL
----------------------------------------
BridgeSettings
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/BridgeSettings.DLL
----------------------------------------
CodeAnalyzer
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/CodeAnalyzer.DLL
----------------------------------------
CodeFormatter
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/CodeFormatter.DLL
----------------------------------------
Antlr3
Assembly Version: 3.1.3.42154
Win32 Version: 3.1.3.42154
CodeBase: file:///C:/Program%20Files/FlashDevelop/Antlr3.DLL
----------------------------------------
CodeRefactor
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/CodeRefactor.DLL
----------------------------------------
DataEncoder
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/DataEncoder.DLL
----------------------------------------
fdb.j4n
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/fdb.j4n.DLL
----------------------------------------
jni4net.n-0.8.4.0
Assembly Version: 0.8.4.0
Win32 Version: 0.8.4.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/jni4net.n-0.8.4.0.DLL
----------------------------------------
FileExplorer
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/FileExplorer.DLL
----------------------------------------
FlashConnect
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/FlashConnect.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
----------------------------------------
FlashDebugger
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/FlashDebugger.DLL
----------------------------------------
FlashLogViewer
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/FlashLogViewer.DLL
----------------------------------------
FlashViewer
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/FlashViewer.DLL
----------------------------------------
HaXeContext
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/HaXeContext.DLL
----------------------------------------
jni4net.n.w32.v20-0.8.4.0
Assembly Version: 0.8.4.0
Win32 Version: 0.8.4.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/jni4net.n.w32.v20-0.8.4.0.DLL
----------------------------------------
LayoutManager
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/LayoutManager.DLL
----------------------------------------
MacroManager
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/MacroManager.DLL
----------------------------------------
OutputPanel
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/OutputPanel.DLL
----------------------------------------
PHPContext
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/PHPContext.DLL
----------------------------------------
ProjectManager
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/ProjectManager.DLL
----------------------------------------
SwfOp
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/SwfOp.DLL
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
ResultsPanel
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/ResultsPanel.DLL
----------------------------------------
SourceControl
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/SourceControl.DLL
----------------------------------------
StartPage
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/StartPage.DLL
----------------------------------------
System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3634 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
TaskListPanel
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/TaskListPanel.DLL
----------------------------------------
ep8npvde
Assembly Version: 1.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
----------------------------------------
h7fkpkr3
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
----------------------------------------
net.sf.jni4net.jni.dynammic
Assembly Version: 0.0.0.0
Win32 Version: 0.8.4.0
CodeBase: file:///C:/Program%20Files/FlashDevelop/Plugins/jni4net.n-0.8.4.0.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.
Code:
package
{
import flash.display.Sprite;
import flash.events.Event;
import flash.utils.ByteArray;
public class Main extends Sprite
{
[Embed(source="enable1.txt",mimeType="application/octet-stream")]
private var myFile:Class;
public function Main():void
{
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(e:Event = null):void
{
removeEventListener(Event.ADDED_TO_STAGE, init);
// entry point
var b:ByteArray = new myFile();
var s:String = b.readUTFBytes(b.length)
trace("done");
}
}
}