This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | 32 bit Dll will only load from inside the Netbeans IDE on a 32 bit system when using a Platform Application | ||
---|---|---|---|
Product: | apisupport | Reporter: | SBK_Lou |
Component: | Harness | Assignee: | Martin Kozeny <mkozeny> |
Status: | RESOLVED INCOMPLETE | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Class file to load DLL |
Description
SBK_Lou
2014-04-17 21:32:27 UTC
Also to note: using a 64 bit version of the DLL file on a 64 bit computer works perfectly in the Netbeans Platform Application. This is problem specific to 32 bit computers. So the DLL is in <module>/release/modules/lib/x86, good. The code that picks this up is in http://hg.netbeans.org/releases/file/default/o.n.bootstrap/src/org/netbeans/StandardModule.java#l647 as far as I can tell. The appropriate location then depends on values of System.getProperty("os.arch") and System.getProperty("os.name") my values are "amd64" and "linux" what are the values on 32-bit windows? My test on windows XP shows that arch is "x86" and name "windows xp". So your location is likely correct. Try to place breakpoint into the indicated method and see what is happening. Or at least enable logging, it should be something like -J-Dorg.netbeans.StandardModule\$OneModuleClassLoader.level=FINE on command line possibly without the backslash on Windows... I've just tried the sample application on Windows XP and the DLL was properly found. Then there was an error "Can't find dependent libraries" - probably the DLL depends on something else which is not present. But from the NetBeans point of view there is no problem, as far as I can tell. Waiting for reply: What version of Windows should I test the app on? Is XP OK? Reply that I found in my mailbox: > I found a solution to the problem. Still might need to be something that is > addressed within netbeans. > > I was able to get my dll (in <module>/release/modules/lib) with > dependencies on winUSB.dll in the system32 folder working if I created a > new netbeans platform application on the 32 bit computer from scratch. > > Any program that I start from the 64 bit computer and then transfer to a 32 > bit computer will not load the dll dependencies correctly. You can debug > them on the 32 bit computer but it will never work outside of the Netbeans > IDE. In such case this is more problem of the development support, rather than module system. Moving to apisupport category for further investigation. As I don't have 64 bit Windows I can only say that it works fine on Windows 7 32 bit. But I can see from email converastion, problem is when moving project between platforms. I will try to evalute it as I have opportunity on 64 bit architecture. Today I've tried to test, wheter application with its modules created on Windows 7 64 bit transfered to 32 bit version of Win 7 has problem with loading dll library and everything worked fine for me. So the problem is probably somewhere else. Closing as INCOMPLETE. Feel free to reopen if problem persists. |