X86 vs x64 socket issue

I created a program to read data from a MulticastSocket and if I run the application explicitly with the x86 version of Java, I have no issues. However, if I run it explicitly with the x64 version, my application starts fine, but I read no data.
Anyone have any idea as to why this would be the case? I know Java should compile both versions to the same byte code, but just to be sure, I compiled with the x64 javac and ran with the x64 java and still nothing. Again, x86 version works fine so it isn't a firewall issue. It didn't work on my 1.6.0_07(x86) and 1.6.0_10(x64) that were installed so to make sure it wasn't a modified path issue, I uninstalled both and installed the x86 and x64 JDKs for 1.6.0_13 and still the same issues.
Any help would be appreciated.
Stephen

sranger wrote:
Well, after some testing, it seems that the while(!ready) {} loop I was doingWas that loop literaly like this:
while (!ready) {
  // do nothing
}? If so, then you have two problems:
1.) It's very bad form to do busy waiting (that's what it's called). It wastes CPU time and is generally not a good idea
2.) If "ready" is not declared volatile, then the JVM is perfectly free to optimize away all but the first read accesses to "ready". This way it will never notice if the value changes.
while waiting for a UI element to be created will give the UI element CPU time if running as 32bit but if ran as 64bit, everything stalls.This sounds exactly as if "ready" is not volatile and the 32bit JVM optimized slightly different than the 64bit one.
I added a Thread.sleep(0); in the loop and it started working.A nasty hack. Replace it with a "real" fix, if at all possible.

