client report a memorypool assert
Options
the client is mulitthread, every thread has a photonpeer.
it's report a memorypool assert when i launch more than two photonpeer(thread), every photonpeer connect success.
platform: windows7.
IDE:visual studio 2010
the assert :
Assertion failed!
Program:...
File: e:\dev\egn\photon-sdk-native\branc...\memorypool.cpp
Line:76
Expression:mLastAlloc != e
it's report a memorypool assert when i launch more than two photonpeer(thread), every photonpeer connect success.
platform: windows7.
IDE:visual studio 2010
the assert :
Assertion failed!
Program:...
File: e:\dev\egn\photon-sdk-native\branc...\memorypool.cpp
Line:76
Expression:mLastAlloc != e
0
Comments
-
Hi xuelihong797998.
The Photon native clients are not thread safe, yet.
If you want to access Photon from different threads, then you need to use locks to make sure, that only one thread accesses it at once.0 -
Hi, thanks for the reply.
we are right now working for multithread.0