madExcept refuses work after saving project

contains all delphi packages mentioned below

madExcept refuses work after saving project

Postby gerhardsachs » Wed Nov 04, 2015 7:16 pm

On a new VCL project with just one form and almost no function madExcept works on creation if the project ist still in memory.
The only function is an access to an empty TList which must lead to an exception, which it does.
When the project is created the exception immediately following start brings up the usual madExcept screen.
When I save the project to disk, compile and start again, madExcept is lost, I get just the useless delphi exception message.
All settings are ok, madExcept is enabled, the project settings contain madExcept, I see no reason for this strange behaviour.
it happens with Delphi XE7 (madExcept 4.011) and XE8 (madExcept 4.013).
Delphi is installed in a VMWare, storage of the project is on an shared folder on disk of the host OS.
Both OSes are Windows7 Pro.
When the project is saved on a local folder in the VM, madExcept continues working.
When that project is copied to the shared folder and the exe is started from there, madexcept still works.
When that project on the host disk is compiled, madExcept is gone.
Both folders are completely accessible, files can be copied in both directions with no problems.

This is the sourcecode :
##############################################################
unit Unit1;

interface

uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs;

type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;

var
Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
var
l: TList;
f: TForm;
begin
l := Tlist.Create;
f := l[0];
end;

end.
##############################################################

Regards
Gerhard Sachs
gerhardsachs
 
Posts: 8
Joined: Tue Jun 29, 2010 3:12 pm

Re: madExcept refuses work after saving project

Postby madshi » Tue Nov 10, 2015 5:10 pm

This sounds like some sort of file access problem. madExcept itself doesn't care which path it's supposed to read files from. Have you tried using the ProcessMonitor to see what happens on file system level?

https://technet.microsoft.com/en-us/sys ... s/bb896645

The ProcessMonitor should allow you to see whether madExcept tries to read the files from the shared folder, and whether accessing them succeeds or not.
madshi
Site Admin
 
Posts: 9275
Joined: Sun Mar 21, 2004 5:25 pm

Re: madExcept refuses work after saving project

Postby gerhardsachs » Wed Dec 02, 2015 4:55 pm

Attached is a screenshot of processmonitor.
I added a function that generates a divide by zero exception in the IQS3 exe.
The process monitor shows the last lines after that exception where madExcept did not show up.
The last line shows an unsuccessfull try to read a file, maybe this is the cause of the problem.

Meanwhile I have a Delphi10 Seattle under Windows10 running in a VM this is where the screenshot is made from.
The problem stays the same as with Delphi XE8 running under Windows7.

As soon as I move the exe to a local harddrive on the VM, madExcept works.

Regards
Gerhard
Attachments
IQS3 Exception.PNG
Excerpt Process Monitor
IQS3 Exception.PNG (82.97 KiB) Viewed 2415 times
gerhardsachs
 
Posts: 8
Joined: Tue Jun 29, 2010 3:12 pm

Re: madExcept refuses work after saving project

Postby madshi » Wed Dec 02, 2015 5:02 pm

The screenshot shows a registry key open request failing, but that registry key has nothing to do with madExcept, so there's not much I can say... :sorry:
madshi
Site Admin
 
Posts: 9275
Joined: Sun Mar 21, 2004 5:25 pm

Re: madExcept refuses work after saving project

Postby gerhardsachs » Wed Dec 02, 2015 5:03 pm

I forgot to mention that the registry entry
HKLM\SOFTWARE\WOW6432Node\Microsoft\CTF exists but contains no subfolder "KnownClasses'.
The CTF folder contains three entries Modern, SystemShared an TIP where TIP contains several subfolders.
gerhardsachs
 
Posts: 8
Joined: Tue Jun 29, 2010 3:12 pm

Re: madExcept refuses work after saving project

Postby madshi » Wed Dec 02, 2015 5:10 pm

Yeah, well, I've no idea what that registry key is for, and it's definitely not related to madExcept, so I really don't have any ideas right now.
madshi
Site Admin
 
Posts: 9275
Joined: Sun Mar 21, 2004 5:25 pm


Return to madCollection

Who is online

Users browsing this forum: No registered users and 1 guest