Bug 21192 - UnsatisfiedLinkError thrown when pressing a hardware key
Summary: UnsatisfiedLinkError thrown when pressing a hardware key
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: Other Windows XP
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: Christophe Cornu CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-02 18:53 EDT by Michael Brung CLA
Modified: 2002-08-21 15:32 EDT (History)
0 users

See Also:


Attachments
Testcase (775 bytes, text/plain)
2002-07-02 18:54 EDT, Michael Brung CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Brung CLA 2002-07-02 18:53:34 EDT
Using SWT 2047 on PocketPC I get an UnsatisfiedLinkError on OS.VkKeyScanW(S)S 
in Control#WM_KEYDOWN. OS.VkKeyScanW is not part of the 2047 SWT DLL for 
PocketPC (I believe the function does not exist on this platform).

If I comment the snippet below for PocketPC it works fine:

	for (int i=0; i<ACCENTS.length; i++) {
		int value = OS.VkKeyScan (ACCENTS [i]);
		if ((value & 0xFF) == wParam && (value & 0x600) == 0x600) {
			return null;
		}
	}
Comment 1 Michael Brung CLA 2002-07-02 18:54:08 EDT
Created attachment 1632 [details]
Testcase
Comment 2 Michael Brung CLA 2002-07-02 18:55:28 EDT
STEPS TO REPRODUCE

1. Execute the attached testcase. It brings up a Shell with 2 Menu items.
2. Press the four-way button in any direction.
3. Check into the console: an exception was thrown.
Comment 3 Christophe Cornu CLA 2002-07-03 11:30:16 EDT
Fixed released in CVS. Available v2048 and >.
Comment 4 Christophe Cornu CLA 2002-07-03 11:30:54 EDT
Close PR
Comment 5 Veronika Irvine CLA 2002-08-21 15:32:50 EDT
Fixed in 2.0.1.