Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Greg Pringle

Pages: 1 ... 6 7 [8] 9 10
106
I originally contacted them using the "info" email account on the contact page.

info @ bitwiseworks .com  (without the spaces)

Then I corresponded with Silvan S using his office email account.

107
General Discussion / Re: Change the Forum Headings?
« on: December 14, 2016, 06:29:25 pm »
OS/2 version 2.0 was the first version after the split. I still have a copy. The name Warp was used for version 3 a few years later.

108
I was told the donation could be old but a person would need to be in bitwiseworks database to be eligible.
An exception was OS/2 programmers.

109
The software is "free" but a donation is required to get a copy.
Sounds like a church having a concert where the concert is free but
a donation is required to get at ticket.

This practice does not violate the rules because it can be considered
the price of distribution but it is not clear  up front.

I have donated money the past but was not listed as a contributor by bitwiseworks
so they had an issue letting me have the latest Open Office. Reluctantly they
agreed without a donation so after they let me have it I sent another donation.

It looks like bitwiseworks.com is not getting enough money to pay for the
work they are doing.

110
Programming / Re: memory leak: libc066, _beginthread()
« on: October 03, 2016, 07:07:34 pm »
I have not run your program but can say the problem does exist if running java 1.6
also tested with theseus4
I wrote a new way to run threads that does not use the runnable interface and it solved the problem.

111
Programming / Re: Java Thread Memory
« on: October 01, 2016, 05:28:04 pm »
I found that Windows Virtual Machines also have the Thread issue with memory not being returned to the OS. The code I wrote to fix the problem for OS/2 Java 1.6 also works to fix Windows. Two stub methods are added to Classes to be able to use the new thread pool. Also this thread pool can be passed to dynamically added classes and methods. The other change is that the thread pool needs to be initialized at the beginning and ended at the end of the program. Otherwise your application will never stop. The threads that are put into the thread pool are added with a few lines that replace the way Runnable classes are started.

This is actually working and in production on OS/2, Linux, Widows, AIX and HP.

112
Hardware / Re: UVC Webcam Support for OS/2 in an SMP environment
« on: October 01, 2016, 01:29:30 pm »
Sounds like good work on the camera. It might be noted that standalone web cameras have a java interface in addition to the windows based web version. For this type of camera I hacked the interface and posted the results on another thread here that shows how to use standalone cameras by only having java installed in OS/2.

113
Programming / Re: Java Thread Memory
« on: August 03, 2016, 08:15:07 pm »
After spending time looking at the leak I decided to try and work around it.
I wrote a thread pool that uses reflection to start "threads" and otherwise the stared classes act like regular Threads.
Existing code needed only small modifications to use the thread pool since the code was working and
properly starting and stopping Threads.
What I also found was the garbage collector is not very smart. To make it work well the scope should not be expanded
too far and certainly not intertwined.
This made the running code stabilize after some time and stop claiming more memory. The IBM Java 1.3 does not need
the time to stabilize or the special thread pool.
The new code added will work with all the other platforms java so if they have the same problem they should also be fixed.
Now to update a large code base.

114
Programming / Re: Java Thread Memory
« on: July 21, 2016, 10:32:30 pm »
I should have mentioned that I like to run os/2 server applications and use java to do it.
I do have java applications that run for months or years between reboots using os/2 java 1.3

The problem of the leak in java 1.6 seems to be greater memory depending on the thread started and
in any case the applications fail quickly if many threads are started. Within days.

I have read about problems with java on other platforms but this particular issue has not been mentioned.

115
Programming / Re: Java Thread Memory
« on: July 21, 2016, 10:22:58 pm »
The most basic program that simply calls a thread will make the problem happen.

package aaa;

/**
 * @author: greg
 */
