< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate] Help on DumCommand - post() failing inDUM::internalProcess()


Found the problem!!

Need to use the /Gr compiler option in VS.net 2003

Bill Kovar
bkovar@xxxxxxxxx
Avaya, Inc.
(732) 852-2609
 

> -----Original Message-----
> From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxxx 
> [mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxxx] On 
> Behalf Of Kovar, William (Bill)
> Sent: Friday, February 02, 2007 5:59 PM
> To: resiprocate-devel@xxxxxxxxxxxxxxxxxxxx
> Subject: [reSIProcate] Help on DumCommand - post() failing 
> inDUM::internalProcess()
> 
> I'm trying to post an end() on a session using DumCommand 
> from my App thread. When post() is called, DUM crashes inside of
> DUM::internalprocess() when trying to create the 
> TransactionUserMessage msg.
> 
> So basically the post() is failing. Any ideas??
> 
> So code below.....
> 
> ------>>>> My DumCommand class
> class CCEndSession : public DumCommand
> {
> public:
>       CCEndSession(InviteSessionHandle h) : mHandle(h){}
>       ~CCEndSession(){}
>       void executeCommand()
>       {
>               if(mHandle.isValid()) {
>                       mHandle.get()->end();
>               }
>       }
>       resip::Message* clone() const{assert(false);return 0;}
>       std::ostream& encode(std::ostream& strm) const
>       {
>       strm << "CCEndSession::encode";
>       return strm;
>       }
>       std::ostream& encodeBrief(std::ostream& strm) const 
> {return encode(strm);}
> private:
>       InviteSessionHandle mHandle;
> };
> 
> ------>>>>> My use of DumCommand
> CCEndSession* cmd = new CCEndSession(sish); 
> device.mua->mDum->post(cmd);
>                
>        
>        
> DialogUsageManager::internalProcess(std::auto_ptr<Message> 
> msg) { // After a Stack ShutdownMessage has been received, 
> don't do anything else in dum if (mShutdownState == Shutdown) {
>       return;
> }
> ---> TransactionUserMessage* tuMsg =
> dynamic_cast<TransactionUserMessage*>(msg.get());
>       if (tuMsg)
>       {
> 
>  
> Bill Kovar
> 
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel@xxxxxxxxxxxxxxxxxxxx
> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel
>