After trying many times to upload a whole system image with my
development environment I gave up and decided to try a different
approach. Since the main stepping stone for people to help me is the
need of VAC++ 4.0 I decided to continue the work on the Watcom branch
created sometime ago.
After some work, I was finally able to compile the whole SWT port
under Watcom + ant
1.5.4 + Java
1.3.1 . After that I began testing the
testcases. The first one works, meaning the JNI interface works. The
second test doesn't. The test creates a main frame and a client
window, but it only draws the window's borders and then it enters in a
loop where there is a WM_PAINT message being sent. The machine becomes
on the verge of freezing and it takes some luck to get it back. The
same test, using the DLL created with VAC++ 4.0 works just fine. The
Java sources are the same and so it's the C code.
The problem starts with a call to WinShowWindow. I'm pretty lost,
since I don't know where to start to look for answers. Maybe a
compilers option?, simply I can't imagine why I get a different
behavior from the same code on different compilers.
Here is the compilers options being used: