X64 (64 bit) C API bug

I am trying to get the 64 bit C API up and running.  I have the 32 bit API running and it is working correctly.  It appears that any API call in the 64 bit environment that returns more than a single data type overwrites an area of memory it doesn't own. 
I am working in VB.NET and wrapping the calls with marshaling.  The simplest example of a call that doesn't work correctly is querying the active channels on the scope:
From the C header:
niVB_Status NIVB_DECL niVB_MSO_QueryEnabledAnalogChannels(
   niVB_MSO_InstrumentHandle instrumentHandle,
   char* channels,
   size_t channelsSize,
   size_t* channelsSizeOut);
There are several different ways to code a managed to unmanaged translation for this.  One is to use an allocation to construct a pointer to a buffer area:
Pointer = Marshal.AllocHGlobal(MAX_CSTRING_LENGTH)
The declaration then looks like this:
      <DllImport(niVirtualBenchModuleName64, EntryPoint:="niVB_MSO_QueryEnabledAnalogChannels", CallingConvention:=CallingConvention.Cdecl)> _
      Public Shared Function niVB_MSO_QueryEnabledAnalogChannels_64(ByVal instrumentHandle As IntPtr, ByVal channels As IntPtr, ByVal channelsSize As UInteger, ByRef channelsSizeOut As UInteger) As niVB_Status
      End Function
