| View previous topic :: View next topic |
| Author |
Message |
jeanlou Guest
|
Posted: Thu Jan 19, 2006 5:04 pm Post subject: Problem with orbacus 4.3 using c++.Net 2003 |
|
|
Hallo
I have an application running with Orbacus 4.3, C++6.0(Server) and
Java(Client).
I need help concerning the migration from C++6.0 to C++-Net 2003. In
fact I receive exactly the same problem that I received with C++6.0
before I update the compiler flag /MLd(Debug Single-Threaded) to
/MDd(Debug Multi threaded DLL). The recent days I have tried to find a
solution by modifying the flag of the project settings of my
application under c++.Net; but I got no solution. The system goes throw
the same code sequence and I receive the same "debug failed
assertion" in the module dbgheap.c
(Using c++6.0 the Line Nr was 1044 and with C++.Net it is 1132).
I need very urgently to get my system running with C++.Net; but I need
information's about the flag to be used to solve this problem or to
know what is going wrong with C++.Net?
Compiler flags C++6.0
/nologo /MDd /w /W0 /Gm /GR /GX /ZI /D "WIN32" /D "_DEBUG" /D
"_CONSOLE" /D "_MBCS" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
Compiler flags C++.Net
/D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FD /EHsc /MDd /GR
/Fp".\Debug/eLOckDb_Cons.pch" /Fo".\Debug/" /Fd".\Debug/" /W0 /nologo
/c /ZI /Gd
I hope I will receive a response soon. Thanks a lot in advance and
Regards
Jean-Louis
--------------------------------------------------------------------------------
Von: Decoster Jean Louis
Gesendet: Dienstag, 17. Januar 2006 09:33
An: ob-users (AT) orbacus (DOT) com
Betreff: AW: [OB-Users] deactivation of implicit factory object?
Hallo
I only want short to say that I have found the error concerning my
failure.
I have founf in the configuration file from Orbacus that Orbacus uses
the c++6.0 project option flag /MDd. My project was using the value
/MLd. I only changed that and the system runs ok.
I profit from this writing to ask for information concerning the use of
Orbacus 4.3 and c++ dotNet? I need try to move to c++ dotNet but I
don't know what I have exactly to do?
Are there some restrictions. Is that easy to make the code from
Orbacus compiler running well with c++ dotNet? Thanks in advance for
suggestions and types.
Jean-Louis
--------------------------------------------------------------------------------
Von: ob-users-bounces (AT) orbacus (DOT) com [mailto:ob-users-bounces (AT) orbacus (DOT) com]
Im Auftrag von Decoster Jean Louis
Gesendet: Dienstag, 10. Januar 2006 11:56
An: David Weir
Cc: ob-users (AT) orbacus (DOT) com
Betreff: [OB-Users] deactivation of implicit factory object?
Hi,
At this moment the system is not working when I want to deactivate an
implicit activated factory object? I have tried all codes possibilities
found in your documentation but I always get the following failure:
HEAP[eLOckDb_Cons.exe]: Invalid Address specified to RtlValidateHeap(
003B0000, 01148508 )
Activation of the object:
::eLockidl::placeCorba_ptr vdb_placetable::getNew() {
obj_Place* newPlace = new obj_Place(this);
return newPlace->_this();
}
Deactivation of the object:
void obj_Place::destroy() {
if(id > 0) {
// Use _default_POA (=
rootPOA) for deactivation as object
// was created with
_this() operation
//
PortableServer::POA_var
poa = _default_POA();
PortableServer::ObjectId_var oid = poa->servant_to_id(this);
poa ->
deactivate_object(oid);
}
}
The failure comes in Template module when the statement
PortableServer::ObjectId_var oid = poa->servant_to_id(this); has been
executed in the destroy function?
//
// Standard IDL to C++ Mapping
//
SeqVar() : ptr_(0) { }
SeqVar(T* p) : ptr_(p) { assert_nca(p != 0, NCANullInit); }
#ifdef HAVE_VCPLUSPLUS_BUGS
SeqVar(const SeqVar<T>& r) { ptr_ = r.ptr_ ? new T(*r.ptr_) : 0 ; }
#else
SeqVar(const SeqVar<T>& r) : ptr_(r.ptr_ ? new T(*r.ptr_) : 0) { }
#endif
~SeqVar() { delete ptr_; }
SeqVar<T>& operator=(T*);
SeqVar<T>& operator=(const SeqVar<T>&);
I can't explain myself what is going wrong. I should be very pleased
to receive some suggestions about how can I solve my problem.
Thank you very much and regards
Jean-Louis
Once more have a very good and happy 2006 year - Encore une fois
meilleurs voeux pour 2006 |
|
| Back to top |
|
 |
lqqchen Guest
|
Posted: Tue Jan 24, 2006 12:26 pm Post subject: Re: Problem with orbacus 4.3 using c++.Net 2003 |
|
|
Hi,
I think you need to rebuild your orbacus using the new compiler (.Net
2003) and then can you use it.
Good luck!
lqqchen |
|
| Back to top |
|
 |
jeanlou Guest
|
Posted: Wed Jan 25, 2006 1:28 pm Post subject: Re: Problem with orbacus 4.3 using c++.Net 2003 |
|
|
Hi
Many thanks for your advice.I work with a machine with only visual
studio 2003 and when I try to
compile orbacus I receive problems with msvcp60d.dll and msvcrtd.dll
which are not found. When I try to use these dll of course the script
stops with an assertion in dbgheap.c.
I am really confuse with this situation but perhaps you know a solution
which can help me?
Thanks a lot for your response
regards
Jean-Louis
Répondre |
|
| Back to top |
|
 |
jeanlou Guest
|
Posted: Thu Feb 02, 2006 12:27 pm Post subject: Re: Problem with orbacus 4.3 using c++.Net 2003 |
|
|
Hallo,
Thank you for your advice. Suddenly I noticed that the system was still
running with old DLL staying in system32. I deleted all of them and
Orbacus installation using C++.Net was running without problems. Did
you already tried to install Orbacus 4.3 using C++.Net 2005?
Regards,
Jean-Louis |
|
| Back to top |
|
 |
lqqchen Guest
|
Posted: Wed Mar 01, 2006 7:12 am Post subject: Re: Problem with orbacus 4.3 using c++.Net 2003 |
|
|
Hi,
Glad to know that you've got your problem solved.
No, I didn't have time to try Orbacus with newer C++ compiler Have
to focus on my own work.
Regards.
lqqchen |
|
| Back to top |
|
 |
|