MLwiN Error

Welcome to the forum for MLwiN users. Feel free to post your question about MLwiN software here. The Centre for Multilevel Modelling take no responsibility for the accuracy of these posts, we are unable to monitor them closely. Do go ahead and post your question and thank you in advance if you find the time to post any answers!

Remember to check out our extensive software FAQs which may answer your question: http://www.bristol.ac.uk/cmm/software/s ... port-faqs/
Post Reply
lucyantie
Posts: 4
Joined: Wed Jul 27, 2016 3:21 pm

MLwiN Error

Post by lucyantie »

Hi All,

I'm a new MLwiN user and have installed MLwiN version 3. I got this error when trying to use one of the function in the Equations window:

"Unhandled exception has occurred in you application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.

Index and length must refer to a location within the string. Parameter name: length"

Can anyone please advice me what could be wrong with my MLwiN. Thanks in advance.

L
ChrisCharlton
Posts: 1354
Joined: Mon Oct 19, 2009 10:34 am

Re: MLwiN Error

Post by ChrisCharlton »

The version 3 of MLwiN currently included is a beta release, and so contains more bugs than usual. If you can provide reproachable steps to replicate the behaviour that you are seeing I will try to fix it for the final release. In the mean time you can switch to using the 2.36 version also currently included, which shouldn't have the problem.
lucyantie
Posts: 4
Joined: Wed Jul 27, 2016 3:21 pm

Re: MLwiN Error

Post by lucyantie »

Hi Chris,

Thank you for your reply.

I was trying to run the 12.2 Module: Cross-Classified Variance Components Model from this link https://www.cmm.bris.ac.uk/lemma/mod/le ... php?id=790. The error occurred when I tried to specify the response variable and levels of the model (in P12.2.1):
Click on the red yy to open the Y variable window
In the y drop-down list, select attain
In the N classifications drop-down list, select 3
In the classification 3 drop-down list, select schid
In the classification 2 drop-down list, select neighid
In the classification 1 drop-down list, select studid
Check that the window matches that shown below and then click done
And yes now I am able to continue the steps by switching to version 2.36.

Thank you! :P
guobl
Posts: 22
Joined: Wed Nov 18, 2009 12:25 pm

Re: MLwiN Error

Post by guobl »

I got similar error report on MlwiN 3. when I asked for trajectory for MCMC procedure. the popup window showed same message.
if I pressure the continue button, I have a pop up window with frame only.

if I press the detail button, I have following message. sorry a little bit long but pasted here for your reference.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at mlwin.Frmtraject.Frmtraject_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1076.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
mlwin
Assembly Version: 1.0.0.0
Win32 Version: 3.00.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/MLwiN%20v2.36/x64/mlwin.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1075.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1068.2 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
mlnlib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/MLwiN%20v2.36/x64/mlnlib.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1067.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Gigasoft.ProEssentials
Assembly Version: 8.0.5695.24043
Win32 Version: 8.0.5695.24043
CodeBase: file:///C:/Program%20Files%20(x86)/MLwiN%20v2.36/x64/Gigasoft.ProEssentials.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.if
ChrisCharlton
Posts: 1354
Joined: Mon Oct 19, 2009 10:34 am

Re: MLwiN Error

Post by ChrisCharlton »

Thanks for letting me know about this. This bug should be fixed in the final release.
lucyantie
Posts: 4
Joined: Wed Jul 27, 2016 3:21 pm

Re: MLwiN Error

Post by lucyantie »

Hi Chris,

I have switched to MLwiN v2.36 and have no issue when I tried to model Cross-Classification with N classifications = 2.

However, the drop-down list seems not to be working with N classifications = 4. I've attached the image of both the drop-down available
N drop-down.jpg
N drop-down.jpg (21.53 KiB) Viewed 9943 times
and also the error
N drop-down error.jpg
N drop-down error.jpg (10.8 KiB) Viewed 9943 times
.

Please let me know is this also some kind of a bug or something else. Thank you.

LM
ChrisCharlton
Posts: 1354
Joined: Mon Oct 19, 2009 10:34 am

Re: MLwiN Error

Post by ChrisCharlton »

Sorry, there is currently a bug if you choose a number of levels that is one less than the maximum allowed. The workaround is to go to Options->Worksheet... prior to opening your data and increasing the maximum number of allowed levels to something higher.
lucyantie
Posts: 4
Joined: Wed Jul 27, 2016 3:21 pm

Re: MLwiN Error

Post by lucyantie »

Hi Chris,

Thanks for your reply. It's all sorted now.

Cheers!

LM
Post Reply