Message: Geant4 in a MFC application? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Geant4 in a MFC application? 

Keywords: MFC
Forum: User Requirements
Date: 27 May, 2008
From: Markus Wagner <markus.wagner@tu-bs.de>

Hi!

Has anobody experience in using geant4 in a MFC application? I was able to compile and run most of the geant4 examples in Visual Studio 2005 (not over cygwin, directly as project in Visual Studio). But these examples are all configured as console applications. I tried to extend a simple MFC programm with the geant4 capabilities. Compilation was done with no errors but the program crashes. always in:

inline void __CLR_OR_THIS_CALL _Container_base::_Orphan_all() const
	{	// orphan all iterators
	_Lockit _Lock(_LOCK_DEBUG);
	if (_Myfirstiter != _IGNORE_MYITERLIST)
		{
		for (_Iterator_base **_Pnext = (_Iterator_base **)&_Myfirstiter;
			*_Pnext != 0; *_Pnext = (*_Pnext)->_Mynextiter)
-->			(*_Pnext)->_Mycont = 0;
		*(_Iterator_base **)&_Myfirstiter = 0;
		}
	}

Any ideas or experiences?

Thanks in advance

Markus

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "Geant4 in a MFC application?"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]