Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 18,787 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Problem opening engine in A7.50 Beta #226444
09/09/08 19:46
09/09/08 19:46
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline OP
Senior Member
pararealist  Offline OP
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
Hi,

A7.50 Beta and Visual Studio 2008 Non DLL project

Installed A7.50 Beta and when i run my project the error appears:
Unhandled exception at 0x1001010e (acknex.dll) in gsANIMATE.exe: 0xC0000005: Access violation writing location 0x00000000.

Debugged up to the ev=engine_open(NULL); line.
Code:
		inline HWND InitAcknexWindow()
		{
			//// Initialise Acknex Engine and open the engine Window
			//// returns HWND if successful.
			try
			{
//PROBLEM HERE		ev =  engine_open(NULL) ;
				if (!ev) {
					throw CWinException( _T("ERROR: Could not Open Acknex Engine" ) );
					return 0; } // else store acknex window handle
				HWND m_hwndacknex = (HWND)(ev->hWnd);
				if (!m_hwndacknex) { // no window ?
					return 0; }
				// else return the window
				return (HWND)m_hwndacknex;
				//
			}/* end try() */
			//-----------------
			// CATCH the ERRORS
			//-----------------
			catch (const CWinException &str)
			{str.MessageBox();} 
			return 0; // no success if we get here
		}



10010107 mov cx,word ptr ds:[1019FE0Ch]
1001010E mov word ptr [eax],cx Debugger stops here
10010111 mov dl,byte ptr ds:[1019FE0Eh]

I am new at debugging in VC so i am not sure if this is a bug or not. But thought you should know so you can try it out.

Same code works fine in A7.10



A8.3x Commercial, AcknexWrapper and VS 2010 Express
○pararealist now.
Re: Problem opening engine in A7.50 Beta [Re: pararealist] #226455
09/09/08 20:32
09/09/08 20:32
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
Debugging gets a bit easier if you compile with debugging symbols wink You can enable those somewhere in the compiler settings. But I can´t help you with that problem.

Re: Problem opening engine in A7.50 Beta [Re: Slin] #226458
09/09/08 21:06
09/09/08 21:06
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline OP
Senior Member
pararealist  Offline OP
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
thanks, will check that out.


A8.3x Commercial, AcknexWrapper and VS 2010 Express
○pararealist now.
Re: Problem opening engine in A7.50 Beta [Re: pararealist] #226521
09/10/08 06:43
09/10/08 06:43
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Also, remove the try {} handler while debugging.

A typical problem causing an engine crash is opening the engine twice without closing it before.

If you can't find the reason, please contact the support - they'll need your VC++ project and the project and solution settings.

Re: Problem opening engine in A7.50 Beta [Re: jcl] #226590
09/10/08 13:45
09/10/08 13:45
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline OP
Senior Member
pararealist  Offline OP
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
OK, will do.

BUT:
ev = engine_open(NULL) ; in my code is the only place
where i open the engine in my project.

Why in the world would the code that runs perfectly in
A7.10
not run in A7.50 beta if the project code has not been changed ?
unless something has changed in A7.50 beta?

This eludes me.
//
Anyway i have reverted back to A 7.10, just wanted to let you
know in case it is a bug somehow.

Last edited by pararealist; 09/10/08 13:54.

A8.3x Commercial, AcknexWrapper and VS 2010 Express
○pararealist now.
Re: Problem opening engine in A7.50 Beta [Re: pararealist] #226609
09/10/08 15:18
09/10/08 15:18
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
I don't know. Another user also reported a problem with engine_open, but we could not find any problem and obviously it works for anyone else.

If you don't want to stick with 7.10 please contact the support - we'd like to look into that problem.

Re: Problem opening engine in A7.50 Beta [Re: jcl] #226734
09/10/08 23:13
09/10/08 23:13
Joined: Dec 2003
Posts: 521
LazyDog Offline
User
LazyDog  Offline
User

Joined: Dec 2003
Posts: 521
I've reported that this error exists in every beta since after 7.10.
here is a basic example, that crashes under anything after 7.10 but works
perfectly in 7.10. I compiled and tested in borland c++ to confirm the error was not in delphi. so if this doesn't compile i'm sure you're capable of making the necessary changes to compile it in vs c++.

you say that it works for you, are using a lite_c test or a c++ test against acknex.dll?

Code:
#include <windows.h>

#include adll.h

ENGINE_VARS *ev;
COLOR theColor;

WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
	ev = engine_open(NULL);    // <= crash here

	engine_frame();                  // wait until level loaded

	theColor.blue = _VAR(100);
	theColor.green = _VAR(100);
	theColor.red = _VAR(100);
	draw_textmode("Times",_VAR(3),_VAR(20),_VAR(100));

	while (engine_frame())
	{
	  draw_text("You are running the engine!",_VAR(300),
                    _VAR(150),&theColor);
	}

	engine_close();

	return 0;
}



www.LazyDogSoftware.com
Delphi SDK Homepage

A7 Pro 780
Delphi 5 through 2010
Re: Problem opening engine in A7.50 Beta [Re: LazyDog] #226777
09/11/08 07:57
09/11/08 07:57
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Acknex.DLL.

I suspect a certain compiler setting, maybe a wrong stack value or something like that. I don't have Borland, but I have VC++ 2008. So once I get the project from pararealist, we can probably find out quickly why it crashes.

Re: Problem opening engine in A7.50 Beta [Re: jcl] #226831
09/11/08 16:23
09/11/08 16:23
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline OP
Senior Member
pararealist  Offline OP
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
How can i send the small project it is 3.999 MB
Can it be done by email ? and to where?

try this link:
http://homepage.ntlworld.com/glyne.broome1/visual studio projects.rar

dont work just tested it.

will try email
support @conitec.net not working?

support@3dgamestudio.net
OK it seems to have gone now
will check if returned in the next 5 mins.


Last edited by pararealist; 09/11/08 16:53.

A8.3x Commercial, AcknexWrapper and VS 2010 Express
&#9675;pararealist now.
Re: Problem opening engine in A7.50 Beta [Re: pararealist] #226977
09/12/08 09:20
09/12/08 09:20
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Thanks! I got it and we'll look into the problem.

Page 1 of 2 1 2

Moderated by  jcl, Nems, Spirit, Tobias 

Gamestudio download | 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