Original Post
I have been trying to use JAWT (AWT Native Interface) and I keep getting an error (even when I try the examples that are in the api). When I call the JAWT_DrawingSurface lock method it always returns with JAWT_LOCK_ERROR. Does anyone have an idea on how to fix this? (I have tried JDK 1.3, 1.4 and 1.5; none work :( ) code: ------------------------------ JAWT awt; JAWT_DrawingSurface* ds; JAWT_DrawingSurfaceInfo* dsi; JAWT_Win32DrawingSurfaceInfo* dsi_win; jint lock; ... lock = ds->Lock(ds); // lock always returns JAWT_LOCK_ERROR -----------------------------