BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Debugging under VMWare

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Non-Technical
View previous topic :: View next topic  
Author Message
Dan Downs
Guest





PostPosted: Mon Jun 27, 2005 9:43 pm    Post subject: Debugging under VMWare Reply with quote



I'm looking for people that develop under VMWare, preferably version 5. I'm
running into a wierd debugging issue and I'm curious if anyone else has had
any issues.


My system:
2.0ghz P4m
1gb ram
Win XP Pro SP1
VMWare 5.0.0

VW: Setup
Ram 384mb
OS: Win2003 Server SP1
Delphi 7 Ent
Connecting to SQL Server 2000 SP3a through ADO
Apache 1.3.29

The app is a apache 1 dso module, it works fine when debugging on the host
os, but when debugging in the vm I can browse to several pages then for one
page boom "Project UNKNOWN faulted with message: 'access violation at
0x75bb2443: read of address 0x75bb2443'. Process Stopped. Use Step or Run to
continue."

Hitting ok shows the current thread in the CPU window and it just loops the
same exception and I have to end the process.


First up, has anyone had issues debugging threaded apps under a virtual
machine??

Second, I can step through the code and get no exceptions, its like
something else internal to the webbroker framework gets fires and throws the
exception. The browser shows whats its suppose to be showing, and doesn't
report any errors. Any ideas?


DD



Back to top
Kevin
Guest





PostPosted: Tue Jun 28, 2005 2:12 am    Post subject: Re: Debugging under VMWare Reply with quote



Dan Downs wrote:
Quote:
The app is a apache 1 dso module, it works fine when debugging on the host
os, but when debugging in the vm I can browse to several pages then for one
page boom "Project UNKNOWN faulted with message: 'access violation at
0x75bb2443: read of address 0x75bb2443'. Process Stopped. Use Step or Run to
continue."

Hitting ok shows the current thread in the CPU window and it just loops the
same exception and I have to end the process.


First up, has anyone had issues debugging threaded apps under a virtual
machine??

Second, I can step through the code and get no exceptions, its like
something else internal to the webbroker framework gets fires and throws the
exception. The browser shows whats its suppose to be showing, and doesn't
report any errors. Any ideas?

I've encountered problems with DEP and Delphi SOAP apps (Access
Violations). I wonder if this is related to your problem? I had
problems running under the host OS though, not inside a VM. To fix the
problem I patched RIO.pas (suggested by another poster). Does your
machine support DES perhaps? (Athlon 64?) To see if this is related to
the problem, try turning on DES for the host OS and see if you run into
the problem.

One other thing... is your VM set up exactly the same as the host? If
not, try to isolate the differences. I've never seen anything happen in
a VM that didn't happen outside the VM as well (with the matching
environment).

Cheers,
Kevin.

Back to top
Dan Downs
Guest





PostPosted: Tue Jun 28, 2005 2:16 pm    Post subject: Re: Debugging under VMWare Reply with quote



Quote:
I've encountered problems with DEP and Delphi SOAP apps (Access
Violations). I wonder if this is related to your problem? I had
problems running under the host OS though, not inside a VM. To fix the
problem I patched RIO.pas (suggested by another poster). Does your
machine support DES perhaps? (Athlon 64?) To see if this is related to
the problem, try turning on DES for the host OS and see if you run into
the problem.

Its a 2 year old P4m dell notebook, so no it doesn't support DEP.

Quote:
One other thing... is your VM set up exactly the same as the host? If
not, try to isolate the differences. I've never seen anything happen in
a VM that didn't happen outside the VM as well (with the matching
environment).

My host is WinXP Pro SP1, but the VM is Win2003 Server SP1. I purposly put
win2003 on the vm since I'll be switching to IIS6 and isapi dlls in the
future over apache, or possibly asp.net. I ran into something simular when I
was debugging my app on the host but connecting to the db server in the vm,
once I switched to connecting to the db server on the host the problem went
away. I never had any issues before when everything was on the vm, so maybe
its a sql server 2000 issue I'm hitting.

DD



Back to top
Dan Downs
Guest





PostPosted: Tue Jun 28, 2005 5:18 pm    Post subject: Re: Debugging under VMWare Reply with quote

Now I'm getting some really weird things happening.

I set a breakpoint on the first line of my OnAction event, a "if Assigned()
then" line, it stops there like its suppose to then when I hit F8 it jumps
to a whole different unit (the one I'm currently working on) to execute a
commented line, hit F8 again and it jumps to an end; line in FastMM4 which
isn't even included anymore (tried it for memory leak testing).

I've rebuilt the project and compiled but it hasn't made any difference, I'm
installing some windows updates now and I'll reboot the vm, but this has
just gotten really weird.


Side note, I ran memtest86+ last night and not a single memory error in 21
passes, so I think that rules bad memory out.

DD


Back to top
Dan Downs
Guest





PostPosted: Wed Jun 29, 2005 7:10 pm    Post subject: Re: Debugging under VMWare Reply with quote

Well I've found half my problem, still searching for the rest. My default
webbroker action was firing after a failed image lookup, oops.

DD


Back to top
Dan Downs
Guest





PostPosted: Wed Jun 29, 2005 11:18 pm    Post subject: Re: Debugging under VMWare Reply with quote

I've run across several posts about windows 2003 and errors in the
ntdll.dll, and I seem to be running into that. sucks.

DD


Back to top
Kevin Berry
Guest





PostPosted: Thu Jun 30, 2005 5:59 pm    Post subject: Re: Debugging under VMWare Reply with quote

Dan Downs wrote:
Quote:
I've rebuilt the project and compiled but it hasn't made any difference, I'm
installing some windows updates now and I'll reboot the vm, but this has
just gotten really weird.

Find every single DCU on your library paths and nuke them. Then rebuild
the lot. I once ran into this type of problem because Delphi was using
old DCUs and not using the newer ones. Can't remember exactly what the
problem was, but deleting DCUs fixed it.

Cheers,
Kevin.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Non-Technical All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.