We help IT Professionals succeed at work.

debugging program

aztec
aztec asked
on
Medium Priority
270 Views
Last Modified: 2010-04-05
Hi ...
  I have a user that's trying to run my app on a Mac with Windows emulation software, and it's not working for him. It shows him the following error info:

MYAPP executed an invalid instruction in
module MYAPP.EXE at 0167:004f406b.
Registers:
EAX=818c6074 CS=0167 EIP=004f406b EFLGS=00000246
EBX=004f3fdb SS=016f ESP=0073fdc4 EBP=000ebdac
ECX=00000000 DS=016f ESI=004f4046 FS=1087
EDX=004f4066 ES=016f EDI=005000f5 GS=0000
Bytes at CS:EIP:
8d 85 c4 aa 14 90 eb 01 35 b9 27 c0 00 00 eb 01
Stack dump:
bffc05b4 818c377c 00000000 00000000 0073fc44 bffc9490 0073ff68 bffc05b4
bff79198 ffffffff 00000003 0073fc60 bffc9490 0073ff68 bffc05b4 bff79198


...how do I use this info to debug my app and track down the error? I'm using Delphi 3 Pro.

Thanks
   Shawn

Comment
Watch Question

Commented:
In the Delphi IDE load your project, then press F7. Then in the Delphi menu choose "Find runtime error" (or something like that) and give in the exception address, which in this case is $4f406b. Give it in including the leading "$". Now hopefully Delphi jumps to the line of code, where the exception occured.

Regards, Madshi.

Author

Commented:
Hello Madshi...
   I think I found what you speak of in the "Search" menu under "Find Error". I type in the address (it would not accept the $ sign), so I put in 004f406b. It returned with an error window - Error: address not found.

Any ideas?

Thanks
   Shawn

Commented:
Hmmm... I'm not sure about Delphi3. In D4-D6 I have to give in that $ sign.

Anyway, if you can't give in that sign in Delphi3, it's probably correct without it. If Delphi complains about not being able to find the address, that's a problem. Then the address probably shows to some assembler code, perhaps from the VCL. The problem is, that D3 doesn't have a CPU window yet, which can show assembler. This is only supported in D4..D6...   :-/

Perhaps you should consider upgrading to something newer. D3 is hopelessly outdated. Not that there would be a big change that D4-D6 would fix the problem (maybe, but I don't think so), but with D4-D6 you simply have better possibilites to track the error down. Also with D4-D6 you could use my exception package (doesn't support D3):

http://help.madshi.net/Data/madExcept.htm

Regards, Madshi.

Author

Commented:
thanks Madshi...
    I am thinking that the erroneous address is pointing to somewhere in the PC-Guard security module (www.sofpro.com) that I "wrap" my Delphi .exe in. Therefore when I specify the runtime error address (004f406b) in the debugger, it of course doesn't find it.

The original problem was that a customer of mine was getting this error when he tried to run my app on a Mac using Virtual PC V. I guess the PC-Guard is not compatible with this kind of environment.

  On another note, do you know if is it possible to upgrade to D4 Pro? A few months ago I had purchased D6, but it had a serious bug in the BLOCKREAD statement, so I returned it.

Thanks
  Shawn

Commented:
Hmmm... I remember that D4 Pro was available very cheap here in Germany recently. Why don't you look on the net? Even D4 is so old in the meanwhile, that you really should be able to get it cheap, regardless of whether you get the full version or the upgrade.

D5 and D6 Pro make no big difference. The biggest step is D4. And it's really worth it, at least if you ask me. You should install the update packs for D4, though, to make it really stable. I think there were 2 or 3 update packs. Don't know whether they're still available for download on www.borland.com. If not, you'll have to search a bit for them...

Regards, Madshi.

P.S: Possible that the PC-Guard is not compatible with Virtual PC, but I can't really comment on that...   (-:

Author

Commented:
Hi madshi...
   I couldn't really find anyone selling D4 on the net - would you happen to know any more about this person in Germany who was selling his?

Thanks
   Shawn

ADMINISTRATION WILL BE CONTACTING YOU SHORTLY.  Moderators Computer101 or Netminder will return to finalize these if still open in seven days.  Please post closing recommendations before that time.

Question(s) below appears to have been abandoned. Your options are:
 
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you, but may help others. You must tell the participants why you wish to do this, and allow for Expert response.  This choice will include a refund to you, and will move this question to our PAQ (Previously Asked Question) database.  If you found information outside this question thread, please add it.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question (if it has no potential value for others).
   --> Post comments for expert of your intention to delete and why
   --> YOU CANNOT DELETE A QUESTION with comments; special handling by a Moderator is required.

For special handling needs, please post a zero point question in the link below and include the URL (question QID/link) that it regards with details.
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click this link for Help Desk, Guidelines/Member Agreement and the Question/Answer process.  http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

