Visual Basic/VB >> Weird infinite loop

by augustorando » Fri, 05 Jan 2007 01:31:52 GMT

Hi!

I have a software server that uses Winsock API and connects to an
Oracle DB.

The server is located in a dual-core 3.6 Pentium D with 2 GB ram.

After some - random - time, sometimes less, sometimes more, the CPU use
of the process goes to 100% (50% of the CPU which is responding) and
the server stops responding (it appears as "not responding")

I have reviewed the code lots of times, all the loops are double -
checked, but I can't find any solution.

Any ideas?



Visual Basic/VB >> Weird infinite loop

by Schmidt » Fri, 05 Jan 2007 02:36:03 GMT


< XXXX@XXXXX.COM > schrieb im Newsbeitrag



Please post the Code of your Winsock-API-Loops.

Olaf




Visual Basic/VB >> Weird infinite loop

by PeterD » Fri, 05 Jan 2007 03:15:48 GMT





Post the code...


Visual Basic/VB >> Weird infinite loop

by Saga » Fri, 05 Jan 2007 03:22:02 GMT


Just because your app appears to be in an infinite loop does not
mean that it is because of one of your loops. It could also be
that certain events are firing in such a way that it is them who
are in the infinite loop.

In any case, as others have said... post your code.

Regards,
Saga








Similar Threads

1. API VBA: Infinite Loop

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


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

3. Infinite loop querying remote WMI

I am using a GetObject statement to read the WMI on a remote pc. 

If the WinMgmt service is not working properly (remotely) the VB code hangs 
with a message ("waiting for an OLE.." etc etc).

As this is not an error message the VB code is not capturing it and will 
progress no further and not allow me to quit out.

Any Ideas?

Otherwise - is there a way to return the remote RAM of a pc without using WMI?

Matt

4. Infinite loop with crystal control viewer - VB Crystal Report

5. Calling code in DLL that has an "infinite Loop"

Hello,

I'm trying to tie some hardware my company builds into a PC.  I'm running
Win98 on the PC and can access my hardware C++ functions in a DLL.  Right
now I'm checking if the hardware puts up some information then when the PC
gets around to it, it reads the informaiton.  This is leading to a lag in
data because the PC can get busy with other things and not read the data
right away.

I'm wondering if there is a way to start a routine in the C++ dll that uses
a near infinite loop to "interrupt" the vb6 program when data comes in by
putting the data into something like text box.

I am not creating driver DLL yet, just a C++ program compiled into a DLL.

Can this be done?  Would someone have some advice on accomplishing this?

Thanks.

Mike


6. Infinite While Loops - Visual Basic/VB

7. 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.

8. GetWindow - Infinite Loop?