Problem with FastMM and D7

delphi

    Sponsored Links

    Next

  • 1. Good general benchmarks?
    I have some C++ guys here at work that want to do a test between Pascal and C++. So what would be a good set of benchmarks to run? They insist on QueryPerformanceCounter for "Accuracy", just curious if anyone has any feedback. Compilers to be compared: Delphi FPC MSVCPP Intel C++ (No SSE/SSE2 optimizations) - Jeremy
  • 2. Failing long running validations and benchmarks
    I'm changing the next MM B&V so that each individual benchmark and validation procedure is run separately and in its own process. This will help automate testing even more. Even with the batch files, testing isn't very granular and still requires someone to monitor everything. I'd like to ensure (wishful thinking?) that all testing can run unattended. I've been thinking about what to do with tests that seem to run forever. I plan to stop and fail any test that runs for longer than a certain amount of time (maybe 1 hour?). Thoughts? -- Regards, Bruce McGee Glooscap Software
  • 3. How to create a new Child form which display in taskbar .
    hi: I want to create a child form in application and display the form's caption in taskbar. thanks. zhwg
  • 4. Samling Profiler and ????
    Hi, I'm using the perfect tool Sampling Profiler and in the results, I have a line with ???? ????. And it is the line which use the more CPU. What should I do to get informations on this line ? (I have activated map file, TD32 informations and use of Debug files). Franck

Problem with FastMM and D7

Postby Karlheinz » Tue, 30 Aug 2005 03:44:12 GMT

have an application where I get the following error message created
with the JCL tools.

========================================================================
======
= 28.08.2005 20:29:43
=
========================================================================
======
Zugriffsverletzung bei Adresse 0040712C in Modul 'skraft.exe'. Lesen
von Adresse 80808088.

Exception class: EAccessViolation
Exception address: 0040712C
------------------------------------------------------------------------
------
Stack list, generated 28.08.2005 20:29:16
[0040712C] System.@IntfClear (Line 17025, "system.pas" + 7) + $0
[00404677] System.@HandleAnyException (Line 9501, "system.pas" + 13) +
$0
[0079C776] F_About.TF_About_F.ShowUnitVersioning (Line 485,
"..\Source\F_About.pas" + 96) + $33
[0079CD8E] F_About.TF_About_F.BtnUnitInfoClick (Line 563,
"..\Source\F_About.pas" + 0) + $2
[004A59C6] Controls.TControl.Click (Line 4705, "Controls.pas" + 9) + $C
[00497E6F] StdCtrls.TButton.Click (Line 3472, "StdCtrls.pas" + 3) + $3
[00631AB4] JvButton.TJvCustomButton.Click (Line 716, "JvButton.pas" +
1) + $2
[0075E635] JvCtrls.TJvCustomImageButton.Click (Line 407, "JvCtrls.pas"
+ 26) + $2
[00497FD6] StdCtrls.TButton.CNCommand (Line 3524, "StdCtrls.pas" + 1) +
$11
[004A579B] Controls.TControl.WndProc (Line 4645, "Controls.pas" + 53) +
$8
[004A94CA] Controls.TWinControl.WndProc (Line 6342, "Controls.pas" +
33) + $6
[00497CBE] StdCtrls.TButtonControl.WndProc (Line 3414, "StdCtrls.pas" +
13) + $6
[005FDB74] JvExStdCtrls.TJvExButton.WndProc + $4E4
[004A54A6] Controls.TControl.Perform (Line 4552, "Controls.pas" + 5) +
$F
[004A968C] Controls.DoControlMsg (Line 6388, "Controls.pas" + 6) + $1B
[004A9E69] Controls.TWinControl.WMCommand (Line 6574, "Controls.pas" +
1) + $9
[004A579B] Controls.TControl.WndProc (Line 4645, "Controls.pas" + 53) +
$8
[004A94CA] Controls.TWinControl.WndProc (Line 6342, "Controls.pas" +
33) + $6
[004A909C] Controls.TWinControl.MainWndProc (Line 6237, "Controls.pas"
+ 3) + $9
[0043498C] Classes.StdWndProc (Line 10966, "classes.pas" + 8) + $0
[004A9610] Controls.TWinControl.DefaultHandler (Line 6369,
"Controls.pas" + 23) + $28
[004A5EED] Controls.TControl.WMLButtonUp (Line 4836, "Controls.pas" +
1) + $8
[004A579B] Controls.TControl.WndProc (Line 4645, "Controls.pas" + 53) +
$8
[004AC734] Controls.TWinControl.GetHandle (Line 7802, "Controls.pas" +
1) + $3
[004A9293] Controls.TWinControl.IsControlMouseMsg (Line 6287,
"Controls.pas" + 1) + $A
[004A94CA] Controls.TWinControl.WndProc (Line 6342, "Controls.pas" +
33) + $6
[00497CBE] StdCtrls.TButtonControl.WndProc (Line 3414, "StdCtrls.pas" +
13) + $6
[005FDB74] JvExStdCtrls.TJvExButton.WndProc + $4E4
[004A909C] Controls.TWinControl.MainWndProc (Line 6237, "Controls.pas"
+ 3) + $9
[0043498C] Classes.StdWndProc (Line 10966, "classes.pas" + 8) + $0
[004CDA04] Forms.TApplication.ProcessMessage (Line 6873, "Forms.pas" +
13) + $4
[004CDA4B] Forms.TApplication.HandleMessage (Line 6892, "Forms.pas" +
1) + $6
[004C9884] Forms.TCustomForm.ShowModal (Line 4823, "Forms.pas" + 24) +
$5
[0062F3C6] JvJVCLUtils.ShowDialog (Line 4210, "JvJVCLUtils.pas" + 3) +
$5
[00842CF5] F_Main.TF_Main_F.HelpInfoExecute (Line 704,
"..\Source\F_Main.pas" + 0) + $5
[00433A31] Classes.TBasicAction.Execute (Line 10464, "classes.pas" + 3)
+ $9
[004B3B6F] ActnList.TContainedAction.Execute (Line 375, "ActnList.pas"
+ 1) + $35
[004B4DDB] ActnList.TCustomAction.E

