Trouble with two DLLs

Hi all!
I compiled two DLLs with exactly the same signatures but different functions in the methods.
When I execute my application only the first DLL is loaded and I can only use the functions of this DLL.
The java code:
public class Dienst
private native String GetModulNameDLL();
public Dienst(String DLLName)
System.loadLibrary(DLLName);
public static void main (String args[])
Dienst BspModul2 = new Dienst("Modul2");
System.out.println("Modulname: " + BspModul2.GetModulNameDLL());
Dienst BspModul1 = new Dienst("Modul1");
System.out.println("Modulname: " + BspModul1.GetModulNameDLL());
The function GetModulNameDLL ist different in the files Modul2.dll and Modul1.dll. But every time I
execute the code I only get the value of GetModulNameDLL() of the File Modul2.dll for two times.
Thanks

That isn't going to work.
A class, which is different that the instance of a class, is loaded only once. And each method of the class is resolved only once. So in your first println() call the method is resolved, so it points to the first dll. The second call to println() does not try to resolve anything, it just calls what it is already attached to.
I am pretty sure there is no way to do this. For instance a class loader will actually load to instances of the class and resolve the method twice. However the problem is that the dll has exactly the same method signature - regardless of the class loader. Consequently the first dll will always be used to resolve the signature.

Similar Messages

  • TS1468 I am having trouble with two cover flows duplicating themselves more than once, is there anyone out there that can help me with this, they are not duplicated in my itunes library, just the ipod.

    I am having trouble with two cover flows on my IPOD, duplicating themselves more than once, they haven't duplicated themselves in my Itunes library, just the ipod, could anyone have any ideas on how I could fix this problem. I have tried so many times, even if I restore the ipod, it still does the same thing. Please if possible email me at [email protected] with any suggestions.

    Aha! I have sorted it.
    For those with similar problems, the solution is this:
    Macintosh HD > Library > Audio > MIDI Drivers
    Then delete DigiDioMidiDriver.plugin

  • IMessage trouble with two iPhones and one Apple ID

    Hi,
    I'm having trouble with iMessage after updating both of my iPhones to iOS 6 and not being able to use iMessage with one of the phones.
    Some background:
    -I have two iPhones, one on AT&T in the U.S., and one on NTT DoCoMo in Japan, both with separate phone numbers, using the same Apple ID.
    -The AT&T iPhone is a 4, the NTT is an unlocked 4S.
    On my 4 (AT&T), on iMessage, I have the option to send/receive as my U.S. phone number and my Apple ID. Works just like before updating.
    On my 4S (NTT), on iMessage, before I updated, I was able to send/receive using my Japanese number and Apple ID. After updating, I have the option to send/receive using my U.S. number and Apple ID. My Japanese number is greyed out and I cannot select it. When I turn on iMessage, it says "Waiting for activation..." and does not do anything. Turning iMessage off and on, some times I get an error message staying that activation cannot be completed.
    I have rebooted the phone multiple times, turned on/off iMessage and FaceTime, turned the Set Date & Time Automatically option on/off, and reset Network settings several times. Nothing works; iMessage will not activate on my NTT 4S. Please help!

    Finally resolved this issue after months of off and on troubleshooting.
    I have no idea exactly which steps "fixed" the issue, but here's what I did. None of the basic troubleshooting steps that are on here worked for me, and this is including restoring both phones in iTunes as a "last resort" step that two Apple technical service representatives suggested.
    I found a post on here from user "tungddao" who suggested:
    "Turn on iMessage then make a phone call to : 011+445773142076
                 With Facetime & Siri: 011+447786205094"
    I called both numbers with my NTT 4S, and both numbers hung up right away. I also texted both numbers, and the FaceTime one went through, while the iMessage number did not. I then checked my SMS blocking settings with NTT. There were no blocks, but I reset the settings to "unblock all" anyway.
    I was able to activate iMessage and FaceTime with my Apple ID and my NTT phone number. Halfway there.
    I then turned on my ATT 4, and while I could send/receive using my Apple ID and NTT phone number, the ATT number was greyed out, which was the opposite of what had happened before, when I could use the ATT number, but not the NTT one. On my NTT 4S, I could select my ATT number, but it was stuck on "verifying" for days, and I knew it wouldn't go through.
    So, I signed out of my Apple ID on iMessage and FaceTime on my ATT 4, and turned both services off. I turned on data roaming, and turned off WiFi. *This step was key to activating both services, as they would not activate over WiFi for some reason.
    I turned on iMessage and FaceTime without signing in to my Apple ID just yet. They both activated successfully, and then I signed into my Apple ID on both services, and from then on, I can use both numbers and my Apple ID on both phones! Finally!
    These are my current options:
    Phone 1 (4S on NTT): Phone 1's #, Phone 2's #, Apple ID
    Phone 2 (4 on ATT, roaming here in Japan on Softbank): Phone 2's #, Phone 1's #, Apple ID
    Hope this helps someone out there, as this issue was real frustrating for me.

  • Trouble with two hard drives including SMART failure

    About a week ago my mac mini g4 that I've had for less than 3 years, crashed while I was using itunes and playing music off an external usb drive.
    As a result there has been trouble with both drives:
    *Internal hard drive failure:*
    The internal drive would not boot and reported a fatal hardware error, with a SMART failure. Interestingly, when I start up the computer as a firewire target and run the same Disk Utility program, it does not report the fatal error. I was able to reformat this drive and it seems to now be booting and running fine.
    *External hard drive failure*
    The external hard drive worked intermittently and then died completely a few days later, where it is now unable to mount it at all.
    Does this mean I have two failed hard drives? The internal one seems to work fine and has for over a week, even though it still says there was a S.M.A.R.T. failure. When Disk Utility says there was a hardware failure, it prevents me from running the verify/repair functions. Is it possible that the external drive failure was somehow attributed to the internal drive?
    I think it is also strange that when I run the Disk Utility using firewire target, the internal hard drive tests fine.
    The message I get is:
    "This drive reported a fatal hardware error to disk utility. If the drive has not failed completely, back up as much data as you can and then replace it with a working drive."
    and at the bottom it says:
    "S.M.A.R.T. status: failing"
    Meanwhile it works just fine and my other external drive has failed altogether.
    I normally wouldn't question this error message, but the fact that the other drive failed more completely at around the same time, and that the error message doesn't show up when I run the disk utility on the internal drive via firewire makes me wonder if there are other factors. It's also just frustrating that I may need to replace both.
    Other things I have done is run the Apple Hardware Test, and everything passed. I also tried a PMU reset, and that didn't help.
    Should I just replace the internal hard drive or should I look for other problems?
    I appreciate any advice on this.
    Message was edited by: biz123

    I'm not aware of any firmware update for the PPC minis - I've not had any with either of my own that I recall.
    Of course future reliability is something you can never really check or fully assess, but the fact the system passes the hardware test tells us that the components which could have been responsible and which are not fairly easy to replace (the logic board, disk controller, PMU are all healthy. RAM could be a problem because the hardware test is not all that capable at revealing RAM issues, but it is also not likely to be the cause of this kind of problem. The PSU is obviously suspect to some degree, but is also replaceable.
    While it's not common to suffer multiple drive failures, the fact one was active and the other could easily have been paging would account for the result if either failed in that situation. Bad luck and not easy to reproduce if you tried, but not inconceivable.
    The fact that the internal rendered up your files while in FW target disk mode tends to indicate that the reason it wouldn't boot from that drive was not that the drive itself was trashed, but that the drive crashed during use - a circumstance which often creates catalog and file problems, and can certainly cause the system to fail in locating the MacOS install to boot from. In that situation, unless there is physical damage to the drive, it typically can be re-used with a reformat and reinstall, since of course that corrects the kind of catalog/file issues that this sort of crash typically causes. It would be expected to report 'verified' for SMART status though.
    There are a few reasons why a damaged external might not appear in Disk Utility, or refuse to mount, some of which are broad;ly similar - a crash causing file or catalog issues. The fact it was FAT32 would complicate the matter to a small degree since if the allocation tables weren't visible to the Mac due to corruption, the system wouldn't have any way to mount the drive. That said, while it would likely be visible to a PC, and may even render up files in data recovery, it wouldn't be reusable itself without a reformat, and could well produce I/O errors in the process. It would usually be amenable to reformatting though it might also need repartitioning depending on the damage done. The overheating you mention may be an indicator of a fault, or it may be that the drive is being pushed to all 3 read attempts with each data block - that would cause it to work very hard! If you have rescue the data you think you can get off it, I'd suggest you try a reformat. If that fails, use a utility such as FDISK to delete all the partitions and recreate them, then try formatting again.
    In terms of iTunes, any version will work, including 7.6. If music is stored on the external and that is USB connected, that would count for some speed impediment since iTunes is fairly cpu intensive, and the USB bus is also highly variable in performance, depending on CPU activity. But no, there is nothing in the latest version of iTunes that would cause a PPC to suffer such performance problems in itself, so you can use that quite safely. All are very cautious about this aspect of software design, since updates are often released to deal with stability or security issues, and must be usable for everyone.

  • Trouble with two tables and persistence

    Hi all,
    I would need your opinion on this:
    I have two tables:
    Table User (UID(PK), Uname, Pword)
    Table Choice (CID(PK), UID(FK), Cname, Cparameter1, Cparameter2)
    I have tried to put both together into one entity as described in: http://en.wikibooks.org/wiki/Java_Persistence/Tables#Example_mapping_annotations_for_an_entity_with_multiple_tables
    However, the trouble is that it doesn't work as I have hoped. I am unable to insert data into the user table alone, because it complains about missing entries for CID, Cname, etc...). I thought I would be able to query them independently, as 1 user can have many Choices.
    Any suggestions how to tackle this problem?
    Thank you.

    Ahh, I think I have figured out part of it but it isn't working yet. I created a view of the trk_user table. Now I need help with the code, I am trying to incorporate it here:
    SELECT webb.TRK_CALLS_VIEW.ID, webb.TRK_CALLS_VIEW.USER_, webb.TRK_CALLS_VIEW.ASSIGNED_TO, webb.TRK_CALLS_VIEW.PROBLEM, webb.TRK_CALLS_VIEW.SOLUTION, webb.TRK_CALLS_VIEW.STATUS, webb.TRK_USER_VIEW.lname, webb.TRK_USER_VIEW.fname
    FROM webb.TRK_CALLS_VIEW, webb.TRK_USER_VIEW
    WHERE
    ( STATUS = 'Open' and :P2_REPORT_SEARCH is null )
    or
    ( regexp_like( USER_ || '#' || ASSIGNED_TO || '#' || PROBLEM || '#' ||
    SOLUTION || '#' || STATUS, :P2_REPORT_SEARCH, 'i' ) )
    Can someone help me in the right direction

  • More trouble with CEReportSource.dll

    I am trying to move from CR 2008 SP2 to CR 2008 SP3.  
    For the CR 2008 SP2 version of our application, which runs our Crystal .rpt files, I used Visual Studio 2005.  I then created a Visual Studio .msi file, using the merge module (CRRuntime_12_2), to install this application on a target machine that had .NET Framework 2.0 and VC++ Redistributable 2005 SP1 installed.  If these two latter prerequisites were not installed, our install would fail because the CEReportSource.dll could not be registered.
    After installing CR SP3 on my development machine, I created a new Visual Studio project, again using Visual Studio 2005.  I used CRRuntime_12_3 as the merge module and everything else was the same. 
    However, I am now getting this same error message "CEReportSource.dll failed to register" when I attempt to install the SP3 version of the app on the very same machine on which I previously successfully installed the SP2 version.  (Yes, I uninstalled the SP2 version of the app before attempting to install the SP3 version.)
    I've done my fair share of Goggling and I am still stumped. 
    Got any advice?
    Thanks.

    Apparently there was a security vulnerability in ATL identified by Microsoft and they released an update for the Visual C++ 2005 SP1 Redist Package. See security bulletin MS09-035 and kb article KB973544.
    You'll need to install the updated Microsoft Visual C++ 2005 SP1 files before installing the CR 2008 SP3 runtime. The new vc_redist_x86.exe is available [here|http://www.microsoft.com/downloads/details.aspx?familyid=766a6af7-ec73-40ff-b072-9112bab119c2&displaylang=en].
    See if the following will help:
    1) Install the Microsoft Visual C++ 2005 SP1 Redist Package from here, http://www.microsoft.com/downloads/details.aspx?familyid=766a6af7-ec73-40ff-b072-9112bab119c2&displaylang=en
    2) Install the Crystal Reports 2008 SP3 runtime.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Trouble with DOMUserDefRef.dll

    Everytime I work on any VI that interacts with xml functions, I get a warning that DOMUserDefRef.dll is being loaded from an unexpected path. It is extremely annoying. It will pop-up as many as 7 times in a row before allowing me to work. It also will occur sometimes when I try to edit a VI's icon.
    I've tried repairing the Labview installation, but that did not help.
    Attachments:
    Screen Shot 2013-01-17 at 3.57.33 PM.png ‏42 KB

    Hi thutch, 
    Sorry about that. Here are the important parts of the post:
    1) Was the DOMUserDefRef.dll ever copied from its original location into a new location?
    2) Was the Internet Toolkit folder ever copied or moved to a new location?
    3) When LabVIEW was installed, was it installed to the default location? Or was it installed to a special directory?
    This issue may be due to the XML parser VIs, which are read only. Normally if you open a project and it loads a dll from a new location, it will save that new location and you won't get the warning anymore. However, the XML parser VIs are read-only. Therefore, the project can't update the dependencies for the XML parser VIs (such as New.vi). I would like to see if you can create a new project and avoid the problem. Please try the following:
    1) Restart LabVIEW
    2) Create a new empty project
    3) Create a new VI in the project
    4) In the blank VI, drop down New.vi on the block diagram (from Programming » File I/O » XML » XML Parser palette)
    5) Save the VI, and save the Project
    6) Close the Project
    7) Restart LabVIEW
    8) Open the Project that you just created. Do you still get the warning?
    If you don't get the warning about DOMUserDefRef.dll, then mass-compile your original project in LabVIEW. To mass compile, pleasefollow these instructions: http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/mass_compiling_vis/
    I hope this helps.
    David S.

  • Trouble with nican.dll

    Hi,
    I'm trying a communication CRIO with a driver by CAN, but the download of host VI to CRIO fail:
     - Failed to download ncOpen.vi
    -LabView:Failed to load shared library nican.dll
    ncOpenObject:E on RT target device
    I ready update nican.dll with 2.4 version
    regards
    RC

    Hi
    Make sure you have installed ni-rio 2.1 Here is the Link . Or ni-985x 1.2.1. Here is the Link.  NI-CAN supports only cRIO 900x controllers running Pharlap RT. There is no support for cRIO 90xx Controllers running Vx Works. The use of NI-CAN api functions makes only sense if you try to use the virtual interface for frame to channel conversion. Otherwise you have to use the FPGA elemental I/O to access the 985x  c-series modules. The cRIO drivers mentioned above install examples for these cases. The LabVIEW help describes the "How to".
    DirkW

  • Trouble with two computers connecting to wireless on WRT54G

    I am using a WRT54G router and I am unable to have two computers connected to the wireless at the same time. When one computer connects it will boot off the other computer and/or not allow it to connect. Both machines are macs and it switches between the both of them- it is not consistently one or the other who has the issue. Any ideas or suggestions? 

    You can try upgrading the router's firmware and then re-configure it...
    Go to website linksysbycisco.com/downloads.........insert model no of your router in serach tab......select proper version of your router........download the firmware file......save that file on desktop
    Follow these steps to upgrade the firmware on the device : -
    Open an Internet Explorer browser page on a computer hard wired to the router...
    In the address bar type - 192.168.1.1...Leave the Username blank & in Password use admin in lower case...
    Click on the 'Administration' tab- Then click on the 'Firmware Upgrade' sub tab- Here click on 'Browse' and browse the .bin firmware file and click on "Upgrade"...
    Wait for few seconds until it shows that "Upgrade is successful"  After the firmware upgrade, click on "Reboot" and you will be returned back to the same page OR it will say "Page cannot be displayed".
    Now reset your router :
    Press and hold the reset button for 30 seconds...Release the reset button...Unplug the power cable from your router, wait for 30 seconds and re-connect the power cable...Now re-configure your router... 

  • Trouble with two way calendar sync

    Recently my two way calendar sync stopped working?  Any ideas why?

    Its hard to tell.. Maybe some setting got thrown off during the update
    Please click the Thumbs Up icon if this comment has helped you!
    If your issue is resolved, please click the solution button on the resolution!
    Every BlackBerry should have BlackBerry Protect, get it now! | Follow me on Twitter | Bring Back BBM Music!

  • How do I add a desktop link to gmail?  I have one email account as my safari home page because it has trouble with apple mail, but I want a one-click link to two other email accounts.

    How do I add a desktop link to additional email accounts?  I have one email account as my safari home page because it has trouble with apple mail, but I want a one-click link on my desktop that takes me to two other email accounts.

    Can you set up a rule in your old account to forward mail to your new account and then delete it from the old account?
    (1012)

  • The updated iPhoto program is cumbersome.  I am trying to create a Christmas card and can't figure out how to get the fold of the card on the left and not on the top of the card.  I had no trouble with this for the past two years.  Can someone help?

    The updated iPhoto program is cumbersome.  I am trying to create a Christmas card and can't figure out how to get the fold of the card on the left and not on the top of the card.  I had no trouble with this for the past two years.  Can someone help?

    Click on the Layout button lower right and choose a Vertical lyout from the dropdown

  • I had trouble with a iTunes download.  Two songs of an album were not complete.  I contacted iTunes and yawl post the the download again.  My iTunes now has the complete copies.  The trouble is my iPhone will not accept/sync the complete copies.  What up?

    I had trouble with a iTunes download.  Two songs of an album were not complete.  I contacted iTunes and they redownloaded the tunes.  My iTunes now has the complete copies.  The trouble is my iPhone will not accept/sync the complete copies.  It will only play the original incomplete copies of these songs.  I've made new playlists and made sure I had the correct items checked to backup/sync.  Still only the incomplete copies are played via the iPhone.  What's up?  What can I do to get to the iPhone to sync the correct version?

    - Are you saying that they are not listed in your Purchased section?
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    - Are they listed in your Puchases history when you log into your account on your computer?
    - Are they still available now for purchase? If not then you are out of luck
    If they are still available and listed in your Puchase History then contact iTunes
    http://www.apple.com/support/itunes/

  • Trouble with TestStand running VB DLLs compiles in separate threads

    I have an application that uses DLLs written in VB 6 to manipulate hardware. The hardware is Stepper Motors controlled via the NI CAN bus card, and two instruments controlled via the GPIB PCI card. I have written the two DLLs to use the same NI PCI GPIB and the same NI CAN BUS card. (One instrument per DLL and One Motor per DLL)
    Test stand is then creating the DLLs and running them in separate threads. I have the one DLL Call in a subsequence running as a separate thread, and the other DLL is in the main sequence. I have a GOTO step with preconditions set so that the main sequence only continues after the separate thread in the subsequence is finished.
    The problem I am having is that these D
    LLs work OK when I run them both in the VB debugger. The program even works when I run the main thread in the debugger, and the subsequence is run compiled.
    The problem is, that if I try to run both of these DLLs compiled It seems as if the subsequence DLL never executes.

    To Tuxamation -
    Nothing comes to mind as to why this would happen. VB 6 automation DLLs are used all the time for code modules.
    Note that when MSVB debugs a DLL, it is actually running the DLL as an EXE server within the MSVB process and not in TestStand's process that is using it. I typically found that there is typically a subtle difference in behavior between running the server as an EXE or DLL server.
    A simple way to determine if the TestStand call is reaching your DLL is to place a MsgBox function call in the DLL entry point and immediately return, ie. bybassing your existing code.
    So, if the call is being made to your DLL, you could then enable the Visual Basic project option on the Compile tab, "Create Symbol Debug Info" and recreate your VB DLL.
    You can then attach Microsoft Visual Studio (C++ debugger) to the TestStand process, open the file that contains the entry point in to DLL that TestStand calls, set a breakpoint, and see if the breakpoint is reached.
    Scott Richardson
    Scott Richardson
    National Instruments

  • I'm having lots of trouble finding semi-decent equipment at an affordable price. I would like to start a podcast with two hosts and I have a macbook pro that i purchased in april 2011. any suggestions?

    I'm having lots of trouble finding semi-decent equipment at an affordable price. I would like to start a podcast with two hosts and I have a macbook pro that i purchased in april 2011. any suggestions?

    I should keep it simple - if you start getting involved with mixers and multiple microphones you will find the cost escalating  alarmingly. If you can get yourself a decent microphone and spend some time doing tests to find the best way of balancing the voices you should be able to get acceptable results. You can't plug an ordinary microphone directly into a Mac - you would need a mixer or a preamplifier - so it's probably worth looking at USB mics. I don't know what cost range is available, and you would have to check that they would work with your Mac. Otherwise you will need an ordinary moving-coil mic and probably a USB audio converter which can accept a microphone - look at the Roland site.

Maybe you are looking for

  • Loading data from R/3

    Hello, i'm new for APO demand planning. i'm trying to load the monthly data from R/3 to APO DP infocube, we have created a connection between R/3 and APO and we have mapped the transformation from datasource(2LIS_13_VDITM) to the infocube. i'm able t

  • PDF scanned by Epson v. Canon annotate by PDFPen (not)  viewable in Preview

    My question relates to the applications PDPen and Preview, and the scanners and scanning software of Epson and Canon. When I had an Epson print-scan-copy machine, I would scan originals into multi-page PDF files and I would page-number and annotate t

  • No option to save files, save as files in inDesign 5.5

    The option to save, save as and copy files are grayed out and not an option for me. I am having to save my files as IDML files and force quite inDesign to close it. I see that this has been a ongoing issue...but can't seem to find a real solution or

  • How can I fax directly from my MacBook Pro?

    I am interested in faxing documents directly from my MacBook Pro. How do I do that?

  • Duplex printing on 7510

    Is it possible to set up duplex printing on my photosmart all in one 7510 printer using my PC?