Quote:
Originally Posted by newdigital
Yes, sorry.
I moved your posts to separated thread.
|
I will forgive you ;-) [you can safely delete the posting with the many colors, i was a bit upset because i didnt understand what was going on, i have since then calmed down completely]
I can even answer my question from the first posting: It is
not because of the char* pointer, it is because of
calling conventions: python26.dll uses __cdecl and metatrader expects __stdcall, the crash happens because the functions in python26.dll will not pop the stack when returning. Therefore the unavoidable need for a wrapper dll which will provide a __stdcall interface to metatrader and call python with __cdecl
I have already identified a new problem: all experts running at the same time will share the same __main__ namespace, so i will have to rethink the abstraction so that it allows to easily specify the namespace when accessing variables and not force you to operate only in __main__