|
-
May 22nd, 2007, 02:57 AM
#1
Locate application error in map file
Hi guru's,
By connecting a certain kind of printer my program crashes and gives a General Application error message with 0007:BC22.
Normally a crash address looks like this: 'The instruction at "0x004011a1" referenced memory at "0x00000000". The memory could not be "Written".'
Can someone please tell me how to find 0007:BC22 in the map file? I understand you do not have the map file, but please tell me the way to deal with this in general.
Thanks!
Time is fun when you're having flies 
-
May 22nd, 2007, 07:51 AM
#2
Re: Locate application error in map file
Hi,
"0007:BC22" looks like arcan 16 bit pointer with segment and offset.
To get help you should tell us some more:
- OS version
- compiler, linker and/or environment version of "your program"
- A short description of: Why can't you debug "your program" to know the bad code?
I assume that the driver for this certain printer raises the exception. See the web site of the vendor of this printer - it is almost not possible that you are the only one person in the world getting this error (except it is produced by "your program").
With friendly regards
Programartist
-
May 22nd, 2007, 08:17 AM
#3
Re: Locate application error in map file
Thanks for your reaction ProgramArtist. The OS version my program is compiled with is Windows 95 using Visual C++ 1.52 (really old, i know but it is still out there).
The problem with the printer occurs both on a windows 98 and Windows XP machine. The problem does not occur with a different printer.
Opening the .exe file in Visual C++ only gives me the resources and not the option to start or debug the executable. I can not get this to work. Perhaps there is a way to jump to the address mentioned in the error message?
Time is fun when you're having flies 
-
May 23rd, 2007, 06:18 AM
#4
Re: Locate application error in map file
Hallo again,
I really did expect that you would answer in that way.
You are trying to find/recover an error in an executable file.
That means:
- You did post your question in the wrong forum (since this forum is about VC++).
- Finding a bug in an executable has nothing 2 do with VC++ issues.
You tried to use MSVC as a debugger environment. Generally speaking this is possible but it is not the right approach exept you are very, very familiar with hardware programming and assembler/machine code. The debugger cannot recompile to C++. In the best case it can tell you which assembler command (maybe a MOV on a certain register of the CPU or a call to a function in your printers driver) causes the problem. You won't be able to locate the cause (reason) of the crash in that way.
Please try the following things:
- Download the newest available driver package for the printer.
- Search for FAQ's on the manufacturers web site.
- Search the internet for other people having the same problem (include as many information as possible: Printer manufacturer, type, version, driver's version, OS version, ...)
- Write an email with your problem to the support of the manufacturer.
I do not think that C++ will help you in this case...
With regards
Programartist
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|