Similar Messages

  • Dreamspark Windows 8.1 Pro x86 and x64 Product Key Issue

    Hello people,
    I am having trouble with DreamSpark. I have an account from DreamSpark and want to use windows 8.1 pro x64 in my laptop. The problem is that dreamspark gives me only one product key for both x64 and x86 versions of windows 8.1 pro but when I try to install
    x64, it asks me to validate x64 via that product key. After typing the key, it gives me an error saying sth "could not validate". However, in the x86 version, it is able to validate. It is annoying because it says  "Microsoft
    Windows 8.1 Professional 32/64-bit (English) - DreamSpark - Download" in the title. Does not it mean that the product key below in the page is for both x86 and x64? :S 

    Hi,
    I agree with Yannick, both x64 and x86 should work fine, but only one is installed at a time,
    for example,  before you install the 64bit version, you will need to uninstall the 32bit version, even if it is on another computer.
    You can also run
    MGADiag tool - Microsoft to view the detailed Activation Dagnostic Report.
    Regards,
    Yolanda
    Yolanda
    TechNet Community Support

  • Windows 8.1 standad (not-Pro/Enterprise) x86 and x64 bit client support

    Can someone from the team please clarify if Windows 8.1 standard (not pro/ent) x86 and x64 computers are supported as full Intune computers?
    I want my small business customers who have BYOD (home computers) that have Windows 8.1 standard (NOT RT) be monitored, managed, AND have the same anti-malware system as the Windows 8.1 Pro/Ent computers.
    This was clearly (and surprisingly) addressed at the Build 2013 conference this year in San Francisco when Intune and OpenMDM was discussed but the updated TechNet pages such as
    http://technet.microsoft.com/en-us/library/jj676630.aspx show that Pro/Ent is required.
    Is there another Intune service update coming that adds support for home computers, is the documentation wrong, or did I misunderstand the keynote and the answers to my follow up questions from that event?
    Thanks!
    -Neil
    neilgo

    Jon,
    Can you address if there is technical issue or if this is a licensing/policy issue?
    I have a lot of prospects who do not have licensing with Home Use Rights - not to mention the management and licensing control of home use rights of the OS is not "cloud controlled". (i.e. nothing easily in place that offers the level of control that say
    Office 365 Pro Plus - which handles provisioning/activation AND deactivation should someone leave the company).
    I find the message hard to explain to customers that home computers running Windows 8 standard clients can't support/run software that Windows 8 Pro clients can. There was a body of messaging that took years to build up about the advantages of domain
    joined clients needing to be "Pro or higher" but in this case the message don't ring correct given we are talking about "personal owned" rather than company owned devices.
    How do I explain that as far as Windows Intune is concerned that Windows 8 standard computers and iOS tablets are the same?
    neilgo

  • Best practise for installing patches for SCCM Client 2012 (Both x86 and x64)) - OSD and Client Push Installation

    Hi All,
    What is best practice for automatic installing of SCCM 2012 client Patches
    (using Patch switch) during installation of SCCM 2012 clients? The challenge is that now there are two versions of clients and updates (x86 and x64).
    I need information for:
    OSD
    Client Push Installation
    Thank you in advance.
    Regards,

    Not everything that can be or is supported or not supported is documented (or ever can be):
    http://technet.microsoft.com/en-us/magazine/jj643252.aspx
    Your expectation here needs to be adjusted. No one recommended contacting support. William just mentioned that *if* you have an issue and needed to contact support, they may decline to help you because you've done something explicitly unsupported.
    For clientpatch, here's the specific documentation noting it as unsupported:
    http://blogs.technet.com/b/configmgrteam/archive/2009/04/08/automatically-applying-hotfixes-to-the-configuration-manager-2007-client-during-installation.aspx
    Additionally, I've also been in contact with the sustained engineering folks responsible for the CUs and they've reinforced the statement.
    What can happen? Who knows? Microsoft does not test against unsupported configurations and features -- that's the definition of unsupported. It's not tested so no one really knows. They did find a couple of explicit issues (outlined in that post above) so
    know that at least those exist and probably more since it is, as mentioned, abandoned code.
    Why does it matter what can happen though? If the folks who write and support the code tell you shouldn't do it, you are simply asking for problems by doing it. Ultimately, you're asking a question that has no defined answer (except "bad"/unsupported things)
    that really doesn't matter if you follow the explicit guidance. If you don't, as William points out, that's a risk for you take and an answer for you to discover.
    Jason | http://blog.configmgrftw.com

  • Migrate an application from x86 to x64. Compiling succeed, but can not run. Always start with error 0xc0000142.

    platform: windows server 2008 r2; ide: visual studio 2005 (installed the x64 development kit)
    Hi, everyone.
    I want to migrate my application to x64 platform from x86/win32 platform. I added x64 platform in visual c++ 2005 option, and compiled successfully. But the application can not start. When start it always pop up an alert dialog saying "The application
    was unable to start correctly (0xc0000142). Click OK to close the application."  Meanwhile, it's worked well when I use win32 option to compile.
    Someone says online, the dependency walker can detect some root cause. I used it, and found that IEFRAME.dll may be had some problem because when I double click it, pop up a dialogue saying "Errors were detected when processing "c:\windows\system32\IEFRAME.DLL".
    See the log window for details.". But I can not resolve this issue.
    Please help me.

    If I had to try to solve this:
    I'd start by verifying that I can compile, and run a skeleton x64 Windows app.  Just create one from scratch using the Windows Application project template, add the x64 platform, build it and run.  Hopefully all goes well.
    If that works, then I'd try trimming down your app to just its essentials.  If you're not using revision control software, back up your projects now, because once you find the problem by hacking and slashing, you'll want to revert so you can make a
    clean fix.
    The first thing to do here is just put a return 0; in the beginning of WinMain to see if it's code at runtime that's causing the problem or something about the linking and dependent library loading.
    I'm guessing that, even with return 0, you will still have a problem, which would suggest that you are perhaps still linking against a 32-bit version of a library or something like that.  Start removing dependencies or references or libraries until
    you can build and run your stripped-down application.  Eventually you'll find the one reference/library that causes it to fail to load.
    You can also check the debug window to see if some modules loaded correctly and others not.
    You can also run
    Process Monitor (sysinternals) to see which dll it was accessing when it failed to load.
    Make sure you revert any changes you made while hacking and slashing, then make your platform fixes, and have another go.
    I suspect that eventually you'll find that you've added a link library that is a 32-bit .lib or a component that references a 32-bit library.  You'll have to make sure you specify the x64 .libs for whatever libraries you are using.  Sometimes this
    means that you have to change you additional linker directories to point to the x64 libs instead of the x86/win32 libs.  Be very careful about your platform when specifying linker libraries, directories, etc.
    It could also be that the x64 version of a dll has been copied to your output folder rather than the x86 version, assuming they have the same name.  You'll have to sort out your SDKs and get the right .libs and .dlls.
    Make sure that your settings and property pages are set correctly for Release and Debug, and for x86 and x64.

  • Cross compiling apps on solaris 8 for solaris 10 x86 and x64

    Hi All,
    We have a few applications built on Solaris 8. and we want to build the same apps on Solaris 10 x86 and x64 but the problem is clearcase does not support Solaris 10 yet.
    Can we cross compile the apps on Solaris 8 for Solaris 10 x86 and x64 ? and how ?
    waiting for any info on this.
    TIA,
    warm regards,
    Girish

    FYI, I noticed the reply on Sun Studio General Forum:
    If you build an app on one version of Solaris, the app will run on later Solaris versions. So in particular, you can build an x86 application on Solaris 8 and run it on Solaris 9 and 10.
    Unfortunately, an x64 application must be built on a Solaris x64 system, which first became available with Solaris 10.

  • Installing printer drivers on x86 and x64 OS clients from print server

    Hi experts,
    I have a print server win 2008 r2 with some printers installed on it including x86 and x64 drivers.
    1. I wanted to install printer drivers on x86 and x64 CLIENT OS (win 7/8 ) from the print server.  
    2. This installation should in in backend(hide mode). While installing it should not pop up on user desktop for installation.
    Could any one help me with a simple script. So i can get a get a idea. 
    I was using bellow script but it displays on desktop before installation.
    $nw=New-Object -ComObject WScript.Network
    $nw.AddWindowsPrinterConnection('\\ptprint\pg1-b')

    Hi Amitkumar,
    given your scenario, this script is probably what you are looking for:
    Add-PrinterDriver
    It will add all printerdrivers from shared printerobjects from a printer server.
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • Master Socket Issue

    Would like to take up option of Infinity now it's available in my area, anything has to be an improvement on my current BT rate of 2 Meg.
    However the current master socket is in the hall and I want everything in the living room where it is now. I have read about the Master sockets issues and rang the Sales line last night and asked about moving the master socket.
    The operatives initial reaction was effectively "what's your problem have the modem and hub in your hall" - I don't want that , I don't have the space. The next solution is the data extension kit - again I don't want a lead running round 3 door frames to get to my living room. After putting me on hold for a while he came back with the princely sum of £205 to move my master socket. I asked him whether there was any possible movement on price - No.
    Anybody else hit this wall - I am pretty aggrieved having been loyal to BT Internet for many years, £205 is a joke.

    Do you have any phone extensions from your master socket that run into the room you want the modem?
    If so, then just tell the Engineer and he will move it for you, they don't charge, well didn't when I had Infinity installed.
    If I helped, then consider clicking the star to the left

  • Import-MDTPackage specified by x86 or x64

    Hi
    I am looking at adding packages to our MDT 2013 installation by using Import-MDTPackage with a WSUS folder as source. Is it possible to specify so it only imports x86 packages?
    I use the following code which include both x86 and x64.
    Import-Module "C:\Program Files\Microsoft Deployment Toolkit\bin\MicrosoftDeploymentToolkit.psd1"
    New-PSDrive -Name "DS001" -PSProvider MDTProvider -Root "D:\DeploymentShare01"
    import-mdtpackage -path "DS001:\Packages" -SourcePath "D:\WSUS" -Verbose
    I have configured WSUS so it only downloads Windiws 7/8.1 updates since does are the only OS's we are going to deploy currently.
    Lasse
    /Lasse

    Yea you could definitely parse WSUS data with Powershell to get the exact updates you needed.  You would need to first find all patches with the x86 property on WSUS, limit by date, and then feed the name property back into Import-MDTPackage. 
    I did something similar recently to help roll out automated patch test images -- though instead of querying wsus, I just setup a filer structure that patch approval groups could drop approved patches into, and then
    setup an automated package grab on image build.

  • Silent install of itunes 10.6.1.7 suite on x86 or x64 issues

    I have been following user blog sites that mention using the IS_ASU property set to 1 (instead of the default 0) so it will disable the Accept License Screen on first launch. However when I create the MST file for this it still prompts for the eula. I know the other options such as REGSRCH_DESKTOP_SHORTCUTS, remove about itunes icon are working, so the MST itself is working, just not the auto except eula. The user community doesnt like popups/questions/options/etc so having the eula popup is considered total failure.
    Thanks!

    Appears IS_ASU is depreciated? An adminstudio tuner included iTunesPrefs.xml dropped in CommonAppDataFolder = %AppData%\Apple Computer\iTunes\ works AOK.

  • Errors x86 and x64 reinstalling MS Office 2010. Same problem with Trial MS Office 2013

    Hi. I lost MS Office 2010 3 weeks ago, after I tried to rename my Owner username in the registry, following steps I found online.  I have not been able to restore MS Office at all.  I received Office I have attempted to uninstall
    and reinstall several times, and then attempted to download MS Office 2013 trial version.  Nothing works.  MS Office does not show as an installed program in my Control Panel.  There are Microsoft Files on my computer.  Please advise.
    I have Windows 7 Home Premium 64-bit Operating System, Service Pack 1.
    First Pop up is Single Image permission to run.  Then...
    Second pop-up is MS Office 2010 Extracting Files, please wait...
    Third pop-up is Setup Errors.  Setup is unable to proceed due to the following errors:  To install and use this product, you must be running one of the following operating systems:
    x86 platform Windows 7, Windows Vista SP1, Windows XP SP3, Windows Server 2003
    x64 platform Windows 7, Windows Vista SP1, Windows Server 2008
    Correct the errors listed above and re-run setup

    Hello,
    This issue occurs when one of the following conditions is true:
    The operating system on which you are trying to install Office 2010 does not meet the system requirements for the product.
    The Office 2010 Setup program (Setup.exe) is configured to run in compatibility mode.
    Please check your environment to see if it meets the system requirements for Office 2010 or the Setup.exe is happen configured to run in compatibility mode.
    Detailed steps, please refer to this page:
    http://support.microsoft.com/kb/2267642/en-us
    Thanks,
    Ethan Hua CHN
    TechNet Community Support

  • Oracle 10g x86 vs x64

    Hi There,
    I've been asked by an end user if there is significant improvements to using Oracle 10g x64 over oracle 10g x86. While in theory x64 should run better is this categorically true?
    Regards
    Mr G

    Hello again Dude.
    The shared storage is configured fairly benignly. The iSCSI volume is configured via YaST and, after establishing a connection, the device shows up as a drive in the system i.e. /dev/sdx.
    The storage was formatted as an ext3 filesystem using fdisk. Afterward, it was mounted to /opt/oracle/product using the following command:
    mount /dev/sdb1 /opt/oracle/product
    To ensure the database, once installed, would be available, a corresponding entry was added to /etc/fstab .
    Before I began the Oracle installation, I was sure to perform the following as root after the mount:
    chown -R oracle:oinstall /opt/oracle/product
    chmod -R 775 /opt/oracle/product
    Checking the ownership and permissions were the first thing I did after noticing the permissions issues during the linking phase.
    I understand what you are getting at here Dude- to eliminate the possibility of write failures on the shared storage, I unmounted the /opt/oracle/product directory, reverting back to local. After unmounting, I verified that the permissions on the product folder were drwr-xr-x and the owner was oracle:oinstall.
    The next attempt at installation was successful. The issue was due to the shared storage permissions. Dude, you've earned yourself a Caucasian!
    Thanks for the help: I am off to determine why the linking phase fails when installing to the shared storage.
    Cheers!
    Greg

  • Unable to download 11.1.102.63 .MSI (both x86 and x64) from distribution site

    I am unable to download the 11.1.102.63 .MSI from http://www.adobe.com/products/flashplayer/fp_distribution3.html (both x64 and x86). I always recieve .62. I have cleared my cache and had the networking team clear the cache at the firewall level and this has not resolved the issue. Since US-CERT has sent out a notification on this based on Adobes security bulletin I need to get this done ASAP. Our security department is expecting this to be done as soon as possible. Does anyone have an alternate location to download the .MSI files from or have any idea when they will be availabe via the distribution site? I spent the better part of yesterday trying to get phone support from Adobe without any resolution.

    Adobe really dropped the ball here. You can get the exe installer at I havn't found the Msi isntaller for 11.1.102.63:
    http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player_ax_32bit.exe
    http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player_32bit.exe
    http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player_ax_64bit.exe
    http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player_64bit.exe
    exe isntaller used -install for silent install.
    Justin

  • Bootcamp x86 and x64 conflicting: How to remove x86?

    Hello. Through stubbornness, I bootcamped Windows 7 x64 to a MacBook that I realized (halfway through the process) was a year too old to support it. I don't remember much of what I did, but I have finally lost my ability to ignore the two copies of bootcamp running on my machine. I believe one is the x86 version while the other is the x64 version that I need. I have two of everything bootcamp (such as bootcamp manager), and I blame it for issues such as volume and display brightness adjusting two notches at a time.
    Does anyone have any ideas as to how I can remove everything associated with bootcamp x86?
    Thanks!

    I fixed this a while ago. I just deleted the folder: /Windows/Program Files/Boot Camp/ and rebooted. That kept the extra one from starting up, but I don't think it removed everything associated with it.
    In Control Panel > Programs and Features, I noticed that I have Boot Camp 2.0 and Boot Camp 2.0.1 installed. Does anyone know if I can safely remove 2.0?
    I'm marking this answered, as this the only resource I know of that has a usable solution to this problem. Kind of a duh situation really, but we all have them.

  • Creative audigy 2 (SB0400) + windows 7 x64 compatability issue.

    Hell everyone, I am experiencing an issue with my sound card " the creative audigy 2 (SB0400) model " . I am running running windows 7 x64 bit with all latest security patches and updated drivers where available. However, when using the provided drivers from windows update (WDM), I experience a pause when listening to any type of music files ie: mp3,flac,ogg just to name a few and when playback on several media players, it freezes the sound + mediaplayer for a minute or two, then it will play onward. Also when not playing any media files, I have noticed a crackel pop every so often from my speakers, which can be annoying as well.
    Now, I have uninstalled the drivers provided by windows 7 update via " Start button > Computer > Manage " and selected Device Manager Then Sound , Video and Game Controllers and Right clicking on Creative SB Audigy 2 (wdm)? and choosing uninstall making sure the box is checked to also "Delete the driver software for this device" And did a reboot afterwards. After the reboot I have now downloaded the current driver pack from Creative Labs website SBAX_PCDRV_LB_2_8_00. It has installed successfully other than the fact that it has detected a previous driver (by windows updates), which I had " thought " it was deleted by windows 7. Now after i have installed the SBAX_PCDRV_LB_2_8_00 driver, when going to the speaker icon in the windows 7 tray area and selecting sounds I am annoyed by a message box saying: Windows has detected that audio enhancements for the following device are causing problems: Speakers (Createi've SB Audigy 2 (wdm) )? Would you like to disable the Driver Enhancements for this device ?.
    First of all, Why would I want to disable the " Driver Enhancements " for my SB0400 card when the card is supported for it. Are these issues be fixed, if so, please point me to the rigth direction for the proper support for my device. ?:angry:
    Also, I have been noticeing when playing any type of media file mostly all formats out there the sound will just RANDOMLY stop and freeze.
    computer spec:
    ECS Kn-sli lite vA.0
    AMD 4600 X2
    EVGA 9800GT's
    4 GB Kingston Hyper X ram DDR
    60 GB WD Caviar HD
    60 GB Maxtor HD
    500 GB Hitachi HD
    Creative Audigy 2 Value (SB0400) PCI Card.

    Not one, **bleep** reply !. Wow. Where is the support ?

Maybe you are looking for

  • How to suppress multiple lines for a single day on a PE50 form

    Hello everyone, I'm working on a timesheet based on a PE50-form. Currently, the following line is used to display one day: Group: ED Priority: 1 Row: |WE CD|TEXT_________________ |ANZHL_|ANZHL_|ANZHL_ |       |                    | WE = SCHLW-WEEKDAY

  • Logical Model vs. Process Model

    Some questions on SDDM 3.1.4 support for internal consistency of a design: 1. Can I have the same Information Store on more than one Data Flow Diagram (in the same design)? When I try this, either by creating a new one on the second DFD and trying to

  • Does SAP have standard return Po output?

    Hi experts Now we plan to use return po flag on PO item. In case ,it's po which return to vendor, We will check the po return item flag. The return PO form will be some different from the standard one. eg: the title will not be purchase order. Since

  • Will asynchronous execution be in flash?

    Hello all, I have faced with the problem: when it's needed to do large amounts of calculations flash just hangs. No difference if is it in browser or is air application - all user interface just hanging and user is watching "Program not responding".

  • DB connection in JavaBean called from Forms 6i

    Hi, after going through a lot of documentation, I still can't find a proper solution for connection issues to the database within a javabean called from Oracle Forms 6i patch 13. I developed a javabean which will download (export) a BLOB field from t