1 registered members (TipmyPip),
18,466
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
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
OP
Senior Member
|
OP
Senior Member
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
|
Hi, A7.50 Beta and Visual Studio 2008 Non DLL projectInstalled 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.
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: jcl]
#226590
09/10/08 13:45
09/10/08 13:45
|
Joined: Dec 2006
Posts: 434 UK,Terra, SolarSystem, Milky W...
pararealist
OP
Senior Member
|
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: jcl]
#226734
09/10/08 23:13
09/10/08 23:13
|
Joined: Dec 2003
Posts: 521
LazyDog
User
|
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?
#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;
}
|
|
|
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
OP
Senior Member
|
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 ○pararealist now.
|
|
|
|