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 becoming a contibuting member by either clicking this text or the Patreon link on the right.

Patreon

If neither of those of work for you, you can donate any amount by clicking here.

Recommended Posts

Posted

Headkaze... I do have a (seemingly) working CPWizard panel display for mame but after noticing a text overlay I wanted to correct (button text was overlapping) I went into CPWizard to move the labels around and saved it. Upon exit from the editor you get the dialog box asking you if you wish to quit (and you confirm it) then I receive the following.

Object reference not set to an instance of an object at ah.c()
ah.b()
bs.a()

This is continually repeatable (and the CPWizard panel viewer still works fine under GameEx) but I'm not sure what it's complaining about.

Attached is my xml for my control panel. Wombat.xml

Posted

I've seen this in the past as well. I don't recall ever figuring out what was causing it, but I haven't seen it in a while. Perhaps you are running an older version of CPWizard?

Posted
I've seen this in the past as well. I don't recall ever figuring out what was causing it, but I haven't seen it in a while. Perhaps you are running an older version of CPWizard?

Nope.... take it as read that if I ever get an error then usually the first thing I do is check for the latest version. This error appears under the latest version.

Posted

On the up side, the only problem the error causes is that the user has to click ok. It doesn't have any side affects fortunately. I am pretty sure HK knows about this as I've mentioned it in the past, but if he sees this thread then maybe he'll take another look.

Posted

I tried your layout Wombat and couldn't get it to do that upon exit. These errors are usually very easy to fix but I do need a clue as to what circumstance causes it so I can replicate it here and catch it with the debugger. The problem is loading your layout then moving a label around and saving it again doesn't show an error for me.

Posted

Not sure what to tell you Headkaze... remember, this is in the editor so there's no debug log as far as I know (but let me know where it is if there's one and I'll post it)

Just tried it again (ver 2.14 which I believe is current)

Ran it from Windows. When started, maximized the window. Moved joycode1_button1 label down one grid point. Did the same for Joycode2_button1. Hit the FILE->SAVE option. Hit the FILE-EXIT option (and answered YES to the "Really Quit" dialog box) and got a similar error to before (the letters are now different but I wonder if in my experimentation last night I added and deleted an extra label that may give rise to this) i.e.


Object reference not set to an instance of an object at
ai.c()
ai.b()
bt.a()

Anyhoo, I started CPWizard up again and the labels appear to be where I moved them to and without doing anything else I did a FILE->EXIT, did the YES to the "Really Quit" dialog box again and got the same error.

This appears infinitely repeatable (based on a sample set of 5) ;)

Is there some extra option I can turn on or some debugging version you can pass me that I can run on my system to give you more clues?

***IMPORTANT UPDATE TO ABOVE***

Just playing around at random, I just found that if I toggle "Hide Desktop Using Forms" off (EDIT->OPTIONS-GENERAL->HIDE DESKTOP USING FORMS), then I DON'T get the error upon exit. If I go back in and toggle it on, then I DO get the error.... hope this helps. (That said, I have bugger-all idea what this option does... I think I was switching on and off everything when trying to get the panel to consistently show as per another thread a while back)

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