473,324 Members | 1,646 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

I met a problem using vs 2005

I am using vs 2005 on windows xp.
I created a project, named ssps.And when debugging, I set project
property->debugging->command argument the way I wanted,like this: -b f:
\files f:\files. Then I ran the program. Everything went all right,
and I got the exact result, and two files are successfully created at
\ssps\debug, where the executable file ssps.exe located.
when I finished debugging , I made the release version, so I got the
ssps.exe in the directory \ssps\release. when I try to test the
executable file using command line,like this: ssps.exe -b f:\files f:
\files, errors occured.It reads like, 0x78180469 command accessing
0x003b5000 memory, the memory can not be written.
I also tried to run the executable file in Debug directory, and got
the same problem.
Now I don't know what to do. Why everything is ok when debugging but
errors occured when using command line to run it? I won't meet the
problem when debugging, so I can't feagure out where is the problem.
Can someone help me to explain it? Or tell me what to do now?

Jan 30 '07 #1
4 1566
On Jan 30, 1:04 pm, "Vivienne" <zhoudan.b...@gmail.comwrote:
I am using vs 2005 on windows xp.
I created a project, named ssps.And when debugging, I set project
property->debugging->command argument the way I wanted,like this: -b f:
\files f:\files. Then I ran the program. Everything went all right,
and I got the exact result, and two files are successfully created at
\ssps\debug, where the executable file ssps.exe located.
when I finished debugging , I made the release version, so I got the
ssps.exe in the directory \ssps\release. when I try to test the
executable file using command line,like this: ssps.exe -b f:\files f:
\files, errors occured.It reads like, 0x78180469 command accessing
0x003b5000 memory, the memory can not be written.
I also tried to run the executable file in Debug directory, and got
the same problem.
Now I don't know what to do. Why everything is ok when debugging but
errors occured when using command line to run it? I won't meet the
problem when debugging, so I can't feagure out where is the problem.
Can someone help me to explain it? Or tell me what to do now?
Are you playing around with pointers? If so make sure that they always
have a valid value. It's hard to say what's wrong but if the program
is small you could post it here and someone might spot it. If it's not
try to comment out/remove parts until either you find the problem or
the program is small enough to post here.

--
Erik Wikström

Jan 30 '07 #2
"Vivienne" <zh**********@gmail.comwrote:
Now I don't know what to do. Why everything is ok when debugging but
errors occured when using command line to run it? I won't meet the
problem when debugging, so I can't feagure out where is the problem.
Can someone help me to explain it? Or tell me what to do now?
The first thing you need to do is go through the entire program and make
sure that every pointer variable is initialized to 0. Then try to run it
in the debugger again and see what happens.

If the above doesn't help, then go through the entire program and check
every pointer dereference. Wherever you have "*ptr" or "ptr->" put an
assert before it that says "assert( ptr );" then run the program in the
debugger and see what happens.

If the above doesn't help, then go through the entire program and check
every array access. Wherever you have a "foo[bar]" put an assert before
it that says "assert( bar >= 0 && bar < num_elements_in_foo );" then run
the program in the debugger and see what happens.

Good luck.
Jan 30 '07 #3
Vivienne wrote:
when I finished debugging , I made the release version, so I got the
ssps.exe in the directory \ssps\release. when I try to test the
executable file using command line,like this: ssps.exe -b f:\files f:
\files, errors occured.It reads like, 0x78180469 command accessing
0x003b5000 memory, the memory can not be written.
You can build you Release executable with Debugging information
(Configuration Properties | Linker | Debugging). Make sure that
Just-In-Time Debugging is enabled (Tools | Options | Debugging).
Reproduce the crash. You should now be able to attach the debugger to
the process and perform any debugging action necessary. In particular
the Call Stack might be helpful for finding your problem. Just keep in
mind that optimizations have been done for the Release build, so you
can't necessarily see every variable or line of code in a 1:1 fashion.
Jan 30 '07 #4
Eberhard Schefold wrote:
You can build you Release executable with Debugging information [...]
Sorry, I forgot: What I wrote about debugging strategies in that
specific development environment is off-topic here. For that discussion
better go to a group in the microsoft.public hierarchy.
Jan 30 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Edward Burns | last post by:
I am trying to create an events calendar with a complete month view. I want to be able to get all the events for a particular month, using only one recordset on the page then be able to loop...
0
by: AlessanBar | last post by:
Hello Friends !! I have a strange problem, and I need to know what would be the source of this. I have a laptop computer with the following configuration: Pentium III Brand : Toshiba Speed :...
1
by: neha | last post by:
hi, i m trying to integrate python with apache on linux.For this i m using mod_python. I dont see any problem with the versions of python,apache and mod_python i m using. the versions i m using...
7
by: Harolds | last post by:
The code below worked in VS 2003 & dotnet framework 1.1 but now in VS 2005 the pmID is evaluated to "" instead of what the value is set to: .... xmlItems.Document = pmXML // Add the pmID...
1
by: jdubu0 | last post by:
I have an MS Access query that I was hoping to summarize on the Tenure field but, instead, the rows are created as if the Tenure field were an Employee ID. So I have duplicate Tenure fields when I...
4
by: Kim Würtz | last post by:
Hi folks I have an C# app. connecting to a MS-ACCESS database with several tables. In a specific situations I have problems with a DateTime type in a table. The problem is when I want to...
17
by: Danieltbt05 | last post by:
just installed SQL server 2000 and using my client , i can't locate the server. I used SQL query analyzer to search but no servers were found. Error message is as below Server : Msg17,level...
5
by: Matik | last post by:
Hello, I've very often a deadlock problem. The deadlock is generated always in the same way, by one application calling in DB two sp's (application has two threads). This is an error message...
2
by: Jeff | last post by:
Hey asp.net 2.0 My asp.net 2.0 project has got a assembly load problem: Some of my web.config settings: <membership defaultProvider="AH_MembershipProvider" userIsOnlineTimeWindow="15">
9
by: HC | last post by:
Hello, all, I started out thinking my problems were elsewhere but as I have worked through this I have isolated my problem, currently, as a difference between MSDE and SQL Express 2005 (I'll just...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.