Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (TedMar), 1,420 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
acknex.exe Application Error - memory could not be read #233722
10/30/08 01:51
10/30/08 01:51
Joined: Feb 2002
Posts: 357
Florida
Zelek Offline OP
Senior Member
Zelek  Offline OP
Senior Member

Joined: Feb 2002
Posts: 357
Florida
When I exit my app, I sometimes get the following error a few seconds after the window has closed:
Quote:
acknex.exe - Application Error

The instruction at "0x10117d9a" referenced memory at "0x746e7a14". The memory could not be "read".

Click on OK to terminate the program
What type of issues typically cause this sort of error? I am using a plugin, and all I can guess is that it's trying to execute a command after the application has technically closed.

Any sort of general info that might help me debug it would be appreciated.

Re: acknex.exe Application Error - memory could not be read [Re: Zelek] #233724
10/30/08 02:13
10/30/08 02:13
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
When you exit an application that does not automatically mean it is ended in right that second. It only means it has hidden its windows. What you can try is disabling the plugin. Is the error gone? Then you can be pretty sure it is that dll. If the error is still present try disabling larger parts of your code. This way you can surround the error and might get a hint where that bug hides. If the error occurs randomly, probability that you are randomly overwriting something in the memory is pretty high. Could be bad set pointer e.g. Prepare for a tough battle... ;-)

Good luck!


Always learn from history, to be sure you make the same mistakes again...
Re: acknex.exe Application Error - memory could not be read [Re: Zelek] #233727
10/30/08 02:21
10/30/08 02:21
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
A few ideas.

1> The plugin could be causing the issue, it may need to be shut down a certain way.
I know one of the physics plugins needs to be "stopped" in the script before you exit.

2> If you are using MALLOC in your script at all, there may be blocks of memory
still allocated, sometimes causes this issue.

3> If you are using MALLOC in your script at all, you may have "free"ed a block that was already free, this happens to me alot.

4> Disable any API programming if there is any, Ive sometimes had this crash come from apparently functional code.

5> Work intensive, but check though ALL you functions and make sure that if you have used a structure creator [ eg str_create() ]
that you dont lose its pointer at the end of the function without removing it [(str_remove()] first, unless you need to.
Ive gotten the crash you report when Ive been sloppy lke that.

6> Buy a wig... You'll need it after you pull ALL your hair out. wink

Best of luck


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: acknex.exe Application Error - memory could not be read [Re: EvilSOB] #233855
10/30/08 22:43
10/30/08 22:43
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

I get this error message when I open SED.

I select OK and proceed.

Ottawa

Re: acknex.exe Application Error - memory could not be read [Re: Ottawa] #234016
10/31/08 17:09
10/31/08 17:09
Joined: Feb 2002
Posts: 357
Florida
Zelek Offline OP
Senior Member
Zelek  Offline OP
Senior Member

Joined: Feb 2002
Posts: 357
Florida
Thanks much for the info guys, it was greatly appreciated. It turns out that I had a syntax error in a command I was feeding to the plugin which was causing it not execute correctly, but not throw an exception until the application tried to close. Phew, that could have been a lot worse. smile

Re: acknex.exe Application Error - memory could not be read [Re: Zelek] #234030
10/31/08 17:54
10/31/08 17:54
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Glad you solved it that easy. :-)


Always learn from history, to be sure you make the same mistakes again...

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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