Discussion:
[gecode-users] Loading the C runtime library without using a manifest
Alexander Kleff
2011-01-14 14:52:17 UTC
Permalink
Hi everyone!
According to the last sentence in the last mail under "Linking to Gecode with Microsoft Visual C++" you wait until somebody complains about the absence of a manifest.
Well, I had some trouble loading Gecode libraries as I ran into the Microsoft runtime error R6034 which is "An application has made an attempt to load the C runtime library without using a manifest." Since Gecode doesn't come with a manifest, I added a <dependency> statement for the needed runtime to the manifest of the calling application manually. So now it loads but it seems to me that it would be "cleaner" to have this in Gecode. Do you agree? Or am I mislead?
For the sake of completeness, I'm currently migrating to Visual Studio 2010 under Win7. By the way, the calling application is written in C#.
Best regards,
Alexander
Christian Schulte
2011-01-14 15:00:57 UTC
Permalink
Hi,



Actually I have to admit that (as you found out) we have to tried to ignore
this as much as possible, in particular as MSVC 2008 and MSVC 2010 do and
require different things regarding manifests.



Okay, the first user has complained: we are going to look into it in one of
the next (if not the next) releases. Could I get back to you as a possible
tester of what we might do?



Thanks for letting us know.



Best

Christian



--

Christian Schulte, www.ict.kth.se/~cschulte/



From: users-***@gecode.org [mailto:users-***@gecode.org] On Behalf
Of Alexander Kleff
Sent: Friday, January 14, 2011 3:52 PM
To: ***@gecode.org
Subject: [gecode-users] Loading the C runtime library without using a
manifest



Hi everyone!

According to the last sentence in the last mail under "Linking to Gecode
with Microsoft Visual C++" you wait until somebody complains about the
absence of a manifest.

Well, I had some trouble loading Gecode libraries as I ran into the
Microsoft runtime error R6034 which is "An application has made an attempt
to load the C runtime library without using a manifest." Since Gecode
doesn't come with a manifest, I added a <dependency> statement for the
needed runtime to the manifest of the calling application manually. So now
it loads but it seems to me that it would be "cleaner" to have this in
Gecode. Do you agree? Or am I mislead?

For the sake of completeness, I'm currently migrating to Visual Studio 2010
under Win7. By the way, the calling application is written in C#.

Best regards,

Alexander
Christian Schulte
2011-01-18 10:42:33 UTC
Permalink
Hi Alexander,



I just build dlls for Gecode 3.4.2 with manifests embedded. Could you please
try whether this solves your problem?



An archive with just the dlls, pdbs, and libs can be found here (they are
actually build from the trunk but should work):

http://dl.dropbox.com/u/5119459/Gecode-3.4.2-manifest-dll.7z



Best

Christian



--

Christian Schulte, www.ict.kth.se/~cschulte/



From: Christian Schulte [mailto:***@kth.se]
Sent: Friday, January 14, 2011 4:01 PM
To: 'Alexander Kleff'; '***@gecode.org'
Subject: RE: [gecode-users] Loading the C runtime library without using a
manifest



Hi,



Actually I have to admit that (as you found out) we have to tried to ignore
this as much as possible, in particular as MSVC 2008 and MSVC 2010 do and
require different things regarding manifests.



Okay, the first user has complained: we are going to look into it in one of
the next (if not the next) releases. Could I get back to you as a possible
tester of what we might do?



Thanks for letting us know.



Best

Christian



--

Christian Schulte, www.ict.kth.se/~cschulte/



From: users-***@gecode.org [mailto:users-***@gecode.org] On Behalf
Of Alexander Kleff
Sent: Friday, January 14, 2011 3:52 PM
To: ***@gecode.org
Subject: [gecode-users] Loading the C runtime library without using a
manifest



Hi everyone!

According to the last sentence in the last mail under "Linking to Gecode
with Microsoft Visual C++" you wait until somebody complains about the
absence of a manifest.