public class PrcTst {
   private class T implements Runnable {
      public T() {
      }
      public void run() {
         System.out.println("T");
      }
   }
/**
 * PrcTst constructor comment.
 */
public PrcTst() {
   super();
   try {
      for (int i = 0; i < 20000; i++) {
         T t = new T();
         Thread ms = new Thread((Runnable) t);
         ms.start();
         Thread.sleep(300);
         System.gc();
         ms.stop();
      }
   } catch (Exception e) {
      System.out.println(e);
   }
}
/**
 * @param args java.lang.String[]
 */
public static void main(String[] args) {
   PrcTst p = new PrcTst();
}
}

116
Programming / Java Thread Memory
« on: July 21, 2016, 07:24:27 pm »
Has anyone else noticed that every time a thread under java 1.6 for os/2 is run and ends the memory goes down by 4 k ?

I use Theseus4 to check memory usage by process and after a new thread ends there is 4 k more memory
used by the java vm. This is true when the thread is started directly or as a runnable class or an inner class.
It seems to be true for both low and high memory. Garbage collection seems to have no effect.

When using java 1.3 for os/2 the memory stabilizes after a few starts and stops.

117
Applications / Re: How to display how much ram is installed
« on: June 15, 2016, 10:31:11 pm »
I like Theseus4 from IBM because it lists usage by program.

118
Programming / Re: How to debug application driven CPU spike?
« on: June 07, 2016, 08:11:41 pm »
Clearly a bug in the CPU monitor. I have seen this on many os/2 smp monitors. some will even hang the system.

119
Hardware / Using various web cameras.
« on: June 06, 2016, 12:31:53 am »
There is a way to use most of the generic stand alone cameras. Almost all use the same internal software no matter who the "manufacturer" is.
There has been only 3 passwords for all the devices I have checked over the last 12 years. I hacked the cameras to find out how to use them.

Here is the a current setup which works for the current bunch. It has image and sound.
A batch file starts the process and calls a local "web page" to make it work.
The "DeviceSerialNo" is the password in this one.
Once the camera is setup (I use the other OS for that) it can be viewed with OS/2
The "RemotePort" number is what ever port has been configured in the camera.

@REM ===
SET CLASSPATH=
SET JAVA_HOME=D:\java16\jre
SET SWING_HOME=D:\java16\jre
SET PATH=D:\java16\jre\bin;D:\java16\bin;%PATH%
set BEGINLIBPATH=D:\java16\jre\bin;D:\java16\lib\dt.jar;D:\java16\lib\jconsole.jar;D:\java16\lib\tools.jar;%BEGINLIBPATH%
SET LIBC_HOOK_DLLS=D:\java16\LIB;%LIBC_HOOK_DLLS%
SET INCLUDE=D:\JAVA16\INCLUDE;
SET LIB=D:\JAVA16\LIB;
@REM ===
D:
cd camera
D:\java16\bin\appletviewer camera.html
exit


<HTML>
<!-- Document fd3.html created on Thu Jul 29 15:36:03 2004 -->
<HEAD>
<META NAME="generator" CONTENT="HTML Studio 1.50 for OS/2">
<TITLE>fdoor</TITLE>
</HEAD>
<!-- Body of the HTML document begins -->
<BODY>
        <APPLET name="cvcs" CODEBASE="http://111.11.111.11:49220/" archive="aplug.jar" CODE="aplug.class" WIDTH=640 HEIGHT=480>
        <!-- APPLET name="cvcs" CODEBASE="http://111.11.111.11:49220/" archive="aplug.jar" CODE="aplug.class" WIDTH=320 HEIGHT=240 -->
          <param name="RemotePort" value=49220>
          <param name="Timeout" value=5000>
          <param name="RotateAngle" value=0>
          <param name="PreviewFrameRate" value=2>
          <param name="Algorithm" value="1">
          <param name="DeviceSerialNo" value="YWRtaW46">
        </APPLET>
</BODY>
</HTML>

120
Networking / Re: Cannot start peer services
« on: June 03, 2016, 12:02:19 pm »
It has been many years since I used this feature but I do remember it will not start unless everything is "correct". That includes the order of things in protocol.ini
try looking at this:
http://www.mit.edu/activities/os2/peer/WARPPEER.HTM

Pages: 1 ... 6 7 [8] 9 10