When the call is made, the channelsSizeOut call returns 23 characters (which is correct).  The channels IntPtr is zeroed out however (this should never happen, it suggests the stack is getting corrupted.  If I put a huge array locally around the pointer, sometimes it's not corrupted. 
Or you can call into the function using a stringbuilder call.  It basically replaces the IntPtr parameter with a string builder using marshaling to get a pointer:
        Dim bufChannels As New StringBuilder(MAX_CSTRING_LENGTH)
then the call looks like this:
      <DllImport(niVirtualBenchModuleName64, EntryPoint:="niVB_MSO_QueryEnabledAnalogChannels", CallingConvention:=CallingConvention.Cdecl)> _
      Public Shared Function niVB_MSO_QueryEnabledAnalogChannels_64(ByVal instrumentHandle As IntPtr, <MarshalAs(UnmanagedType.LPStr)> ByVal channels As StringBuilder, ByVal channelsSize As UInteger, ByRef channelsSizeOut As UInteger) As niVB_Status
      End Function
Again, calling into this function causes the stringbuilder class to be set to (nothing) which is essentially showing that the stack space where the pointer to the stringbuilder class resides is getting corrupted.
It is important to note that this code works perfectly with the 32 bit version of the DLL (using either programming construct). 
Solved!
Go to Solution.

I don't think this is a C API bug; I can do the following on both x86 and x64 without triggering any of MSVC's stack canaries. (Note that for brevity there's no error-checking in this snippet.)
#include <stdlib.h>
#include <stdio.h>
#include "nivirtualbench/nivirtualbench.h"
int main(int argc, char* argv[])
niVB_LibraryHandle libHandle = NULL;
niVB_MSO_InstrumentHandle msoHandle = NULL;
size_t channelsSizeOut = 0;
char* enabledChannels = NULL;
niVB_Initialize(NIVB_LIBRARY_VERSION, &libHandle);
niVB_MSO_Initialize(libHandle, "brandonbench", false, &msoHandle);
niVB_MSO_QueryEnabledAnalogChannels(msoHandle, NULL, 0, &channelsSizeOut);
enabledChannels = (char*)calloc(channelsSizeOut, sizeof(char));
niVB_MSO_QueryEnabledAnalogChannels(msoHandle, enabledChannels, channelsSizeOut, &channelsSizeOut);
printf("Enabled channels: %s\n", enabledChannels);
free(enabledChannels);
niVB_MSO_Close(msoHandle);
niVB_Finalize(libHandle);
I suspect the problem is in your marshaling. The size_t parameters are probably best represented using System.UIntPtr, and not the UInteger type; size_t is 32-bit on 32-bit platforms and 64-bit on 64-bit platforms, but UIntegers are 32-bit on both. Trying to write channelsSizeOut is probably what's triggering the stack corruption.
Brandon Streiff
National Instruments
Software Engineer

Similar Messages

  • WebLogic Server 9.2 MP3 x64 (64-bit) does not contain a 64 bit native dir

    I downloaded 9.2.3 MP3 from edelivery.oracle.com. I made sure to select "BEA WebLogic Media Pack for Microsoft Windows x64 (64-bit)" and selected WebLogic Server 9.2 MP3. When I installed the server from the downloaded file, I do not have a 64 bit native directory - instead I have weblogic9\server\native\win\32.
    Did I install it incorrectly? Can someone offer guidance?
    Thanks

    First of all you should check out which products are supported on 64bit :- http://www.oracle.com/technology/products/bi/hyperion-supported-platforms.html
    If you are planning on using windows 64bit EAS then you will have to manually deploy the web application, it cannot be automatically deployed.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Installation XE 11. on Windows x64 ( 64-bit) 2008

    Dear All ,
    I want to know if latest XE edition is certified on Microsoft Windows x64 (64-bit) 2008 OS ?
    We have installed specific version on Windows x64 (64-bit) 2008 OS.
    We get the following error :
    OER 7451 in Load Indicator : Error Code = OSD-04500: illegal option specified
    O/S-Error: (OS 1) Incorrect function. !
    and there is a respective Doc ID :
    Note 1060806.1: OER 7451 in Load Indicator : Error Code = OSD-04500: illegal option specified
    Action Plan
    ========
    1. Install 64-bit version of Oracle database software.
    2. Upgrade the database from 32-bit version to 64-bit version.
    Can we use Oracle XE on specific OS ?

    Hello,
    I want to know if latest XE edition is certified on Microsoft Windows x64 (64-bit) 2008 OS ?No. See [url http://docs.oracle.com/cd/E17781_01/install.112/e18803/toc.htm#BABHICJH]XE's System Requirements for details.
    Similar error messages have been reported here before, e. g. in {message:id=10665775}.
    It seems possible to get XE started on 64bit Windows, but it might be a hard fight, especially on a server OS with other possible traps..
    Can we use Oracle XE on specific OS ?Sure, all certified 32bit Windows versions or 64bit Linux versions would be fine. See {thread:id=2278170} to get a full report.
    -Udo

  • Can the webmaster fix mozilla's web site so that users don't end up with non working 32bit version of firefox on their 64 bit Linux (see bug #723487)?

    I've been subsribed to bug #723487 (https://bugzilla.mozilla.org/show_bug.cgi?id=723487) for a year and a half, and I identified a problem in the way mozilla's site delivers the linux version of firefox almost a year and a half ago, but for reasons unknown to me, no one bothered to address this problem.
    Other, properly built web sites that deliver binary software packages for linux, can successfully recognise if the user downloading firefox is using a 32bit or 64bit Linux distribution, and offer the appropriate version. Try www.libreoffice.org if you think that my claims are false.
    But this somehow doesn't work with mozillas website, the website recognizes that the user's operating system is Linux, but doesn't try to figure out if it's a 32bit or 64bit linux, so the users end up with 32bit builds of firefox by default, which then don't work on their 64bit sytems.
    The problem is even more intensified due to the rather stupid naming convention used by mozilla - both the 32 and the 64 bit versions are simply named identicaly - for instance firefox-29.0b6.tar.bz2 for the 29 beta 6 version. Other sane software producers (libreoffice, nvidia, qt-project) names their binary packages with different names (eg. the "x86" string is used for the 32bit version, "x64" for the 64bit version) so that the users don't end up trying to use (unsucsesfully; getting a cryptic error message) the wrong version. But in mozilla's case we end up with a lot of confused users filing bug reports, like the bug I mentioned above.
    So to rephrase my question - is someone willing to do something about this (the QA Mentor who commented in bug #723487 has so far proven to be completely useless)?

    The 64-bit Linux builds have been listed on the http://www.mozilla.org/en-US/firefox/all/ page since Firefox 27.0 or 26.0 I believe.
    This link is listed under the green download button with the words of [http://www.mozilla.org/en-US/firefox/all/ Systems & Languages]

  • ITunes 7.6 and Windows XP Pro x64  ---- 64 bit version of Windows XP Pro

    My wife was given an iPod nano, so I downloaded the current version of iTunesSetup.exe from www.apple.com and tried to run the executable. It told me that it wasn't designed to install iTunes on my 64 bit version of Windows XP Pro, and that I should go back to www.apple.com and download the 64 bit installer. I went back to www.apple.com and searched for the 64 bit installer in vain. There is only one main link to the current installer and the website determines which version of the installer you're given. After a few google searches I managed to aquire iTunes64setup.exe from the Apple site. I ran the executable and it told me "This iTunes installer requires that your computer is running Windows Vista 64-bit" and then it gave me the option to exit. I ended up installing iTunes from the executable I had originally downloaded. I have iTunes 7.6.2.9 installed now but it doesn't detect, or can't operate my DVD burner, so I can't rip music with iTunes for use on my wife's nano. I get this error report when I run the Diagnostic test built into iTunes.
    "Microsoft Windows XP Professional x64 Edition Service Pack 2 (Build 3790)
    System manufacturer System Product Name
    iTunes 7.6.2.9
    QuickTime 7.4.5
    CD Driver Not Available
    CD Driver DLL Not Available
    Bonjour 1.0.4.12 (118.4)
    iTunes Serial Number xxxxxxxxxxxxxxxx
    Current user is an administrator.
    The current local date and time is 2008-04-30 23:34:07.
    iTunes is not running in safe mode.
    Video Display Information
    Standard VGA Graphics Adapter
    NVIDIA GeForce 8800 GT
    ** External Plug-ins Information **
    No external plug-ins installed.
    ** CD/DVD Drive Tests **
    LowerFilters: Afc
    Failed loading CD / DVD drives, error -43. Try doing a repair install on iTunes from the "Add or Remove Programs" control panel.
    Failed loading CD / DVD drives, error -43. Try doing a repair install on iTunes from the "Add or Remove Programs" control panel."
    And there was no change in the diagnostic when I first tried to repair the install and then tried to reinstall iTunes. I'm sure the burner is working because I can play music, watch movies and all the normal stuff a DVD burner can do using Nero.
    I'm guessing I need an iTunes version of 64 bit optical drive driver.
    Any help would be appreciated!
    Cinder's
    <Edited by Moderator>

    I got the iTunes 7 to work on XP Pro 64bit. What I did was this:
    1. Downloaded DriverInstaller_AMD64EM64T.exe
    2. Installed it.
    3. Created this file tree: C:\Windows\Sysnative\drivers (Easier terminology, I went into the Windows folder and created a folder named "sysnative", opened that folder and created another folder called "drivers".
    4. Then I located the folder where I installed DriverInstaller_AMD64EM64T.exe ..
    5. I took the file called GEARAspiWDM and COPIED IT. I DID NOT MOVE THIS FILE!!!
    6. I pasted a COPY of this file into sysnative\drivers. The folder I just made.
    7. I installed iTunes 7, not 7.6. 7.6 and this method won't solve the burning issue. That would require more programs and more patients.
    Note, you will have to manipulate iTunes when you want to burn. The best way to do this, I found, was to simply make a playlist and right click the playlist on the left column and select burn to disk. It should act normally.
    Message was edited by: Nexis

  • Patch Needed for Windows 64 bit OS for bug number - 9356752 ...OID 11.1.1.6

    Hi,
    I m doing OID - OAM integration for SSO.
    OID 11.1.1.6 (64 bit)
    RCU 11.1.1.6 (64 bit)
    Oracle DB 11.2.0.3 (64 bit)
    Weblogic Server 10.3.6
    While installing OID 11.1.1.6
    I m getting error during configuration as
    [2013-01-19T13:40:42.723+05:30] [as] [NOTIFICATION] [] [oracle.as.provisioning] [tid: 19] [ecid: 0000JlHnUopFk3WFLzvH8A1Gy^Jk00000A,0] Trying to start the component oid1
    [2013-01-19T13:40:42.855+05:30] [as] [WARNING] [] [oracle.as.config] [tid: 19] [ecid: 0000JlHnUopFk3WFLzvH8A1Gy^Jk00000A,0] Failed to start component oid1[[
    oracle.as.config.ProvisionException: HTTP status code = 400 : The request parameters did not match any components
         at oracle.as.config.impl.OracleASComponentBaseImpl.manageProcess(OracleASComponentBaseImpl.java:943)
         at oracle.as.config.impl.OracleASComponentBaseImpl.start(OracleASComponentBaseImpl.java:1062
    I searched through oracle support ..I got a patch for this issue (bug number 9356752) but its for Linux and Solaris.
    Can I get the patch for Windows 64 bit OS or any solution to resolve this issue?
    Thanks and Regards,
    Yogesh

    Hi,
    I have faced the same issue when I was installing OID in linux server, but was able to fix the issue with right version of RCU ( I was using RCU 11.1.1.5 with OID 11.1.1.6).
    Regards,
    Raghav

  • Issues showing PDF files in web-browser (Windows 7 x64, 32-bit version of AdobeReader X)

    I'm not sure if this is the right way to share my experience, but at least I know Google will discover this thread eventually and maybe someone else will find what I have been looking for the past 3 hours
    I'm deploying the 32-bit based AdobeReader X (http://www.adobe.com/support/downloads/detail.jsp?ftpID=4950) to Windows7 32-bit and 64-bit based machines. This is a MSI deployement done through our Active Directory. Everything goes well - no errors. Except for the x64-based machines having trouble showing PDF-files in the web-browser.
    I used Adobe Customization Wizard X to customize our MSI installation - this showed out to be the solution once again.
    Common for the installation on Windows7 32-/64-bit were that the value in the registry database for HKCR\Software\Adobe\Acrobat\Exe (Default) was set to "C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe". This is valid for the 32-bit installation as Program Files is situated in C:\Program Files, but since it's a 32-bit edition of AdobeReader that I'm installing on the 64-bit based system as well, it's installed in C:\Program Files (x86) and the reference in the registry database to "C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe" is therefore not valid - which explains why PDF files could not be displayed in the web browser. Changing the registry to "C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe" solved it. Now this is a manual solution which might be useful on 1-2 machines but on a bigger scale it's not the right way to do it.
    I could change it with a batch/vbs script but still this is only a solution of the symptom and not a solution to the core issue. I therefore focused on Adobe Customization Wizard X again.
    The problem was easily solved. I opened the MSI file, loaded the transform file that I've made previously. Went to Registry > HKEY_CLASSES_ROOT\Software\Adobe\Acrobat\Exe . I then changed the (Default) value from "C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe" to "[INSTALLDIR]Reader\AcroRd32.exe", generated the MST file and replaced my current one for distribution. Problem solved! :-) The entry in the registry now shows : "C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe" and PDF files are open without any issues.
    I hope someone can save a bit of time on this one.
    Best regards!
    Alex Mikkelsen

    I was able install and view the files in adobe reader 10.1.1 and in web browser window 7 64 bit machine.  But when I go to Edit-preferences-internet and  unchecking "display PDF in Browser" , I am not able to view the pdf files in ie 9 browser.  I have used this javscript to check for pdf version.
    Immediately after installing adobe--
    when I do adobe test in ie 9---https://courses.worldcampus.psu.edu/public/diagnostics/Acrobat.html--  launches a test pdf file--Acro_Test.pdf
    After unchecking-- it stays in the  https://courses.worldcampus.psu.edu/public/diagnostics/Acrobat.html instead of showing test pdf file--Acro_Test.pdf
    Tried to go back to "display PDF in Browser"--it is showing it is checked(eventhough I did not check it)
    and in ie
    it stays in the https://courses.worldcampus.psu.edu/public/diagnostics/Acrobat.html instead of showing test pdf file--Acro_Test.pdf

  • Weblogic Portal - Disc API bug in response content type

    Hi
    While using WLP Disc APIs in the portal for AJAX calls, the response content type returned by the weblogic portal server is:
    text/x-netuix-json-comment-filtered; charset=ISO-8859-1
    This is not getting changed to 'application/json' inspite of setting this as the content type for a JSF JSP.
    Probably, looks like a bug.
    We have a JSF portlet in which we need to make an AJAX call.
    Please refer to the weblogic whitepaper for the AJAX examples (weblogic-portal-jsf-whitepaper.pdf).
    The example works fine in the dev/build environment. When the portal server is accepting calls through Sun One webserver,
    the logs from the webserver show the response content type from the portal server as "text/x-netuix-json-comment-filtered; charset=ISO-8859-1"
    - I tried changing the content type to "application/json" in the JSF JSP (as per the example from the pdf file). Still the content type does not change.
    - The response from the portal server is suffixed with "\n\r\t". Because of the trailing space/carriage return chars in the portal server response, the sun one webserver is unable to parse (or) eliminate the "\r\n\d" chars to the browser. When the browser receives a response (with the trailing chars), the module.js (weblogic wrapper API for DISC calls) fails.
    - The module.js tries to check whether the response from portal server ends with "**/" but unfortunately, the weblogic protal server returns
    "/** %json response%**/\n\r\d"
    I found a workaround to this issue by having a filter for the JSF JSP which sets the content type as "application/json" and does a flush() before it makes a call to the JSF JSP which responsds to an ajax call. This works as the content type is set and flushed first so any attempt by the portal server to set as "text/x-netuix-json-comment-filtered" does not get reflected in the http response.
    Any support/fix from oracle regarding this will be helpful as most of the webserver integration with the portal server happens during the middle of the project build and might lead to a technical risk.
    Server details: WLPS 10.3, Sun One 7.0
    Thanks
    Ananth Krishnan

    Make sure you're using the Reverse Proxy Plugin for Web Server, not the Application Server Connector (they are VERY similar, but not the same). The RPP knows how to handle 100 Continue, the Connector does not.
    Or use Web Server 7 and its built-in reverse proxy feature.

  • Sharepoint REST API - Bug in Sharepoint

    Hello,
    I found bug in sharepoint, where I can submit this bug or get answer from Microsoft about bug?
    Description:
    Open web appilication properties (Authentication Providers -> Default -> Anonymous Access -> check check box Enable anonymous access)
    Create any new site collection(http://myWebpplication/sites/NewSiteCollection) in this web application (don't change any settings in new site collection)
    Open fiddler and try to create following Get request without any additional headers.
    http://myWebpplication/sites/NewSiteCollection/_api/Web
    Now you get following error:

    Unfortunately, this needs to be reported through Product Support (PSS)... there is no guarantee that it'll get addressed, or when that might happen.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • For updating Silverlight in Windows, the System Requirements say I must have "X86 or x64 (64-bit mode support for IE only)"; what does this mean?

    I have a 5-year-old laptop, given to me by someone else as a gift, that uses: a 32-bit operating system, Windows 7 (with Service Pack 1), and Internet Explorer 8. A system message told me I need to upgrade Adobe and Silverlight. I accomplished the Adobe upgrade without problem. For the Silverlight upgrade, the instructions say to first uninstall the existing Silverlight software before installing the updated software. However, in the System Requirements, for Windows, it says the phrase that I quoted in the "Question" box above. I am not sure what it means. I am confused by the words "for IE only"; I'm assuming IE means Internet Explorer, but I don't know what this short phrase is trying to say. Is the "bottom line" that my 32-bit operating system is insufficient to receive the Silverlight upgrade, or is it enough? I need to know. I don't want to uninstall my existing Silverlight software yet, because of the possibility that I can't install the new software; I don't know what adverse effect would occur if my laptop doesn't have any Silverlight working on it at all. So I'd appreciate being filled in on this. Thanks!

    Your computer can run silverlight just fine. They are just saying that Silverlight is a 32bit application, except for Internet Explorer, where it can run as 64bit. It doesn't make any difference for you, so just go ahead and install it.

  • SDO API Bug? Oracle are you listening?

    In the Javadoc for the JGeometry it states the following for the createLinearPolygon...
    Creates a JGeometry that is a simple linear Polygon without holes. Note that if the supplied coordinate array does not close itself, meaning the last coordinate is not the same as the first, a new coordinate will be appended to the end of the input coordinates array. the new coordinate repeats the first one.
    Any time I add a geometry to the database that does not close itself I get a coordinate of 0,0 appended to the SDO object in the database.
    Anyone else have the experience? Am I doing something wrong or are the API's incorrect? Easy fix just was curious.
    Thanks

    Siva,
    Pardon my newbie like question, but I am assuming you mean Oracle 10.1.0.3 (10g?) and not API version 10.1.0.3?
    Thanks much

  • Converting 32bit mode to 8bit. PS API BUG?

    Hi. When I convert 16bit to 8bit mode by eventConvertMode with keyDepth = 8 it convert good, without layers merging.
    but when i convert 32 to 8, it convert all layers. there is no differences between converting 16 to 8 and 32 to 8 in listener.
    but why results are different?
    what argument I need to add? or this a bug?

    SPErr ConvertDepth(int docID, int depth)
    PIActionDescriptor result = NULL;
    DescriptorTypeID runtimeKeyID;
    DescriptorTypeID runtimeTypeID;
    DescriptorTypeID runtimeObjID;
    DescriptorTypeID runtimeEnumID;
    DescriptorTypeID runtimeClassID;
    DescriptorTypeID runtimePropID;
    DescriptorTypeID runtimeUnitID;
    SPErr error = kSPNoError;
    // Move this to the top of the routine!
    PIActionDescriptor desc000000D8 = NULL;
    error = sPSActionDescriptor->Make(&desc000000D8);
    if (error) goto returnError;
    error = sPSActionDescriptor->PutInteger(desc000000D8, keyDepth, depth);
    if (error) goto returnError;
    error = sPSActionDescriptor->PutBoolean(desc000000D8, keyMerge, false);
    if (error) goto returnError;
    error = sPSActionDescriptor->PutBoolean(desc000000D8, 'Rstr', false);
    if (error) goto returnError;
    error = sPSActionControl->Play(&result, eventConvertMode, desc000000D8, plugInDialogSilent);
    if (error) goto returnError;
    returnError:
    if (result != NULL) sPSActionDescriptor->Free(result);
    if (desc000000D8 != NULL) sPSActionDescriptor->Free(desc000000D8);
    return error;
    When i call ConvertDepth(docID, 8) from 32bit document it  merge all layers

  • Windows 8 Pro x64 (64 bit) ISO

    Hi guys,
    After searching for what feels like days (but is really only hours), I have still not managed to find a legit ISO image of Windows 8 Pro x64.
    The problem I have is that I have the newest iMac and so don't have a cd drive.
    I contacted microsoft and dicovered that if I have an ISO image of the version mentioned above, a student upgrade license would actually activate this with no problem.
    I am a student and thought that I had to pay £99.99 for the full version but when using microsoft's online chat to get help from a sales advisor I found that if you ordered Windows 8 Pro Student version (x64) with back-up media (which costs nothing extra), you could actually complete a full install using this, only I have the problem of not having a cd drive! I then asked about an ISO image that is copied to a usb stick and she said that this would work fine.
    So I just need to find an ISO of Windows 8 Pro (x64) Student version. (I'm not sure if the student version is exactly the same as plain pro version but it should be)
    Thanks,
    Jack

    When you buy and download it should offer Setup Assistant to upgrade if you have Windows or a link to the ISO.
    Did when I bought it.
    Now because I had Windows 8 I could go and download the full Windows 8.1 Preview, but not if you don't have 8 already.
    There is a link to Windows 8 Pro Student
    http://www.microsoftstore.com/store/msusa/en_US/cat/categoryID.62684800?WT.mc_id =MSCOM_EN_US_HP_Downloads_Windows

  • Reinstall OLAP API on Windows x64

    My Oracle database 11.2.0.1 on Win2008 x64 has Oracle OLAP API in status INVALID. I check metalink and it gives me instructions on ID 332351.1, but... I don't have @?/olap/admin/olap.sql in such localization. In ?/olap directory I have only 2 *jar files. When I read at the beggining of document this solution applies to any platform. So, my question is how can I resolve this problem?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Pl create an SR with Support for this missing sql file
    HTH
    Srini

  • Data backup restore in MSSQL 2005 X64 to MSSQL X32 bit

    HI All
    I am just planning to restore PRODUCTION data Backup into a TEST System for mean time testing.
    We are using SAP ECC600, MSSQL 2005 on WINDOWS 2003 Server (X64 Bit).
    I have MSSQL 2005 .bak backup file (X64bit) and i want restore it into X32 bit system.
    Even i have tried but got error 
       "Restore failed for server 'XXXX' (Microsoft .sqlserver.smo)
    Additional information
       System.data.sqlclient.sqlerror:The file on device 'z:\prddata\18.03.11.bak' is not a valid Microsoft Tape format backup set.(Microsoft.SqlServer.smo)
    Thanks
    YogRaj

    Dear moreno,
    My apologies for delayed reply ...I have found the following sap notes as solutions......
    960769 - Windows: Migration from 32-bit to 64-bit (x86_64)
    899111 Installing R3 4.7SR1 (47X110) on x64 Windows Platform
    for running x64 64 bit with release 47x110 SR1...
    But appreanlty i have  also tried Inst master & Kernel using 47x200 SR1 of x64 64 bit windows
    NOTE- there are 7 exports for 470x110 & 8 exports for 47x200 release..
    However since i am only doing a system copy i have used the following inst master of 47x200 of x64 64 bit windows
    I would suggest you prepare target system & use EXPORT/IMPORT method of system during migration...
    this would resulsts m uch better .pl revert back for any issues. aslo refere to sap note 600027
    thanks,
    rahul
    thanks,
    Rahul

Maybe you are looking for