|
-
May 17th, 2004, 12:50 AM
#1
Access Violation
I am supposed to migrate a second-party code written in C++(using VC++) from Windows NT server to Windows 2003 server.
The migration procedure is standard and there doesn't seem to be any problem in the migration part. In fact the program runs fine with one set of parameters.
However, when i run the program with another parameter, it crashes giving the followng error:
The instruction at "0x00336777" referenced memory at "0x0000000c". The memory could not be "read".
Click on OK to terminate the program
Click on CANCEL to debug the program.
When i cancel to debug it, debugging instantly stops giving the following error:
Unhandled Exception in MYPROGRAM.exe(third_party_dll.dll):0x00000005. Access Violation.
I have examined and found that when i give this particular parameter, this code tries to execute a certain function which is written inside a dll(and declared in the corresponding header) . As soon as it tries to execute this function, the program crashes with the above mentioned errors. I do not have access to read the dll since it has been provided by a third party.
I can only read the declaration of this function in the header file. This function was executing fine before the migration with its older version of dll. I have not made any changes in the code during migration.
What can be the reasons and solution to this problem?
-
May 17th, 2004, 01:28 AM
#2
Unless we have the program here, there is little we can tell you.
What is the call stack when you get the crash? You shoud see a series of function calls that lead up to the function that crashes. Examine the call stack to identify the last function that is yours, then examine the arguments that you are passing to this function. Are they legitimate?
Again, we do not have this program, so there is little anyone can do except have you diagnose the problem yourself.
I do not have access to read the dll since it has been provided by a third party.
Then get the makers of the DLL to help you.
Regards,
Paul McKenzie
-
May 17th, 2004, 04:23 AM
#3
Even if you do not have the source for the DLL, the debugger will step into it just fine with an assembler language view.....
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
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
|