solidworks >> API VBA: Infinite Loop

by Corey Scheich » Fri, 29 Aug 2003 03:50:13 GMT

Why doesn't escape end an infinite loop in SolidWorks VBA Editor. It works
in the one for excel. Is there something else I could do.

Corey Scheich

solidworks >> API VBA: Infinite Loop

by Tony O'Hara » Fri, 29 Aug 2003 05:36:50 GMT

Ctrl-Break should work. (traditional 'Basic' program language method)


solidworks >> API VBA: Infinite Loop

by Corey Scheich » Fri, 29 Aug 2003 05:42:17 GMT

Gosh I wish I would have known that a long time ago. Would have saved me a
bit of trouble.



solidworks >> API VBA: Infinite Loop

by sldprt » Sat, 30 Aug 2003 02:01:29 GMT

my vb teacher did not tell a student that when we were writing a test.
he CTRL ALT DELETE to stop it.
i was laughing in my head.

Similar Threads

1. replace header text: get section data in header to halt infinite loop VBA - Word VBA

2. Problem with Form.ValidateChildren (infinite validation loop?)

 When attempting to use the form.ValidateChildren() with multiple validation 
errors the code appears to get in an infinite loop among the various 
validation subroutines.  With only one validation error on the form the 
problem does not appear to occur.  Thank you for your help on this issue.

Jeffrey A Heimberger, MCP
Information Systems Assistant 
Stark Area Regional Transit Authority (SARTA) 
Ph. 330-454-6132 x 526 -- fax 330-454-5476 
Voted #1 Transit in America 

3. Infinite loop querying remote WMI

4. Infinite loop with crystal control viewer

Here in my company we have been trying to figure out (for several days
already) what is the weird reason that is doing the crystal control
viewer (crviewer.dll) act this way.

When we are previewing a report (that is using an Access Database as it
source), we call this snippet of code...

    With CRViewer1
        .EnableDrilldown = False
        .EnableGroupTree = False
        .Top = 0
        .Left = 0
        .Height = ScaleHeight
        .Width = ScaleWidth
        .Zoom (100)
        .DisplayBackgroundEdge = True
        .DisplayTabs = False
        .ReportSource = m_crReport
        .ViewReport 'Here, the VB.EXE Process jumps to 100% usage
    End With

Just after we call CRViewer1.ViewReport method, the application hangs
and VB6.EXE jumps in the CPU Usage (verified through Task Manager).

There is no way to close the app (or Stop VB6), the only way to start
again is kill the process and start again... It's getting us crazy!

Here is some information about our environment
- Running on W2K
- Applied latest set of MDAC and OLEDB JET libraries (just in case it
was an Access problem) - Jet 4.0 Service Pack 8 -
- This error happens regardless whether we are in the VB IDE or if the
app is compiled.

Please, if anyone had experienced a similar problem, I would really  be
thankful for your help.

Any idea would be appreciated.

5. Calling code in DLL that has an "infinite Loop" - Visual Basic/VB

6. Infinite While Loops

Try this...

     While ucase(right(select.text, 10) <> "EVENT DATE"
             Selection.MoveRight Unit:=wdWord, Count:=1, Extend:=wdExtend


7. Weird infinite loop - Visual Basic/VB

8. XP Setup in an infinite loop

I tried to repair XP by upgrading it.  Hoping to install a good copy over a 
suspect one and not have it destroy all my installed programs and files.  At 
the 39th minute of the setup procedure I received a Fatal Error warning.  The 
setup stop, shows me the setup error log, then it closes out and reboots the 
computer.  The computer starts at the exact same place and repeats the 
process.  It is like an infinite loop.  I have pushed every F-key and I have 
shut off the computer and turned it back on to no avail.  It startsd the 
process over.  How can I stop this?  I would rather run a buggy version of XP 
than to be in this infinite-loop Hell.