Im at a loss on where to proceed next. I wonder if anyone can help
me.
I have a managed C++ DLL is basically a thin wrapper around several
unmanaged classes. This DLL builds fine.
In my main C# application I have setup a project reference to this
DLL.
Im able to reference these managed .DLL classes from within my code
without problem.
However, the application runs fine up until the point where I first
access the the DLL, I get a FileLoadExcepti on.
The only useful information that this exception provides me, is the
following:
"Error while loading file 'RTAudio, Version=1.0.172 4.42384,
Culture=neutral , PublicKeyToken= null'. For more details, check for an
inner exception."
Data: System.Collecti ons.ListDiction aryInternal
InnerExeception : "One or more arguments are invalid"
From what I can tell. The Fuslogvw.exe log indicates a good load:
------------------------------------------------------------------------
*** Assembly Binder Log Entry (21/09/2004 @ 22:31:19) ***
The operation was successful.
Bind result: hr = 0x0. The operation completed successfully.
Assembly manager loaded from:
C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.40607 \mscorwks.dll
Running under executable
c:\Sequencer\RT AudioTest\bin\D ebug\RTAudioTes t.vshost.exe
--- A detailed error log follows.
=== Pre-bind state information ===
LOG: User = TRINITY\Dan
LOG: DisplayName = RTAudioTest, Version=1.0.172 5.38566,
Culture=neutral , PublicKeyToken= null
(Fully-specified)
LOG: Appbase = file:///c:/Sequencer/RTAudioTest/bin/Debug/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = RTAudioTest.vsh ost.exe
Calling assembly : vshostutil, Version=8.0.120 0.0, Culture=neutral ,
PublicKeyToken= b03f5f7f11d50a3 a.
===
LOG: This bind is in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from
C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.40607 \config\machine .config.
LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///c:/Sequencer/RTAudioTest/bin/Debug/RTAudioTest.dll .
LOG: Attempting download of new URL
file:///c:/Sequencer/RTAudioTest/bin/Debug/RTAudioTest/RTAudioTest.dll .
LOG: Attempting download of new URL
file:///c:/Sequencer/RTAudioTest/bin/Debug/RTAudioTest.exe .
LOG: Assembly download was successful. Attempting setup of file:
c:\Sequencer\RT AudioTest\bin\D ebug\RTAudioTes t.exe
LOG: Entering run-from-source setup phase.
LOG: Binding succeeds. Returns assembly from
c:\Sequencer\RT AudioTest\bin\D ebug\RTAudioTes t.exe.
-------------------------------------------------------------------------
Any help would be much appreciated.
Regards,
Daniel Mori 4 1731
Bump. Anyone? even any hints. I can provide other data if need be.
Thankyou.
Thankyou for your response.
I've posted this message on the whidbey newsgroups that you suggested.
I posted the problem here, as I cannot confirm if this is a whidbey
specific problem, General .net problem, or plain old user error.
however, my changes of a response has just doubled. So thankyou.
I managed to solve my problem.
I needed to set my mixed C++ DLL to a 'Resource only DLL'..../NoEntry.
However, after this, I got an Assertion in dbgheap.c...."p UserData != null".
I fixed this by using /include "__DllMainCRTSt artup@12"
Works fine now This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Don Stevic |
last post by:
I am running VS2005 and using VSTO for Word.
I keep getting this error saying that there is no source code available for
this location when I try and run this application.
I am going to try and reinstall Office 2003 and see if that fixes this, but
it is talking about the mscorlib.dll and that isn’t Office.
|
by: clintonG |
last post by:
I haven't installed VS2005 B2 yet.
My main concern is installing VS2005 B2 on the XP Pro machine where VSN2003
already exists.
Am I asking for trouble? Your comments...
<%= Clinton Gallagher
|
by: Ken Varn |
last post by:
I am trying to remote debug a C# application but the debugger is reporting
the following exception:
An unhandled exception of type 'System.IO.FileLoadException' occurred in
Unknown Module.
Additional information: Unverifiable assembly 'FrameGrabber' failed policy
check.
The FrameGrabber assembly is a C++ managed DLL.
|
by: Andre Lorbach |
last post by:
Hi all,
I hope I picked up the right group ;)
A few days ago I installed the VS2005 Beta and started playing with
it.
First of all the (Profile Guided Optimizations) PGO Feature looks very
cool :)
After some reading and testing, I got it to work. I followed this
article:
|
by: rogsonl |
last post by:
My computer was moved last week, and the company changed the network groups
we work on. As a result, one of the main benefits from Whidbey (database
connectivity) no longer works.
Situation:
1. I open a new project based on a windows form
2. I click on "data" and then "Add New Data Source" then I click on next
within the wizard
3. I have 3 choices Database, Local Database, Web service and Object.
4. I choose Database, click next and get...
| |
by: Daniel Mori |
last post by:
Im at a loss on where to proceed next. I wonder if anyone can help
me.
I have a managed C++ DLL is basically a thin wrapper around several
unmanaged classes. This DLL builds fine.
In my main C# application I have setup a project reference to this
DLL.
Im able to reference these managed .DLL classes from within my code
without problem.
|
by: Chertzy B |
last post by:
Datasets in Whidbey (Beta 2) contain a namespace property suggesting
that it is possible to web enable them.
However, it seems very difficult to do this. Take the following
scenario
3 projects in a solution
WidgetWindows (a windows application)
WidgetLibrary (a project containing datasets)
|
by: Doug |
last post by:
I'm having problems w/ the VS2005 debugger with C#. It blows past any
breakpoints in even the simplest "Hello World" console application. I can't
do any step-by-step debugging. I've provided the code and debugging output
later in this post.
I've seen a number of threads with similar problems that I'll address below.
The one that's the largest concern is this one, which talks about the same
problem trying to use the debugger with SQL...
|
by: scarleton |
last post by:
A coworker and I have spent the last day and a half trying to track
down this bug in our code. We found the solution and thought we might
post it to help others out...
The setup: Class FinalForm derives from Class BaseForm that derives
from System.Windows.Forms.
public class BaseForm : Forms {}
public class FinalForm : BaseForm {}
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |