Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 559 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 30 of 32 1 2 28 29 30 31 32
Re: C# wrapper - RELEASE [Re: BoH_Havoc] #336860
08/06/10 16:36
08/06/10 16:36
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
It has nothing to do with the parameters, its the 'engine_open' function itself.

This is a 'PInvokeStackImbalance', a much more serious error which will corrupt the statck leading to all kinds of problems.

The problem is due to that the managed signature/method name does not match the unmanaged function in acknex.dll, upsetting the stack.

The weird thing is, is that this is handled by the wrapper with the P/Invoke declaration / mashalling stuff. I've never experiences this exception before whilst using the wrapper and so I'm not sure of the cause.

What version is the acknex.dll you are using?

Re: C# wrapper - RELEASE [Re: DJBMASTER] #336867
08/06/10 17:20
08/06/10 17:20
Joined: Jun 2004
Posts: 655
to your left
BoH_Havoc Offline
User
BoH_Havoc  Offline
User

Joined: Jun 2004
Posts: 655
to your left
My acknex.dll is version 7.8.4.2 (8,0,0,1) .
I'm using the latest A7 release (7.86 pro).

[edit] also, when trying to start my compiled exe, i get these errors:
Quote:

Error in line 1:
include file default.c not found
"#include <default.c>"

Error in line 3:
'MZ' undeclared identifier


I never included default.c, nor do i know what MZ is



Shade-C EVO Lite-C Shader Framework
Re: C# wrapper - RELEASE [Re: BoH_Havoc] #336870
08/06/10 17:56
08/06/10 17:56
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
hmm this is really strange, why does it even use default.fx?

Re: C# wrapper - RELEASE [Re: DJBMASTER] #342263
09/25/10 22:40
09/25/10 22:40
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
@BoH_Havoc
Sorry, I was/am kind of busy lately, I unfortunately didn't look at this thread for a while !

I also experienced the error you mentioned under VS 2010, i uploaded a fix for VS 2010 on the acknexwrapper.matthias-auer.net homepage !

I also hope to upload a beta version of the new wrapper (only for 7.8x atm) in the next days (hopefully not weeks) - if i find enough time !

The new wrapper won't use unsafe code anymore, the usage of strings will be improved and won't use a var object, only normal doubles and ints, and the engine objects like ENTITY will have class methods which are the corresponding functions in lite-c like ent_create (although I'm not quite sure whether this will prove to be handy in practice - as it's not always intuitive where to find a function that one searches)..


get the C# wrapper:
for A7.85.4 and A8.30.4, Version 2.3.9
at http://acknexwrapper2.matthias-auer.net/ or visit the thread
Re: C# wrapper - RELEASE [Re: Stromausfall] #402461
06/05/12 20:50
06/05/12 20:50
Joined: Apr 2007
Posts: 141
Germany
Timothy Offline
Member
Timothy  Offline
Member

Joined: Apr 2007
Posts: 141
Germany
Hi, when I use "yield return ScheduleMethod.PROC_EARLY;" the engine (A7) crashes. Do I have to consider something when using PROC_... or is this a bug?

Thanks in advance!

Re: C# wrapper - RELEASE [Re: Timothy] #402478
06/06/12 06:43
06/06/12 06:43
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
hmmm this should work afaik, did you add “A7_WRAPPER” to Project Properties > Build > Conditional compilation symbols ?


get the C# wrapper:
for A7.85.4 and A8.30.4, Version 2.3.9
at http://acknexwrapper2.matthias-auer.net/ or visit the thread
Re: C# wrapper - RELEASE [Re: Stromausfall] #402488
06/06/12 10:52
06/06/12 10:52
Joined: Apr 2007
Posts: 141
Germany
Timothy Offline
Member
Timothy  Offline
Member

Joined: Apr 2007
Posts: 141
Germany
Yes I did add "A7_WRAPPER" before. I readded it but still it won't work.
If I comment the PROC_... lines everything is working fine.
I tried the same code snippet in A7 without the wrapper - there it works.
btw: I use Visual C# Express 2010

Debugging: http://img266.imageshack.us/img266/4423/62305807i.jpg

Last edited by Timothy; 06/06/12 11:01.
Re: C# wrapper - RELEASE [Re: Stromausfall] #402506
06/06/12 13:35
06/06/12 13:35
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline
Senior Member
pararealist  Offline
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
I am using A8, but find if i do not add
yield return 1;
somewhere before
yield return ScheduleMethod.PROC_LATE;
it also crashes.

I have this in my camera method and it stops the jagged panning,which returns when i remove PROC_LATE, so it seems to work.

Last edited by pararealist; 06/06/12 13:36.

A8.3x Commercial, AcknexWrapper and VS 2010 Express
&#9675;pararealist now.
Re: C# wrapper - RELEASE [Re: Timothy] #402508
06/06/12 13:42
06/06/12 13:42
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
I've installed A7.866 but can't reproduce the error !
could you create a small example and post the code here or send me the small example project ?

EDIT :
thanks pararealist now i can reproduce it too !

btw, I'll post the link to the new version in the "C# wrapper 2.0 - RELEASE" thread - the thread for the new wrapper (not the old one from some years ago !"

Last edited by Stromausfall; 06/06/12 14:31.

get the C# wrapper:
for A7.85.4 and A8.30.4, Version 2.3.9
at http://acknexwrapper2.matthias-auer.net/ or visit the thread
Re: C# wrapper - RELEASE [Re: Stromausfall] #402522
06/06/12 15:33
06/06/12 15:33
Joined: Apr 2007
Posts: 141
Germany
Timothy Offline
Member
Timothy  Offline
Member

Joined: Apr 2007
Posts: 141
Germany
Thank you very much, it works now. laugh

Page 30 of 32 1 2 28 29 30 31 32

Moderated by  TWO 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1