Re: Problem with FastMM and D7

Postby Pierre le Riche » Tue, 30 Aug 2005 05:29:32 GMT

Hi Karlheinz,


This is the error you get when accessing an object that has been freed. I 
would analyze the stack trace given by the JCL to find this invalid object 
reference.

Good luck!

Regards,
Pierre



Re: Problem with FastMM and D7

Postby Karlheinz » Tue, 30 Aug 2005 15:28:29 GMT

Hi Pierre,

is there a reason why the error happens only with FastMM4 and not
without it?

Karlheinz

Re: Problem with FastMM and D7

Postby Atle Smelv » Tue, 30 Aug 2005 22:31:04 GMT

Because FastMM4 fills freed memory with 808080... where the old memory 
manager just leaves it as it is. When the memory is left untouched, your 
program might work until the memory manager starts to use that memory again. 
So it is actually working on plain luck, and that is not good. One little 
change anywhere in your code might trigger strange results that will be very 
difficult for you to find, and now this new memory manager helps you with 
avoiding these problems.

-Atle 



Similar Threads:

1.FastMM 4.56 / D7 / Error message on build with runtime packages

Even setting the {$define UseRuntimePackages} will not help in solving 
"[Error] Need imported data reference ($G) to access 'IsMultiThread' from 
unit 'FastMM4'"

Anyone any idea/hint what i 'm doing wrong or a workaround/solution?

Frans 


2.Back to Ibx 6 with D7.1 because of problems with D7.1 / IBX 7.08

Hello,

After experiencing problems with 7.08 of Ibx with 7.1 of Delphi 7 we went
back to the Ibx (6) version
as installed with D7.

I really like to know if someone else had problems using 7.08 on D7.1

We installed all in the following way:

D7
D7.1 (bad update)
Ibx 7.08
D7.1 (good update)
ibx 7.08 again.

Some problems we have found:

Entering a select statement in a TIBDataset with a non existing field an
then trying to activate the
dataset causes an acces violotaion ibxpress73.bpl.

Deleting of records in a TIBTable did no deletion at all.

Eric


3.FastMM problem with runtime packages

I'm trying to use FastMM in my application, which consists of a main exe
and a couple of dynamically loaded dlls, all of which are built with
runtime packages.

I put the FastMM4.pas unit in all projects' uses clauses and took care
to set the correct patching order for madExcept, which is used in the
exe, but not in the dlls.

I enabled the AssumeMultiThreaded, ShareMM and AttemptToUseSharedMM
conditional defines for all projects involved.

The problem is that main exe loads and runs fine, but the dlls refuse to
hook to shared FastMM. When main exe calls LoadLibrary, each of the dlls
complains with the message "Cannot install FastMM4 - Another memory
manager is already installed".

What did I miss?

TIA,
Aleksander Oven

4.FastMM - fixes problem with CodeRush7/Delphi7

5.dbExpress / blob / FastMM problem

6. FastMM problem - interface not freed in FullDebugMode

7. Problem with FastMM

8. D7 F12 problem



Return to delphi

 

Who is online

Users browsing this forum: No registered users and 86 guest