Hi,
I try to compile ZThread 2.3.2 for Windows XP SP2 platform by Borland C++ Builder 5.5 command line tools.
First problem is that compiler complained that 'get' is not a member of 'CountedPtr' in the file CountedPtr.h
>> return lhs.equal(rhs.get);
I just replaced these strings with
>> return lhs.equal(rhs);
and it compiled succesfully.
Second problem is that my simplest program terminates abnormally.
Here is source:
Hi,
I try to compile ZThread 2.3.2 for Windows XP SP2 platform by Borland C++ Builder 5.5 command line tools.
First problem is that compiler complained that 'get' is not a member of 'CountedPtr' in the file CountedPtr.h
>> return lhs.equal(rhs.get);
I just replaced these strings with
>> return lhs.equal(rhs);
and it compiled succesfully.
Second problem is that my simplest program terminates abnormally.
Here is source:
#include <iostream>
#include "zthread/runnable.h"
#include "zthread/thread.h"
using namespace std;
using namespace ZThread;
class Hello: public Runnable
{
public:
virtual void run()
{}
};
int main()
{
cout << "checkpoint 1 " << endl;
Thread t(new Hello());
cout << "checkpoint 2" << endl;
return 0;
}
-------------------------
Program output is:
ThreadQueue created
checkpoint 1
User thread created.
Reference thread created.
1 reference-thread added.
pollPendingThreads()
1 user-thread added.
Assertion failed: 0, file src\vanilla/../win32/FastLock.h, line 79
Abnormal program termination
-----------------------
I have no idea what to do with it.