PDA

View Full Version : .Elf file causing exception


Fredrik
05-Aug-2009, 08:59 AM
Hi!

I'am using Eureka 6.0.20 with D2009 and I am using StandardEurekaError function to send in my own generated text into eureka.

For some reason I now have a .elf file that is causing a memory corruption (according to FastMM) in TLogFile.LoadFromStream in unit ELogManager when FreeMem is called on the buffer.

There is no problem to view the elf file in the log program and if I delete the log file to start on a new one everything is fine.

Have you done any fixes in this area in newer versions?
Do you want the log file to test? If so then give med a mail address and I will mail it to you (unessessary to show what I'am running to everyone :-) ).

Regards
/Fredrik

Fredrik
05-Aug-2009, 09:26 AM
More info:

I was able to fix it changing the memory allocation in TLogFile.LoadFromStream to the following.
GetMem(Buffer, Size + (Length(EOFLine) * SizeOf(char) ) );

Unfortunattly I in the process destroyed the faulty elf file (forgot to take a copy) because it now works regardless of having the extra memory allocated or not.

Hopes this gives you some idea on what can be wrong.

regards
/Fredrik

Alex
07-Aug-2009, 09:49 AM
Hi, Fredrik.

Thanks for your valuable feedback. I see the problem and it'll be fixed in the next RC!

Alex
11-Aug-2009, 05:28 PM
Hi,

We've released a new RC 6, which is able to solve this issue.
Can you verify it?

Fredrik
14-Aug-2009, 07:41 AM
Hi! Thanks!

I will try to do that, but unfortunattly I have manage to delete the file that always caused problem.

regards
/Fredrik


Hi,

We've released a new RC 6, which is able to solve this issue.
Can you verify it?



--
Alex

Best regards...

Alexander - *EurekaLog Support Team*

Alex
14-Aug-2009, 07:49 AM
Hi,

Okay, thank you for the feedback anyway! :D