The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Retsim_X on October 28, 2005, 08:05:53 PM

Title: Memory Error HELP
Post by: Retsim_X on October 28, 2005, 08:05:53 PM
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
Title: Re: Memory Error HELP
Post by: P1 on October 28, 2005, 08:17:14 PM
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)
Title: Re: Memory Error HELP
Post by: Retsim_X on October 28, 2005, 08:20:56 PM
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
Title: Re: Memory Error HELP
Post by: P1 on October 28, 2005, 09:05:11 PM
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)
Title: Re: Memory Error HELP
Post by: Retsim_X on October 29, 2005, 05:05:24 AM
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????
Title: Re: Memory Error HELP
Post by: Retsim_X 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

Title: Re: Memory Error HELP
Post by: Farabi on October 29, 2005, 06:58:46 AM
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?
Title: Re: Memory Error HELP
Post by: Retsim_X on October 29, 2005, 08:06:43 AM
no i am using sysallocstrbytelen
and i am cleaning up after with sysfreestring
?????
how's this help?
Title: Re: Memory Error HELP
Post by: PBrennick on October 29, 2005, 01:43:09 PM
Retsim x86,
Post your code, please.

Paul
Title: Re: Memory Error HELP
Post by: Retsim_X on October 29, 2005, 10:44:08 PM
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]
Title: Re: Memory Error HELP
Post by: Retsim_X on October 30, 2005, 12:46:56 AM
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???