Well, I had some trouble loading Gecode libraries as I ran into the
Microsoft runtime error R6034 which is "An application has made an attempt
to load the C runtime library without using a manifest." Since Gecode
doesn't come with a manifest, I added a <dependency> statement for the
needed runtime to the manifest of the calling application manually. So now
it loads but it seems to me that it would be "cleaner" to have this in
Gecode. Do you agree? Or am I mislead?

For the sake of completeness, I'm currently migrating to Visual Studio 2010
under Win7. By the way, the calling application is written in C#.

Best regards,

Alexander
Alexander Kleff
2011-01-18 13:19:53 UTC
Permalink
Hi,

indeed, with these dlls I do not need to change anything in my test application to make it run (didn't try it in the actual application). So for now, I'm fine. Thanks.
Do you intend to provide x64 and debug binaries as well?
Would be nice.

Best regards,
Alexander

Von: Christian Schulte [mailto:***@kth.se]<mailto:[mailto:***@kth.se]>
Gesendet: Dienstag, 18. Januar 2011 11:43
An: 'Christian Schulte'; Alexander Kleff; ***@gecode.org<mailto:***@gecode.org>
Betreff: RE: [gecode-users] Loading the C runtime library without using a manifest

Hi Alexander,

I just build dlls for Gecode 3.4.2 with manifests embedded. Could you please try whether this solves your problem?

An archive with just the dlls, pdbs, and libs can be found here (they are actually build from the trunk but should work):
http://dl.dropbox.com/u/5119459/Gecode-3.4.2-manifest-dll.7z

Best
Christian

--
Christian Schulte, www.ict.kth.se/~cschulte/<http://www.ict.kth.se/~cschulte/>

From: Christian Schulte [mailto:***@kth.se]<mailto:[mailto:***@kth.se]>
Sent: Friday, January 14, 2011 4:01 PM
To: 'Alexander Kleff'; '***@gecode.org'
Subject: RE: [gecode-users] Loading the C runtime library without using a manifest

Hi,

Actually I have to admit that (as you found out) we have to tried to ignore this as much as possible, in particular as MSVC 2008 and MSVC 2010 do and require different things regarding manifests.

Okay, the first user has complained: we are going to look into it in one of the next (if not the next) releases. Could I get back to you as a possible tester of what we might do?

Thanks for letting us know.

Best
Christian

--
Christian Schulte, www.ict.kth.se/~cschulte/<http://www.ict.kth.se/~cschulte/>

From: users-***@gecode.org<mailto:users-***@gecode.org> [mailto:users-***@gecode.org]<mailto:[mailto:users-***@gecode.org]> On Behalf Of Alexander Kleff
Sent: Friday, January 14, 2011 3:52 PM
To: ***@gecode.org<mailto:***@gecode.org>
Subject: [gecode-users] Loading the C runtime library without using a manifest

Hi everyone!
According to the last sentence in the last mail under "Linking to Gecode with Microsoft Visual C++" you wait until somebody complains about the absence of a manifest.
Well, I had some trouble loading Gecode libraries as I ran into the Microsoft runtime error R6034 which is "An application has made an attempt to load the C runtime library without using a manifest." Since Gecode doesn't come with a manifest, I added a <dependency> statement for the needed runtime to the manifest of the calling application manually. So now it loads but it seems to me that it would be "cleaner" to have this in Gecode. Do you agree? Or am I mislead?
For the sake of completeness, I'm currently migrating to Visual Studio 2010 under Win7. By the way, the calling application is written in C#.
Best regards,
Alexander
Christian Schulte
2011-01-18 13:24:40 UTC
Permalink
If you really insist I could back port the fix to 3.4.2 and release new MSIs
for windows. Or could you wait for the next release?



Christian



--

Christian Schulte, www.ict.kth.se/~cschulte/



From: Alexander Kleff [mailto:***@ptv.de]
Sent: Tuesday, January 18, 2011 2:20 PM
To: ***@kth.se; ***@gecode.org
Subject: AW: [gecode-users] Loading the C runtime library without using a
manifest



Hi,



indeed, with these dlls I do not need to change anything in my test
application to make it run (didn't try it in the actual application). So for
now, I'm fine. Thanks.

Do you intend to provide x64 and debug binaries as well?

Would be nice.



Best regards,

Alexander



Von: Christian Schulte [mailto:***@kth.se]
Gesendet: Dienstag, 18. Januar 2011 11:43
An: 'Christian Schulte'; Alexander Kleff; <mailto:***@gecode.org>
***@gecode.org
Betreff: RE: [gecode-users] Loading the C runtime library without using a
manifest



Hi Alexander,



I just build dlls for Gecode 3.4.2 with manifests embedded. Could you please
try whether this solves your problem?



An archive with just the dlls, pdbs, and libs can be found here (they are
actually build from the trunk but should work):

http://dl.dropbox.com/u/5119459/Gecode-3.4.2-manifest-dll.7z



Best

Christian



--

Christian Schulte, www.ict.kth.se/~cschulte/



From: Christian Schulte [mailto:***@kth.se]
Sent: Friday, January 14, 2011 4:01 PM
To: 'Alexander Kleff'; '***@gecode.org'
Subject: RE: [gecode-users] Loading the C runtime library without using a
manifest



Hi,



Actually I have to admit that (as you found out) we have to tried to ignore
this as much as possible, in particular as MSVC 2008 and MSVC 2010 do and
require different things regarding manifests.



Okay, the first user has complained: we are going to look into it in one of
the next (if not the next) releases. Could I get back to you as a possible
tester of what we might do?



Thanks for letting us know.



Best

Christian



--

Christian Schulte, www.ict.kth.se/~cschulte/



From: users-***@gecode.org [mailto:users-***@gecode.org] On Behalf
Of Alexander Kleff
Sent: Friday, January 14, 2011 3:52 PM
To: ***@gecode.org
Subject: [gecode-users] Loading the C runtime library without using a
manifest



Hi everyone!

According to the last sentence in the last mail under "Linking to Gecode
with Microsoft Visual C++" you wait until somebody complains about the
absence of a manifest.

Well, I had some trouble loading Gecode libraries as I ran into the
Microsoft runtime error R6034 which is "An application has made an attempt
to load the C runtime library without using a manifest." Since Gecode
doesn't come with a manifest, I added a <dependency> statement for the
needed runtime to the manifest of the calling application manually. So now
it loads but it seems to me that it would be "cleaner" to have this in
Gecode. Do you agree? Or am I mislead?

For the sake of completeness, I'm currently migrating to Visual Studio 2010
under Win7. By the way, the calling application is written in C#.

Best regards,

Alexander
Christian Schulte
2011-01-18 19:40:53 UTC
Permalink
How about releasing a new version within a week. Would be in fact less work
than backporting and some more bug fixes would get out.



Deal?



Christian



--

Christian Schulte, web.ict.kth.se/~cschulte/





From: Alexander Kleff [mailto:***@ptv.de]
Sent: Tuesday, January 18, 2011 7:02 PM
To: ***@kth.se
Subject: AW: [gecode-users] Loading the C runtime library without using a
manifest



Hi,



At least I need some fix now, so either your back port or my workaround. To
back port would be very kind of you as the workaround is a bit involved
because the manifest is created automatically and has to be edited by hand
afterwards (or possibly by a script in the future).

I don't know how much inconvenience it causes to you to back port but it
would help me very much.



Best regards,

Alexander



Von: Christian Schulte [mailto:***@kth.se]
Gesendet: Dienstag, 18. Januar 2011 14:25
An: Alexander Kleff; ***@gecode.org
Betreff: RE: [gecode-users] Loading the C runtime library without using a
manifest



If you really insist I could back port the fix to 3.4.2 and release new MSIs
for windows. Or could you wait for the next release?



Christian



--

Christian Schulte, www.ict.kth.se/~cschulte/



From: Alexander Kleff [mailto:***@ptv.de]
Sent: Tuesday, January 18, 2011 2:20 PM
To: ***@kth.se; ***@gecode.org
Subject: AW: [gecode-users] Loading the C runtime library without using a
manifest



Hi,



indeed, with these dlls I do not need to change anything in my test
application to make it run (didn't try it in the actual application). So for
now, I'm fine. Thanks.

Do you intend to provide x64 and debug binaries as well?

Would be nice.



Best regards,

Alexander



Von: Christian Schulte [mailto:***@kth.se]
Gesendet: Dienstag, 18. Januar 2011 11:43
An: 'Christian Schulte'; Alexander Kleff; <mailto:***@gecode.org>
***@gecode.org
Betreff: RE: [gecode-users] Loading the C runtime library without using a
manifest



Hi Alexander,



I just build dlls for Gecode 3.4.2 with manifests embedded. Could you please
try whether this solves your problem?



An archive with just the dlls, pdbs, and libs can be found here (they are
actually build from the trunk but should work):

http://dl.dropbox.com/u/5119459/Gecode-3.4.2-manifest-dll.7z



Best

Christian



--

Christian Schulte, www.ict.kth.se/~cschulte/



From: Christian Schulte [mailto:***@kth.se]
Sent: Friday, January 14, 2011 4:01 PM
To: 'Alexander Kleff'; '***@gecode.org'
Subject: RE: [gecode-users] Loading the C runtime library without using a
manifest



Hi,



Actually I have to admit that (as you found out) we have to tried to ignore
this as much as possible, in particular as MSVC 2008 and MSVC 2010 do and
require different things regarding manifests.



Okay, the first user has complained: we are going to look into it in one of
the next (if not the next) releases. Could I get back to you as a possible
tester of what we might do?



Thanks for letting us know.



Best

Christian



--

Christian Schulte, www.ict.kth.se/~cschulte/



From: users-***@gecode.org [mailto:users-***@gecode.org] On Behalf
Of Alexander Kleff
Sent: Friday, January 14, 2011 3:52 PM
To: ***@gecode.org
Subject: [gecode-users] Loading the C runtime library without using a
manifest



Hi everyone!

According to the last sentence in the last mail under "Linking to Gecode
with Microsoft Visual C++" you wait until somebody complains about the
absence of a manifest.

Well, I had some trouble loading Gecode libraries as I ran into the
Microsoft runtime error R6034 which is "An application has made an attempt
to load the C runtime library without using a manifest." Since Gecode
doesn't come with a manifest, I added a <dependency> statement for the
needed runtime to the manifest of the calling application manually. So now
it loads but it seems to me that it would be "cleaner" to have this in
Gecode. Do you agree? Or am I mislead?

For the sake of completeness, I'm currently migrating to Visual Studio 2010
under Win7. By the way, the calling application is written in C#.

Best regards,

Alexander
Alexander Kleff
2011-01-19 07:38:36 UTC
Permalink
Yeah,

that would be great, I didn't know a new release was coming so soon.
Thanks a lot.

Alexander

Von: Christian Schulte [mailto:***@kth.se]
Gesendet: Dienstag, 18. Januar 2011 20:41
An: Alexander Kleff
Cc: ***@gecode.org
Betreff: RE: [gecode-users] Loading the C runtime library without using a manifest

How about releasing a new version within a week. Would be in fact less work than backporting and some more bug fixes would get out.

Deal?

Christian

--
Christian Schulte, web.ict.kth.se/~cschulte/


From: Alexander Kleff [mailto:***@ptv.de]
Sent: Tuesday, January 18, 2011 7:02 PM
To: ***@kth.se
Subject: AW: [gecode-users] Loading the C runtime library without using a manifest

Hi,

At least I need some fix now, so either your back port or my workaround. To back port would be very kind of you as the workaround is a bit involved because the manifest is created automatically and has to be edited by hand afterwards (or possibly by a script in the future).
I don't know how much inconvenience it causes to you to back port but it would help me very much.

Best regards,
Alexander

Von: Christian Schulte [mailto:***@kth.se]
Gesendet: Dienstag, 18. Januar 2011 14:25
An: Alexander Kleff; ***@gecode.org
Betreff: RE: [gecode-users] Loading the C runtime library without using a manifest

If you really insist I could back port the fix to 3.4.2 and release new MSIs for windows. Or could you wait for the next release?

Christian

--
Christian Schulte, www.ict.kth.se/~cschulte/

From: Alexander Kleff [mailto:***@ptv.de]
Sent: Tuesday, January 18, 2011 2:20 PM
To: ***@kth.se; ***@gecode.org
Subject: AW: [gecode-users] Loading the C runtime library without using a manifest

Hi,

indeed, with these dlls I do not need to change anything in my test application to make it run (didn't try it in the actual application). So for now, I'm fine. Thanks.
Do you intend to provide x64 and debug binaries as well?
Would be nice.

Best regards,
Alexander

Von: Christian Schulte [mailto:***@kth.se]<mailto:[mailto:***@kth.se]>
Gesendet: Dienstag, 18. Januar 2011 11:43
An: 'Christian Schulte'; Alexander Kleff; ***@gecode.org<mailto:***@gecode.org>
Betreff: RE: [gecode-users] Loading the C runtime library without using a manifest

Hi Alexander,

I just build dlls for Gecode 3.4.2 with manifests embedded. Could you please try whether this solves your problem?

An archive with just the dlls, pdbs, and libs can be found here (they are actually build from the trunk but should work):
http://dl.dropbox.com/u/5119459/Gecode-3.4.2-manifest-dll.7z

Best
Christian

--
Christian Schulte, www.ict.kth.se/~cschulte/<http://www.ict.kth.se/~cschulte/>

From: Christian Schulte [mailto:***@kth.se]<mailto:[mailto:***@kth.se]>
Sent: Friday, January 14, 2011 4:01 PM
To: 'Alexander Kleff'; '***@gecode.org'
Subject: RE: [gecode-users] Loading the C runtime library without using a manifest

Hi,

Actually I have to admit that (as you found out) we have to tried to ignore this as much as possible, in particular as MSVC 2008 and MSVC 2010 do and require different things regarding manifests.

Okay, the first user has complained: we are going to look into it in one of the next (if not the next) releases. Could I get back to you as a possible tester of what we might do?

Thanks for letting us know.

Best
Christian

--
Christian Schulte, www.ict.kth.se/~cschulte/<http://www.ict.kth.se/~cschulte/>

From: users-***@gecode.org<mailto:users-***@gecode.org> [mailto:users-***@gecode.org]<mailto:[mailto:users-***@gecode.org]> On Behalf Of Alexander Kleff
Sent: Friday, January 14, 2011 3:52 PM
To: ***@gecode.org<mailto:***@gecode.org>
Subject: [gecode-users] Loading the C runtime library without using a manifest

Hi everyone!
According to the last sentence in the last mail under "Linking to Gecode with Microsoft Visual C++" you wait until somebody complains about the absence of a manifest.
Well, I had some trouble loading Gecode libraries as I ran into the Microsoft runtime error R6034 which is "An application has made an attempt to load the C runtime library without using a manifest." Since Gecode doesn't come with a manifest, I added a <dependency> statement for the needed runtime to the manifest of the calling application manually. So now it loads but it seems to me that it would be "cleaner" to have this in Gecode. Do you agree? Or am I mislead?
For the sake of completeness, I'm currently migrating to Visual Studio 2010 under Win7. By the way, the calling application is written in C#.
Best regards,
Alexander

Joe Porter
2011-01-18 13:20:53 UTC
Permalink
Let me be the second user to complain, then. I built two very similar
applications against Gecode 3.4.2 (VS 2010 and Win 7). One worked fine, and
the other couldn't find the C runtime. We compared the project settings
between the two, and found that the first was actually picking up the C
runtime from another library in the project just by luck. Stealing the
manifest from the working binary and adding it to the second binary caused
the second to work as well. Obviously that's not the ideal solution long
term, and really only worked because the dependencies were fairly simple in
both cases.

-Joe Porter
ISIS, Vanderbilt University
Loading...