|
This is primarily a desktop application but is published to an ftp site so that each time a user starts the app if there is an internet connection, it goes and searches for updates to the program.
|
|
|
|
|
Ok it's a desktop app. that helps. Now what about the error message?
led mike
|
|
|
|
|
Sorry for the delay in responding -- I'm a one man shop and got tied up in an entirely different project. Here's what I get when I step through the relevant subroutine:
First, I get this:
"The source file is different from when the module was built. Would you like the debugger to use it anyway?" The paths shown are:
Source file: C:\Program Files\Microsoft Visual Studio 8\CAPS Project\Src 1-21-08\CAPSpro.NET\frmDocManager.vb
Module: C:|Program Files\Microsoft Visual Studio 8\CAPS Project\Src 1-21-08\CAPSpro.NET\bin\CAPSpro.exe
Click Yes:
Then a message comes up telling it cannot find the file, showing a path which is the path of the German developer who originally published the program ("The file 'C:\Dokumente und Einstellungen\teg\Eigene Dateien\CAPS\Src\VB2005\CAPSpro.NET\frmDocManager.vb' does not exist.").
On one occasion I was able to change the path to my local machine where I am working on the source code, and the output file was successfully saved. Without the debugger, however, there is no message that the file cannot be found. This only appears when I step through the debugger one line at a time.
|
|
|
|
|
Mike Nelson wrote: "The source file is different from when the module was built. Would you like the debugger to use it anyway?"
Well clicking "yes" to that could cause any number of completely useless things to happen. This messages indicates you don't have a valid development environment for debugging your application.
Mike Nelson wrote: when I step through
In order to debug you should have the source code and be debugging from a build on your local machine. If you were doing that you should not see the first message about source file being different from the module.
Based on your latests post it seems likely that you are no where near discovering the actual problem. I have no idea how to help you at this point since it seems likely you lack understanding "how things work" that are helpful during debugging efforts.
led mike
|
|
|
|
|
I am debugging from source code on my local machine. The project, however, is a copy from the German developer. We both believe that is probably the source of the error, but don't know if our approach to collaboration on this project is typical or not. He sends me a copy of the code, I make corrections or additions necessary for US localization, test it, then send the code back to him where he recompiles and publishes the project. In this one case, however, trying to create a text file, neither of us understands where the reference to his file path comes from. I was hoping that someone else my have run into this during a similar collaboration.
Thanks, anyway, for your comments.
|
|
|
|
|
Mike Nelson wrote: where the reference to his file path comes from
What about "when" it comes. Based on your posts I am unclear when the reference is used, it seems in your last post there is a reference to source code meaning the reference is a development environment reference.
All the Visual Studio files are in XML form now I believe so you could open them in a text editor and search for the path string in the file.
led mike
|
|
|
|
|
Well, these messages only appear when stepping through the code in debug mode. During normal program execution there is no message, the text file is merely left empty.
I'll take your hint about searching through the files with a text editor. I'm just not sure what file this would even be in.
|
|
|
|
|
Mike Nelson wrote: He wrote a routine to create a text file that we can both use.
Well somewhere in that code the path for the file is obtained or created right? Post that code.
led mike
|
|
|
|
|
We finally tracked down the problem. It didn't really have anything to do with the filepath message. That is apparently just a smokescreen -- VB couldn't figure out the problem and popped up that message. The problem was a database one and once we fixed the database, the module works corectly.
I did, also, find the coded reference to the local filepath in Germany. I need to discuss this with my German colleague to determine whether it is necessary or not to be hard-coded.
Thanks for taking the time to look at this.
|
|
|
|
|
Dear All
Is there a good tool for UML yet free?Or in another way what is the best free UML tool?
regards
|
|
|
|
|
|
I discovered StarUML, and have found it very powerful.
http://www.staruml.com/[^]
Regards
Tris
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Dear all
I am not sure if it is the proper place to put this question.
Can I draw UML diagrams with Visio 2007. If yes, is it built in Visio or a plugin. And how to draw them in Visio?
Best Regards
Mohammed
|
|
|
|
|
mhmo wrote: Can I draw UML diagrams with Visio 2007. If yes, is it built in Visio or a plugin. And how to draw them in Visio?
You can draw them in plain vanilla Visio. They are under the Software>UML Model Diagram template.
|
|
|
|
|
Hi Frnds,
I am working on learning concepts of Design Patterns these days.
Could you please refer to any good online material? Best would be some video tutorials?
Thanks In Advance.
Geek
Keep DotNetting!!
GeekFromIndia
|
|
|
|
|
|
Thats cool site..thanks [thumbs up]
here's another interesting one i found while googling http://sourcemaking.com/[^]
Keep DotNetting!!
GeekFromIndia
|
|
|
|
|
|
Thanks Mike...
thats mini wiki for patterns.. i m glad ...
I wish there was a forum where people post their real-time problems and how they found solutions through patterns...
Keep DotNetting!!
GeekFromIndia
|
|
|
|
|
geekfromindia wrote: I wish there was a forum where people post their real-time problems and how they found solutions through patterns...
That Wiki is huge and those discussion do in fact exist in it. There is a monster discussion about Singleton Pattern.
led mike
|
|
|
|
|
That is a good site. Guess i need to spend lot of time on that...
GET STARTED Geek...
Keep DotNetting!!
GeekFromIndia
|
|
|
|
|
I wonder, why this forum is so Inactive?
We can make a good use of this platform.
Keep DotNetting!!
GeekFromIndia
|
|
|
|
|
|
If I am writing a DB app, I am going to have several parts to keep track of. Some are:
SQL setup files
C# code
other misc files
Now if I change my c# files so that it requires new SQL setup files, I have to manage the change in 2 places. What is the best way to implement deployment while at the same time keeping DB/app versions in sync when revising code?
I don't even know what to call this concept to google it.
I guess this leads to the question "What are people who are using c# using for a CVS?"
The next situation would be if the end user was going from a previously installed v1 to v2 with different table structure. Are there design patterns for an updater?
Any info is appreciated.
Cheers,
WT
modified on Friday, January 11, 2008 11:32:17 AM
|
|
|
|
|
Hello WT,
The situation you are describing is a very common situation in development. We all go through managing the changes to code and consolidation of these changes.
Here is a suggestion if you are referring to source control for developers:
For application code (C#), use a source control system. In my organization, I set up to use Microsoft Team Foundation Server. Basically, its pretty cool in that when developers make changes in the C# code, then the changes are automatically checked out and then they can check things in.
Other source control systems you can use can be Visual SourceSafe. Or you can go with a open source solution such as: SubVersion.
Now for SQL scripts(I assume that is what you mean). There are a few solutions out there which are add-ons to SQL 2005 to handle source control.
As far as deploying new SQL changes (which seems to be the core problem) to futher environments.
You can use a SQL examiner tool which would do a compare between DB1 and DB2 and then allow you to create a "change script". I use SQL Examiner: <a href="http://www.sqlaccessories.com/SQL_Examiner/">
</a>[<a href="http://www.sqlaccessories.com/SQL_Examiner/" target="_blank" title="New Window">^</a>]
I hope above is helpful for you.
Arsen
|
|
|
|