elizarovalex / luainterface

Automatically exported from code.google.com/p/luainterface
0 stars 0 forks source link

Can't pass the multi-thread test. #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Just Set TestLuaInterface as startup project
2. Run

What is the expected output? What do you see instead?
Some exceptions is thrown when testing the multi-thread.

What version of the product are you using? On what operating system?
head version of trunk. windows xp

Please provide any additional information below.

Original issue reported on code.google.com by yinpen...@gmail.com on 17 Aug 2010 at 2:07

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I think the problem is caused by multi-thread operate on the stack. we must 
make sure the all operation on stack is thread safe.

The 3 destructors function will be called by the GC in C#, the stack is not 
protected when the GC is trying to release the references. This is why some 
program in C# looks like a single thread, still got the random exceptions.

Original comment by yinpen...@gmail.com on 27 Aug 2010 at 2:01

GoogleCodeExporter commented 8 years ago
This multi-threaded issue is major problem for my program. 

1.  Does anyone have the code to fix this yet even if it has not been released 
in any version?
2.  If not, is there a work around?
3.  Did multi-threading work in any previous version?

Original comment by cnau...@gmail.com on 14 Nov 2011 at 7:57