Click here to Skip to main content
15,886,840 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: How to stop a simulation while running [modified] Pin
KlaasVersteeg23-Jun-10 21:08
KlaasVersteeg23-Jun-10 21:08 
GeneralRe: How to stop a simulation while running Pin
Luc Pattyn24-Jun-10 2:48
sitebuilderLuc Pattyn24-Jun-10 2:48 
GeneralRe: How to stop a simulation while running Pin
KlaasVersteeg24-Jun-10 3:04
KlaasVersteeg24-Jun-10 3:04 
GeneralRe: How to stop a simulation while running Pin
Luc Pattyn24-Jun-10 3:38
sitebuilderLuc Pattyn24-Jun-10 3:38 
GeneralRe: How to stop a simulation while running Pin
KlaasVersteeg24-Jun-10 3:49
KlaasVersteeg24-Jun-10 3:49 
Questionproblem with BOOST threads with mixed mode C++/CLI and Visual Studio 2010 [modified] Pin
T210221-Jun-10 18:38
T210221-Jun-10 18:38 
AnswerRe: problem with BOOST threads with mixed mode C++/CLI and Visual Studio 2010 Pin
Paul Michalik20-Aug-10 23:14
Paul Michalik20-Aug-10 23:14 
GeneralRe: problem with BOOST threads with mixed mode C++/CLI and Visual Studio 2010 Pin
T210220-Aug-10 23:22
T210220-Aug-10 23:22 
Thanks for the reply.
I have written a program that works as a CLR executable with boost threads, but when I make it a DLL I get an immediate crash. I have not been able to figure this out and have posted to the boost community without resolution.

Source code for a simple example is below

//CLR_DLL.def
LIBRARY CLR_DLL
EXPORTS
CLR_TEST

//CLR_DLL.h
#ifndef CLR_DLL_H
#define CLR_DLL_H
//define CLR_DLL in the CLR_DLL project, but not the executable
#ifndef CLR_DLL
#pragma comment(lib, "CLR.lib")
#pragma message("Using Library CLR.lib")
#endif
void _stdcall CLR_TEST();
#endif

//CLR_DLL.cpp
#ifndef CLR_DLL_H
#include <clr_dll.h>
#endif
//include directory C:\Program Files\boost\boost_1_43_0
//lib directory C:\Program Files\boost\boost_1_43_0\stage\lib
#pragma managed(push, off)
//dll will not compile without next line, but executable would crash without it!
//extern "C" void tss_cleanup_implemented(void) {}
#include <boost thread="" thread.hpp="">
#pragma managed(pop)

#pragma unmanaged
namespace boost {
struct thread::dummy {};
}

namespace boost {
namespace detail {
namespace win32 {
struct _SECURITY_ATTRIBUTES {};
};
};
};


void run() {}

void test() {
boost::thread t(run);
}

void _stdcall CLR_TEST() {
test();
}

//MAIN.cpp in exe project
#include <clr.h>
int main(array<system:tring ^=""> ^args) {
CLR_TEST();
return 0;
}
GeneralRe: problem with BOOST threads with mixed mode C++/CLI and Visual Studio 2010 [modified] Pin
Paul Michalik21-Aug-10 23:40
Paul Michalik21-Aug-10 23:40 
GeneralRe: problem with BOOST threads with mixed mode C++/CLI and Visual Studio 2010 Pin
T210222-Aug-10 1:27
T210222-Aug-10 1:27 
GeneralRe: problem with BOOST threads with mixed mode C++/CLI and Visual Studio 2010 Pin
Paul Michalik22-Aug-10 21:46
Paul Michalik22-Aug-10 21:46 
GeneralRe: problem with BOOST threads with mixed mode C++/CLI and Visual Studio 2010 Pin
T210223-Aug-10 3:38
T210223-Aug-10 3:38 
QuestionUnraveling the Mysteries of Writing a Winsock 2 Layered Service Provider Pin
Pascal Ganaye21-Jun-10 12:16
Pascal Ganaye21-Jun-10 12:16 
AnswerRe: Unraveling the Mysteries of Writing a Winsock 2 Layered Service Provider Pin
Pascal Ganaye22-Jun-10 14:26
Pascal Ganaye22-Jun-10 14:26 
GeneralRe: Unraveling the Mysteries of Writing a Winsock 2 Layered Service Provider Pin
Richard Andrew x6422-Jun-10 14:32
professionalRichard Andrew x6422-Jun-10 14:32 
QuestionAssembly info not showing up in explorer in managed DLL Pin
alleyes16-Jun-10 9:01
professionalalleyes16-Jun-10 9:01 
AnswerRe: Assembly info not showing up in explorer in managed DLL Pin
Nish Nishant19-Jun-10 7:25
sitebuilderNish Nishant19-Jun-10 7:25 
GeneralRe: Assembly info not showing up in explorer in managed DLL Pin
alleyes20-Jun-10 5:53
professionalalleyes20-Jun-10 5:53 
GeneralRe: Assembly info not showing up in explorer in managed DLL Pin
Nish Nishant20-Jun-10 5:54
sitebuilderNish Nishant20-Jun-10 5:54 
QuestionHow can I compile some parts of C++/CLI code as Native and some part as Managed? Pin
glitteringsound7-Jun-10 21:53
glitteringsound7-Jun-10 21:53 
AnswerRe: How can I compile some parts of C++/CLI code as Native and some part as Managed? Pin
Nish Nishant12-Jun-10 6:42
sitebuilderNish Nishant12-Jun-10 6:42 
QuestionExchange Autodiscover Service Pin
Steve Thresher7-Jun-10 6:41
Steve Thresher7-Jun-10 6:41 
QuestionWhy (LoadTypeLibEx failed : : Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))? [modified] Pin
glitteringsound7-Jun-10 6:30
glitteringsound7-Jun-10 6:30 
AnswerRe: Why (LoadTypeLibEx failed : : Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))? Pin
Mircea Puiu25-Jun-10 0:58
Mircea Puiu25-Jun-10 0:58 
QuestionHow to Save Image from WebBrowser Control Pin
voo doo125-Jun-10 6:04
voo doo125-Jun-10 6:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.