News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Memory Error HELP

Started by Retsim_X, October 28, 2005, 08:05:53 PM

Previous topic - Next topic

Retsim_X

hey guys,

am doing an asighnment at scool in ipt. the assignment is to write a expert system to identify tree'.s :U

my problem is that sometimes my app will work realy well. however quite often winXP brings up a little box and it reads: :(

IPT ES 1.exe - Aplication Error

The Instruction at "0x7473c7d6" reference memory at "0x00006461". the memory could not be "read".

Press OK to terminate the programe.

but all the same it works fine on win98 but for school IT MUST WORK ON XP WITH NO PROBLEMS

please ANY input would be greatly appreciaated.

i have tryed every thing. :dazzled:

your Retsim_X

P1

You have two choices:

1.  Learn to use one of the Debug programs.  Search around here, we have plenty to choose from.
2.  Post some code.  If you can try to create a demo program of your problem and post that.

Regards,  P1  :8)

Retsim_X

however in the debuger i cant get the program to come up with the same error or have an exeption
i use ollydbg and it dosnt even have an exeption or error anywhere but works perfectly???
this is look ing wors each second :dazzled: :red

P1

Well, that leaves option 2.  When can we have to demo code for the error ?

Build your code with some debug output and watch it as it runs.

- OR -

Code your own exception trap.

Regards,  P1  :8)

Retsim_X

ok ill go with the exeption handler.

i have had a look at a few examples of iszelions and dont inderstand.

would anyone have some sort of explination what to do????

Retsim_X

well i tryed using SEH but it FAILS BADLY

it brings up a message box of costom message but when you close it it sits about a second and KILLs the program

the app needs to resume proccessing


Farabi

Quote from: Retsim x86 on October 29, 2005, 05:46:05 AM
well i tryed using SEH but it FAILS BADLY

it brings up a message box of costom message but when you close it it sits about a second and KILLs the program

the app needs to resume proccessing



How do you allocate the memory? Are use using GloballAlloc or something?
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

Retsim_X

no i am using sysallocstrbytelen
and i am cleaning up after with sysfreestring
?????
how's this help?

PBrennick

Retsim x86,
Post your code, please.

Paul
The GeneSys Project is available from:
The Repository or My crappy website

Retsim_X

well you asked for my code
i appoligise for an EXTREME lack of comments :(
sorry

i have had a little play with it. i found MOST of the problems were in the CreateFileMapping
by incresing the data file size.

but it needs to be able to AUTOMATICLY resize the data file
i dont know how

heres the code in a zip file 12.7 kb

[attachment deleted by admin]

Retsim_X

look i have searched all the old and current forums inckuding th asm message bard and cant find anything that helps most helpfull links are brocken and i need a solution in the next 6 hours


can anyone please plaese post atleast a couple of helpfull links???