Comments (3)
How about this link Jesse1205/ScutGame@8cc4ab9
can solve your problem?
from scut.
this problem will happen when the entity have more than two key..
and you will see log like below.
EntitySync queue key Entity-1-0-0 faild object is null
EntitySync queue key Entity-1-1-0 faild object is null
here is my solution
It delay Notify Event until finish setting data to Entity
anyway i need to check your changes.
thanks for share!!
SqlDataReceiver.cs
private T ReadEntityProperty<T>(IDataReader reader, EntityPropertySetFunc<T> setFunc) where T : new()
{
T entity = new T();
var disableNotify = entity as EntityChangeEvent; //added
if (disableNotify != null) disableNotify.DelayNotify(); //added
var columns = _schema.GetColumns();
foreach (var column in columns)
{
try
{
object fieldValue = reader[column.Name];
if (setFunc != null) setFunc(entity, column, fieldValue);
}
catch (Exception ex)
{
throw new Exception(string.Format("read {0} table's {1} column error.", _schema.EntityName, column.Name), ex);
}
}
if (disableNotify != null) disableNotify.TriggerNotify(); //added
return entity;
}
from scut.
@Jesse1205 Can you describe the problem that apply your solution?
i test original TryGetCacheItem. and its lazy anonymous delegate never executed.
from scut.
Related Issues (17)
- contract tools problem
- ZyGames.Test stress test tool is not work
- Scut in production ?
- PersonalCacheStruct<GameUser> RemoveCache can not be success HOT 2
- Server to Server RemoteService send heart package which can not refresh the session
- Python还不支持py3吗
- ShareCacheStruct<T> after RemoveCache,can not load Cache value from db or redis again
- Modify entity then Delete or RemoveCache in 100ms,there will be some bug,cache queue will created new CacheItemSet
- WebSocket Bug
- ObjectDisposedException in IO_Completed
- centos下运行gamesever报错
- contracttool 在jexus上部署,其他界面正常打开,default界面打开报错 HOT 3
- 可以考虑跨服
- Scut 已死? HOT 5
- 这个框架还有人在维护吗?有人用这么框架做游戏吗? HOT 2
- How to connect LUA mobile client to scut server
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scut.