Click you Member Profile to view your question history and keep them updated as the collaboration effort continues, to maintain your open and locked questions.  If you are a  KnowledgePro user, use the Power Search option to find them.  Anytime you have questions which are LOCKED with a Proposed Answer which does not serve your needs, please reject it and add comments as to why.  In addition, when you do grade the question, if the grade is less than an A, please add a comment as to why.  This helps all involved, as well as future persons who may access this item for help.

To view your open questions, please click the following link(s) and keep them all current with updates.
http://www.experts-exchange.com/questions/Q.20245156.html
http://www.experts-exchange.com/questions/Q.20259219.html
http://www.experts-exchange.com/questions/Q.20263069.html
http://www.experts-exchange.com/questions/Q.20270808.html
http://www.experts-exchange.com/questions/Q.20269981.html
http://www.experts-exchange.com/questions/Q.20277592.html
http://www.experts-exchange.com/questions/Q.20279091.html


To view your locked questions, please click the following link(s) and evaluate the proposed answer.
http://www.experts-exchange.com/questions/Q.20263454.html
http://www.experts-exchange.com/questions/Q.20269773.html
http://www.experts-exchange.com/questions/Q.20279093.html

**** PLEASE DO NOT AWARD THE POINTS TO ME. *****
 
------------>  EXPERTS:  Please leave your closing recommendations if this item remains inactive another seven (7) days.  If you are interested in the cleanup effort, please click this link http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643 
POINTS FOR EXPERTS awaiting comments are listed here -> http://www.experts-exchange.com/commspt/Q.20277028.html
 

Moderators will finalize this question if in @7 days you have not responded.  They will either move this to the PAQ (Previously Asked Questions) at zero points, delete it or awarding expert(s) when recommendations are made, or an independent determination can be made.  Expert input is always appreciated to determine the fair outcome.
 
Thank you everyone.
 
Moondancer
Moderator @ Experts Exchange
ADMINISTRATION WILL BE CONTACTING YOU SHORTLY.  Moderators Computer101 or Netminder will return to finalize these if still open in seven days.  Please post closing recommendations before that time.

Question(s) below appears to have been abandoned. Your options are:
 
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you, but may help others. You must tell the participants why you wish to do this, and allow for Expert response.  This choice will include a refund to you, and will move this question to our PAQ (Previously Asked Question) database.  If you found information outside this question thread, please add it.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question (if it has no potential value for others).
   --> Post comments for expert of your intention to delete and why
   --> YOU CANNOT DELETE A QUESTION with comments; special handling by a Moderator is required.

For special handling needs, please post a zero point question in the link below and include the URL (question QID/link) that it regards with details.
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click this link for Help Desk, Guidelines/Member Agreement and the Question/Answer process.  http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

Click you Member Profile to view your question history and keep them updated as the collaboration effort continues, to maintain your open and locked questions.  If you are a  KnowledgePro user, use the Power Search option to find them.  Anytime you have questions which are LOCKED with a Proposed Answer which does not serve your needs, please reject it and add comments as to why.  In addition, when you do grade the question, if the grade is less than an A, please add a comment as to why.  This helps all involved, as well as future persons who may access this item for help.

To view your open questions, please click the following link(s) and keep them all current with updates.
http://www.experts-exchange.com/questions/Q.20245156.html
http://www.experts-exchange.com/questions/Q.20259219.html
http://www.experts-exchange.com/questions/Q.20263069.html
http://www.experts-exchange.com/questions/Q.20270808.html
http://www.experts-exchange.com/questions/Q.20269981.html
http://www.experts-exchange.com/questions/Q.20277592.html
http://www.experts-exchange.com/questions/Q.20279091.html


To view your locked questions, please click the following link(s) and evaluate the proposed answer.
http://www.experts-exchange.com/questions/Q.20263454.html
http://www.experts-exchange.com/questions/Q.20269773.html
http://www.experts-exchange.com/questions/Q.20279093.html

**** PLEASE DO NOT AWARD THE POINTS TO ME. *****
 
------------>  EXPERTS:  Please leave your closing recommendations if this item remains inactive another seven (7) days.  If you are interested in the cleanup effort, please click this link http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643 
POINTS FOR EXPERTS awaiting comments are listed here -> http://www.experts-exchange.com/commspt/Q.20277028.html
 

Moderators will finalize this question if in @7 days you have not responded.  They will either move this to the PAQ (Previously Asked Questions) at zero points, delete it or awarding expert(s) when recommendations are made, or an independent determination can be made.  Expert input is always appreciated to determine the fair outcome.
 
Thank you everyone.
 
Moondancer
Moderator @ Experts Exchange

Explore More ContentExplore courses, solutions, and other research materials related to this topic.