Update contrib.
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test\misc\t_destruct2.cpp
19 #include <e32msgqueue.h>
20 #include "t_destruct.h"
22 class TTestObjectDynamic
26 ~TTestObjectDynamic();
29 TTestObjectDynamic GlobalObjectWithDestructor;
31 void Panic(TInt aReason)
33 User::Panic(_L("t_destruct_dll2"), aReason);
36 TTestObjectDynamic::TTestObjectDynamic()
38 RDebug::Printf("t_destruct_dll2 constructor called\n");
40 RMsgQueue<TMessage> messageQueue;
41 r = messageQueue.OpenGlobal(KMessageQueueName);
44 r = messageQueue.Send(EMessageConstructDynamic);
50 TTestObjectDynamic::~TTestObjectDynamic()
52 RDebug::Printf("t_destruct_dll2 destructor called\n");
54 RMsgQueue<TMessage> messageQueue;
55 r = messageQueue.OpenGlobal(KMessageQueueName);
58 r = messageQueue.Send(EMessageDestructDynamic);
64 EXPORT_C void DynamicMain()