thread trouble
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/03/2005 at 14:27, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.1
Platform: Windows ;
Language(s) : C++ ;---------
Hi,
What's wrong when i do this:
//-----------
class MessageThread : public Thread
{
public:
virtual void Main(void);
};
//---------------------------
void MessageThread::Main(void)
{
// blabla
}
//----------------
And in my code:
MessageThread.Start(TRUE, FALSE);
AND....
MessageThread.End;
--------
Why are the Start ans End statments not accepted
Why do i nowhere in the examples see the Thread.End used ?
Is it taken care of by the OS?
Thanks in advance -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/03/2005 at 03:04, xxxxxxxx wrote:
You might have to do this:
class MessageThread : public Thread
{
public:
virtual void Main(void);
};
void MessageThread::Main(void)
{
// blabla
}
// Nothing changed above, but
// Change/add this in the plugin code:
MessageThread MyThread;
MyThread.Start(TRUE, FALSE);
//---
MyThread.End; -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/03/2005 at 06:41, xxxxxxxx wrote:
Thanks Duck, very stupid of me, but it does not work either...
The code compiles but c4d refuses the plug. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/04/2005 at 15:17, xxxxxxxx wrote:
You both write MyThread.End, but I assume that should be MyThread.End()? (Otherwise it's a no-op.) If C4D refuses the plugin, perhaps you have a global variable somewhere? That isn't allowed, unless you set the __WINCRTINIT define.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/04/2005 at 02:54, xxxxxxxx wrote:
Yes,ok, thanks for the no-op and your respons.
The #define did'nt help, i'm sorry, but i seem to do something wrong elsewhere??