Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

Now when I load up Theme Editor I get a Out of Memory error when I have more than enuff like 16gb system memory so I don't think that is the problem.

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************

System.OutOfMemoryException: Out of memory.

at System.Drawing.Graphics.CheckErrorStatus(Int32 status)

at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttrs, DrawImageAbort callback, IntPtr callbackData)

at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttr, DrawImageAbort callback)

at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttr)

at c.w(Graphics A_0, Boolean A_1)

at u.d(Graphics A_0, String A_1, Single A_2, Boolean A_3)

at o.a(Graphics& A_0)

at o.ap()

at o.b(Object A_0, TreeViewEventArgs A_1)

at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e)

at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv)

at System.Windows.Forms.TreeView.WmNotify(Message& m)

at System.Windows.Forms.TreeView.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.5448 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

----------------------------------------

ThemeEditor

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/GameEx/ThemeEditor.exe

----------------------------------------

Microsoft.VisualBasic

Assembly Version: 8.0.0.0

Win32 Version: 8.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll

----------------------------------------

System

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.5447 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

System.Windows.Forms

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)

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.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

System.Runtime.Remoting

Assembly Version: 2.0.0.0

Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.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.

Posted

Ok I found out why it's because of too many Theme_Background images created by the theme editor and it can't handle that many. Ben looks like a bug in the Theme Editor that needs to be squashed. I deleted all the Theme_Background images that were created and now the editor runs just fine.

???

Posted

Headkaze have you had a chance at all to investigate this bug? Not sure if you are aware of it since I haven't heard anything back from you on this.

Thanks!

Posted

It's not your memory that's the issue. It's the contingency that's likely the problem, triggered by a recent flood of data with the additional emu slots.

Posted

Not sure if this is of help, but check out this link. Item #2 of the last response is as follows:

"If you're dealing with a lot of large images, you may need to cache these images and load them from file only when necessary. I ran into this problem when trying to store 500x500 images in a collection of about 3000 classes (oops). Just add a property that saves the image to file (probably in your AppData) when set and loads this file when requested (get)."

Assuming that something similar may be taking place, could it be that the cache for the images is not setup large enough to handle so many?

Posted

Probably. 255 form images is an awful lot (assuming that's what's happening here) but so is 255 emulators worth of database. Either way the handling needs addressing for sure. :)

The plus for me is that clipboarding 1000s of huge images and resizing them will likely be a problem unless I snap, save, alter, and save again. This was a good lesson before I hit the same bug myself. :)

Posted

There are so many emulators and systems that are being added and or emulated these days so having room for more is always a good thing.

Posted

Ben will probably figure it out in 10 seconds. Boy would I like to pick that guy's brain! Lol!

Posted

Well I think I might of stumped him as I haven't heard anything from him on the issue as I've seen him on here, but he hasn't responded. Guess he's waiting til he's got a solution/fix.

;)

Posted

Nah he hasn't been around much lately (or at least not while I've been here). Hopefully he and Flash are busy porting Jungool to Android! ;)

Guest
This topic is now closed to further replies.
×
×
  • Create New...