Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #10490

Re: 64-bit gotcha

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
From Travers Naran <tnaran@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: 64-bit gotcha
Date Sun, 04 Dec 2011 09:17:09 -0800
Organization A noiseless patient Spider
Lines 24
Message-ID <jbg9uo$pgs$1@dont-email.me> (permalink)
References <vvujd71j7k73s1m61bu10eol0ebtn4iem0@4ax.com> <4eda8488$0$287$14726298@news.sunsite.dk> <xbKdnW4-I_26AUfTnZ2dnUVZ_qqdnZ2d@posted.palinacquisition>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Sun, 4 Dec 2011 17:17:12 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="3xzUFUyZLIFW3EOcGdAa2w"; logging-data="26140"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19WfbqJhhavpqe9VrlFQuof"
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
In-Reply-To <xbKdnW4-I_26AUfTnZ2dnUVZ_qqdnZ2d@posted.palinacquisition>
Cancel-Lock sha1:yerwfweEtuaQriejNSpN9gIHAU0=
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:10490

Show key headers only | View raw


On 03/12/2011 2:01 PM, Peter Duniho wrote:
> But as with Java, you cannot call native DLLs using the wrong bitness of
> a .NET program. A .NET program running as a 32-bit process can call only
> 32-bit DLLs, and a .NET program running as a 64-bit process can call
> only 64-bit DLLs. Other than the way that the choice is made for what
> kind of bitness the program is running in, it's pretty much the same
> situation.

That also applies to ADO.Net drivers, as we discovered at work.

"I included the Oracle .net driver in the installation package, I don't 
know what happened!"

"Did you remember Oracle's .Net driver will attempt to open DLLs already 
installed in the system over the ones in the program's directory?"

"..."

"You're app is compiled & packaged as 32-bit but running on a laptop 
with 64-bit Windows 7 which already has Oracle drivers installed."

"....  Ohhhhh!"

So don't forget to ask what OTHER DLL's your DLL is opening.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

64-bit gotcha Roedy Green <see_website@mindprod.com.invalid> - 2011-12-03 02:47 -0800
  Re: 64-bit gotcha Arne Vajhøj <arne@vajhoej.dk> - 2011-12-03 15:20 -0500
    Re: 64-bit gotcha Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-12-03 14:01 -0800
      Re: 64-bit gotcha Roedy Green <see_website@mindprod.com.invalid> - 2011-12-03 18:17 -0800
        Re: 64-bit gotcha Martin Gregorie <martin@address-in-sig.invalid> - 2011-12-04 12:06 +0000
          Re: 64-bit gotcha Jeff Higgins <jeff@invalid.invalid> - 2011-12-04 08:57 -0500
            Re: 64-bit gotcha Jeff Higgins <jeff@invalid.invalid> - 2012-02-25 19:15 -0500
              Re: 64-bit gotcha Martin Gregorie <martin@address-in-sig.invalid> - 2012-02-26 00:53 +0000
                Re: 64-bit gotcha Jeff Higgins <jeff@invalid.invalid> - 2012-02-25 20:26 -0500
          Re: 64-bit gotcha Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-12-04 10:04 -0400
        Re: 64-bit gotcha Arne Vajhøj <arne@vajhoej.dk> - 2012-03-12 19:50 -0400
      Re: 64-bit gotcha Travers Naran <tnaran@gmail.com> - 2011-12-04 09:17 -0800
      Re: 64-bit gotcha Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-12-04 18:33 -0600
        Re: 64-bit gotcha Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-12-04 16:56 -0800
        Re: 64-bit gotcha Arne Vajhøj <arne@vajhoej.dk> - 2012-03-12 19:53 -0400
      Re: 64-bit gotcha Arne Vajhøj <arne@vajhoej.dk> - 2012-03-12 19:49 -0400

csiph-web