473,395 Members | 2,151 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,395 software developers and data experts.

C Runtime Error R6034

We are writing a MSI installer using a setup project in Visual Studio 2005.
All dll's are built with VC 8 so each dll uses a Manifest embedded in a
resource. The installer does the following.

1) install VC8 runtime on the target machine,

2) moves and registers the dlls for the application

3) Run a custom action c# script on the commit event. The script loads a dll
via pinvoke and ivokes a function. The function itself instantiates a com
object from another dll using CoCreateInstance. CoCreateInstance fails and
MSIExec.exe gets the c runtime error R6034

Any ideas. More information can be provided as needed."
Nov 6 '06 #1
3 12085

Does the CoCreateInstance work if you call it not from the installer?

--
alexcohn
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Nov 12 '06 #2
Yes, CoCreateIntance works correctly outside of the installation process.
The runtime error appears when a dll is loaded from another process that was
started up on the Commit event during installation.

"alexcohn" wrote:
>
Does the CoCreateInstance work if you call it not from the installer?

--
alexcohn
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Nov 16 '06 #3
The problem was solved by msdn support. We are using Tcl in our installation
and it turns out that Tcl changes the SystemRoot envrionment variable to have
a forward slash in the path. We removed the manipulatioin of the environment
variables as we do not use them from Tcl and that solved the problem.

"bhanks" wrote:
We are writing a MSI installer using a setup project in Visual Studio 2005.
All dll's are built with VC 8 so each dll uses a Manifest embedded in a
resource. The installer does the following.

1) install VC8 runtime on the target machine,

2) moves and registers the dlls for the application

3) Run a custom action c# script on the commit event. The script loads a dll
via pinvoke and ivokes a function. The function itself instantiates a com
object from another dll using CoCreateInstance. CoCreateInstance fails and
MSIExec.exe gets the c runtime error R6034

Any ideas. More information can be provided as needed."
Dec 11 '06 #4

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

Similar topics

5
by: Nathan Bloom | last post by:
Hi, I have a secured database that runs fine on the computer the database is installed on. I have several workstations with access runtime installed that also need access to the database. ...
2
by: Paul | last post by:
I'm hoping someone can help me with the problem. I have a database where the default value for a date field in a table is =date() This works perfectly in my table and on my form. But when I...
0
by: Kirk | last post by:
I'm trying to use a Web Service to be a Remoting client of an existing ..NET 2.0 server. But I get the following error when I try to use System.Runtime.Remoting.Channels.Http in my WebService. ...
7
by: Abubakar | last post by:
Hi. I got the following error while running an exe made in visual studio 2k5c++ (all native unmanaged) --------------------------- Microsoft Visual C++ Debug Library...
0
by: =?Utf-8?B?Sm9l?= | last post by:
Very weird; I lost a day worth of work because of this problem. I have an ASP.NET application written in VB that is using MySQL database. Shortly, a page creates a Customer record in the database...
7
by: Norman Diamond | last post by:
A project depends on VC runtime from Visual Studio 2005 SP1, and DotNet Framework 2. Options are set in the setup project properties, so if these two dependencies are not already installed then...
1
by: crusoein | last post by:
I have ported a Vc6 dll to VC 8. Inorder to test the new dll i have made a test application (console )in c# which calls the C++ unmanaged code using marshalling. First when i run the app i was...
2
by: blogman | last post by:
I am getting a Visual studio 2008 IDE application R6034 runtime error. This means that the IDE application is raising the error not the application I am building. This means that Microsoft did not...
1
by: BL3WC | last post by:
Hi, I'd created a MDE under Access 2003. It is now under testing stage. Some of the users will use Access 2003 runtime and some will use Access 2007 runtime to run this MDE. I installed the...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
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,...

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.