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? 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?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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.
...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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?
|
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:
...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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,...
|
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...
| |