Click here to Skip to main content
15,919,358 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
************** Exception Text **************
System.ArgumentException: Value of '0' is not valid for 'emSize'. 'emSize' should be greater than 0 and less than or equal to System.Single.MaxValue.
Parameter name: emSize
   at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
   at System.Drawing.Font..ctor(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet)
   at Microsoft.VisualBasic.Compatibility.VB6.Support.FontChangeSize(Font CurrentFont, Single Size)
   at Fanuc.frmPostConfig.ApplyFonts()
   at Fanuc.frmPostConfig.mnuPreferences_Click(Object eventSender, EventArgs eventArgs)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.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.9174 (WinRelRS6.050727-9100)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
FANUCT
    Assembly Version: 0.0.0.0
    Win32 Version: 0.0.0.0
    CodeBase: file:///C:/CAMWorksData/UPG-2/FANUCT.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9157 (WinRelRS6.050727-9100)
    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.9176 (WinRelRS6.050727-9100)
    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.9157 (WinRelRS6.050727-9100)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.9157 (WinRelRS6.050727-9100)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
Microsoft.VisualBasic.Compatibility
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.9157
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic.Compatibility/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.Compatibility.dll
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.9157 (WinRelRS6.050727-9100)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.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.


I receive this specific error message. I am having a heck of a time with it.

The Econtrol Syntax Editor is also acting up. This is killing me, I was getting pretty far with my post generator to use with Camworks.

What I have tried:

I've tried reinstalling the software and I have tried clearing my app data.

I have some screenshots if that might help

This started shortly after I updated my windows yesterday.
Posted
Updated 22-May-24 11:10am
v2
Comments
Dave Kreskowiak 22-May-24 15:14pm    
I'm sure I'm speaking for the entire community when I say, "What on earth are you talking about?"

What's a "UPG-2 post generator" and where did you get it from?
ReticDragon 22-May-24 16:04pm    
I apologize for the confusion. I use SolidWorks and CAMWorks to create models followed by .nc programs for lathes. I have been modifying my post processor .src and .lib files to alter the 'template" of how my program will utilize approach and retracts of the machine. As well as adding machine features such as the programmable tailstock and live tooling. I was almost finished with it, the last step I wanted to take was to add in some code for a Tool List generator and number the operation sequences instead of the tools.
After updating my windows yesterday, the .src compiler isn't creating the .ctl and .lng files for my post processors to read. Then it's also giving me multiple communication errors. This has put me behind about 4 hours today.
The software has instructions on making a .bat file to compile my posts. Attempting to fill in the blanks at the moment.
@ECHO OFF
CD "C:\CAMWorksData\UPG-2"
compile.exe "C:\Post\fanuc.src" "fanuc.src" "C:\Post\master.atr" "C:\post\ctl" "S" "C:\CAMWorksData\UPG-2" "" ""
Dave Kreskowiak 22-May-24 21:09pm    
Stuff like this is better asked on SolidWorks sites.
ReticDragon 22-May-24 22:10pm    
It was honestly the first place I went. Really hard to find answers about this
Dave Kreskowiak 22-May-24 23:41pm    
I wouldn't expect an answer to this here. You're probably the first person to ask about programming SolidWorks in the 21 years I've been around here.

1 solution

Contacted the software company, IT gave me a link with the most up to date software version, reinstalled and the problem went away. Back to coding my post processors again.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900