"Too many items in the combo box" exception in Reperier-Host

edited March 2017 in Bug Reports
I am getting this exception in the Repetier-Host in various conditions.

I have researched the problem and I think I found the problem.

In the "printer setting" "Connection" tab:
There is a "printer" drop down box. For some reasons this
drop down box has no value in it (null). When the software try to get its value it throw an exception.

The exception seems to be in the repetier-server read loop so it appears as socket error to the reader.

There is "default" printer. After getting my printer information from the Repetier-Server it creates <printer name>-local printer in the top print name. But the printer name is not populated properly. After connecting to the server it gets a value.

Way to recreate:
Make a fresh install of Repetier-Host. (Do not connect it to a printer with USB cable!)

Connect to Repetier-Server that have printer define in it.
Attempt to edit the printer setting.

Get some exceptions; See socket errors.

Best regards,

Michael

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.OutOfMemoryException: Too many items in the combo box.
   at System.Windows.Forms.ComboBox.NativeAdd(Object item)
   at System.Windows.Forms.ComboBox.OnHandleCreated(EventArgs e)
   at System.Windows.Forms.Control.WmCreate(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ComboBox.WndProc(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.1087.0 built by: NETFXREL4STAGE
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
RepetierHost
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/Repetier-Host/RepetierHost.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------


Comments

  • Yes, that is a problem that sometimes occurs and that I think I have solved for next release. It happens if the selected printer name is not available in the list of printers in server. But I wonder about OutOfMemory exception, Was quite sure it was only out of bounds exception.

    Does the server already have a printer defined, so list is not empty?
Sign In or Register to comment.