473,396 Members | 1,789 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

What were the rules on x64 exe and x32 dll?

Part of this message should not be surprising, but part of it is.

In Visual Studio 2008 plus recently released SDK, I compiled a C# program
for x64, including calls to functions in a C++ DLL. I forgot that the DLL
was 32-bit only.

Running the debug version under control of Visual Studio 2008, the program
started running. It did its C# initializations, called functions in the C++
DLL, did more C# initializations, and displayed its main form. It continued
running until I stupidly told it to call some DotNet methods to open an
OleDb connection to an Excel file. Microsoft's efforts to get vendors to
support x64 didn't include Microsoft as a vendor. OK, that's a separate
issue, and we're getting ahead of ourselves here. Nonetheless, *how* did we
get ahead of ourselves here?

Running the release version by double-clicking in Windows Explorer, the
program started but didn't get very far. It did its C# initializations,
tried to call its first function in the C++ DLL, and crashed long before it
would be ready to display a form.

Task Manager says that both the vsshost version and the standalone version
are running as native x64 executables, not as *32 wows.

How did the debug version get to call that 32-bit DLL and not crash?

Feb 14 '08 #1
1 1844
OK, solved, more or less. The call crashed. The Visual Studio 2008
debugger prevents debugging of the Form Load handler, displaying the form as
if everything worked perfectly.
"Norman Diamond" <nd******@newsgroup.nospamwrote in message
news:O1**************@TK2MSFTNGP03.phx.gbl...
Part of this message should not be surprising, but part of it is.

In Visual Studio 2008 plus recently released SDK, I compiled a C# program
for x64, including calls to functions in a C++ DLL. I forgot that the DLL
was 32-bit only.

Running the debug version under control of Visual Studio 2008, the program
started running. It did its C# initializations, called functions in the
C++ DLL, did more C# initializations, and displayed its main form. It
continued running until I stupidly told it to call some DotNet methods to
open an OleDb connection to an Excel file. Microsoft's efforts to get
vendors to support x64 didn't include Microsoft as a vendor. OK, that's a
separate issue, and we're getting ahead of ourselves here. Nonetheless,
*how* did we get ahead of ourselves here?

Running the release version by double-clicking in Windows Explorer, the
program started but didn't get very far. It did its C# initializations,
tried to call its first function in the C++ DLL, and crashed long before
it would be ready to display a form.

Task Manager says that both the vsshost version and the standalone version
are running as native x64 executables, not as *32 wows.

How did the debug version get to call that 32-bit DLL and not crash?
Feb 14 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
137
by: Philippe C. Martin | last post by:
I apologize in advance for launching this post but I might get enlightment somehow (PS: I am _very_ agnostic ;-). - 1) I do not consider my intelligence/education above average - 2) I am very...
39
by: Holly | last post by:
I'm trying to validate my code and I can't figure out what kind of doctype I have. The validator can't tell me anything because it can't move beyond the doctype declaration. ...
5
by: Christoph | last post by:
For retrieving CSS rules that can not be interpreted by an layout engine I can use the UnknownRule interface of DOM. Unfortunately in Gecko (Firefox 1.0.5), I cannot access such rules using...
53
by: Deniz Bahar | last post by:
I know the basic definition of a sequence point (point where all side effects guaranteed to be finished), but I am confused about this statement: "Between the previous and next sequence point an...
20
by: nicolas.riesch | last post by:
I try to understand strict aliasing rules that are in the C Standard. As gcc applies these rules by default, I just want to be sure to understand fully this issue. For questions (1), (2) and...
2
by: Mikedi | last post by:
Hi. I use Exchange Server and I need to create a lot of rules to control my incomming mail. I also need be able to check my mailbox from any PC connected to the net. However there is only 32Kb of...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
7
by: Nick Chan | last post by:
hello, i've just started playing around with rules and udt is it possible to alter rule? are rules 'slower' compared to check constraint?
3
by: jonny | last post by:
I have a python code that manages some parameters using some variable rules that may change from day to day. I'd like that the code will self-modify according to rules parsed from a xml file: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.