|
I agree with the philosophy but could you explain me then why you have already posted more then 20 000 messages in the forums if you think that I screw around in the forums if I ask for explanation.
I find a forum a fast alternative to get information instead of doing lot of research. There isn't alway a lot of time to perform research if you have deadlines you know.
By The way I don't have problems to give code snippets to a person to give them a start. But I certainly agree that performing research is the best way to become a top developer.
Kind Regard
|
|
|
|
|
bluepoison wrote: if you think that I screw around in the forums if I ask for explanation.
Reread some of the previous suggestions you have been given. The first response to your enquiry was a link (given by Mark) to the Visual Studio Tools for Office web page. It is up to you to use these tools for your research and design and code your application. When you have a specific problem with some aspect of your application then come back and ask for help.
bluepoison wrote: There isn't alway a lot of time to perform research if you have deadlines you know.
Quite frankly that is your problem and not anyone else's; it is not urgent to us, as we have our own deadlines. You cannot expect the other contributors here to do your work for you. Firstly, they don't have the time - they are most likely engaged in their own research, and secondly the only way for you to succeed in this, or any other, business is through your own endeavours.
|
|
|
|
|
bluepoison wrote: I find a forum a fast alternative to get information instead of doing lot of research.
This is where you're short-changing yourself. By constantly asking a lot of questions, you're actually missing out on learning other things while you research your topic. Also, if your research skills are up to the task, asking a question in a forum is not faster than doing the research. For example, a week ago, I needed to get all the exported function names from any specified .DLL. Knowing nothing about the Win32 PE executable format, I started digging by launching Google. 2 days later, and a ton of research, I can almost read a PE file by hand, byte-by-byte. I'm still working on the library to do it for me, but my question was answered in 2 days and I've also learned about all kinds of little things that go on inside a PE file that make my debugging life a bit easier and well as some pitfalls in reading and parsing the file. It's just not possible to get an answer describing the format for PE files in a couple of forum posts and it's not possible to get all the tiny details you need to know to parse one and understand it.
bluepoison wrote: There isn't alway a lot of time to perform research if you have deadlines you know.
Then there isn't time to do the project properly and where you have to push back on a deadline.
|
|
|
|
|
bluepoison wrote: There isn't alway a lot of time to perform research if you have deadlines you know.
A very poor excuse that essentially means the project has already failed.
Never enough time to do right but always enough time to do it over.
only two letters away from being an asset
|
|
|
|
|
Hi All,
I have the application whose runtime argument will decides how many threads I have to create.All these threads functionality may differ by a step or two.Threads are going to use the same set of resources (Database tables,variables) etc.
To improve the application performance I planned to use multithreading.But I am a bit abash while thinking about .. since in my application the thread should continue processing in spite of any error in another thread. The sucessful run of all the above threads end up with the creation of file having consolidated data.
Can anybody help me on how to implement this scenario? Please reply.
Thanks!
|
|
|
|
|
You haven't really given enough details about the problem or any reason why you're using threading and how many threads you plan on using.
Keep in mind that every thread you start allocates at least 1MB of memory. So, if you think you're going to go start 250 threads, you just flushed 250MB of memory down the toilet. Starting a thread is a very expensive operation, so you don't want to just throw them around. You have to to some planning and keep the number of threads down to a minimum.
Remember, just because a machine can have hundreds of threads running at the same time, on a single core machine, only one of them runs at any given time. On a quad-core machine, four threads run at the same time. So, starting all kinds of threads is really just not that good of an idea.
Threading gives the illusion of greater performance, not the actual performance gain.
|
|
|
|
|
i have a simple application developed on .net 2.0. the client machine is a vista one and it has .net 3.5 , when i run the application on it gives a message saying windows is closing this program .when i try to install .net 2.0 it says it is already installed as a part of the os, but in the add/remove page it shows only .net 3.5 , what might be the problem .
|
|
|
|
|
I highly doubt it has anything to do with the version of .NET on the machine. Check your application, is there a setting missing or configured improperly? Do you have a debug log? Did you test it on other machines?
only two letters away from being an asset
|
|
|
|
|
Hi,
when you program defensively, your app will tell you where and how it fails. That would take a number of try-catch blocks showing the exceptions using Exception.ToString() either in a MessageBox or (much better) in a log file.
Lacking any specific information, it is hard to guess what is going wrong. It could be your app is trying to create a file in a folder where it shouldn't; Vista imposes some of the rules Microsoft has been advocating before, such as not to create any files in the top-level directory of the system partition, nor in any of a number of special folders. Instead use one of the Environment.GetSpecialFolder results.
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
thanx, in my application i have opened a socket and in the error it says myapp is stopped working , in the problem details it shows problem signature 09 :System.Net.Socket.socket, is there any thing related to socket or , do i have to open the port in vista.
|
|
|
|
|
did you program this app? if so, add error handling with try-catch where needed, AND a global try-catch at the top level (static Main in C#). What is your programming language?
Also provide an error handler for other threads. And have a look at Application.ThreadException
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
Hi,
How can I write a FLV video using bitmap images programmatically?
Earlier I was using .AVI format for this thing but the problem with this format is with its size. ALternatively, If someone can tell me how to compress the file size of .AVI video>
|
|
|
|
|
|
hi,
thanks for the reply.
I tried using FFMPEG but there was no response. I am using following code. Please see that the my image which is passed as srcURL is generated dynamically.
Private Sub GenerateVideo(ByVal srcURL As String)
Dim ffmpegURL As String = "ffmpeg.exe"
Dim directoryInfo As New IO.DirectoryInfo(Path.GetDirectoryName(Application.StartupPath & "\ffmpeg.exe"))
Dim startInfo As New ProcessStartInfo()
startInfo.FileName = "ffmpeg.exe"
startInfo.Arguments = "-r 10 -b 1800 -i " + srcURL + " c:\new.mp4 "
' -i = input file -f = file format -vframe = video frame -s = size -ss = seek to frame
startInfo.WorkingDirectory = directoryInfo.FullName
startInfo.UseShellExecute = True
startInfo.RedirectStandardOutput = False
startInfo.RedirectStandardInput = False
startInfo.RedirectStandardError = False
startInfo.WindowStyle = ProcessWindowStyle.Hidden
Using process As New Process()
process.StartInfo = startInfo
Try
process.Start()
Catch ex As Exception
MsgBox(ex.Message.ToString)
End Try
process.WaitForExit()
End Using
End Sub
Please what is going wrong here.
|
|
|
|
|
Hi,
I need to make a uninstaller for my windows application.
Currently I am using a .bat file with code Msiexec /x {9807DCD3-B46D-46AB-AE6B-8ADC442DDA53} in it.
The problem within this .bat file is that anyone can open it up and while opening it up a command window opens with it which looks very bad.
Does anyone has any solution for this?
Any help would be appreciated.
|
|
|
|
|
In my windows app I want a form with AutoScroll property set to true so that I can put more than the size of the form into it. But my problem is that I can not set the height of the form in Visual Studio's designer to more than the current resolution of the display. Is there any solution for that ?
|
|
|
|
|
You can't directly get around it. The size of the form is going to be limited to the bounds of the screen on your dev machine.
But, there is nothing stopping you from putting a Panel control, or some other container control on the form, and making it larger than the form it's sitting on, then dropping your controls in the Panel.
Personally, if you're making a form this big, I think it's bad idea.
|
|
|
|
|
Dave Kreskowiak wrote: Personally, if you're making a form this big, I think it's bad idea.
Why is it a bad idea ? The form is a paper-like form that is 2 A4-sized pages. According to AutoScroll property of the form, I think It good to place all controls on the form.
What is your suggestion ?
|
|
|
|
|
Because uses don't like to scroll around to fill in pieces of a form. Break it up into smaller sections by relevance and have each hosted either on a tab page or a seperate form, depending on specs.
|
|
|
|
|
Hi,
I have the following code in the module of my DLL
Private m_objAppConfig As clsAppConfig = Nothing
Public Property objAppConfig() As clsAppConfig
Get
If m_objAppConfig Is Nothing Then
If False Then 'Something related to the load of the program in VB.Net
Return Nothing
Else
Throw New ExceptionImproperMethodCall("The configuration was not previously loaded")
End If
End If
Return m_objAppConfig
End Get
Set(ByVal value As clsAppConfig)
m_objAppConfig = value
End Set
End Property
It works OK while running, but when I open the project in VB.Net it throws the ExceptionImproperMethodCall several times.
Have you ever seen this?
Thanks
|
|
|
|
|
Hi,
the exception you get is right there, it gets thrown by the get part of the property (Throw New ExceptionImproperMethodCall("The configuration was not previously loaded") ) as long as no value has been set. So some code must be using the getter, maybe a constructor somewhere.
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
It seems I'm not clear.
I've put the exception to avoid any use of the programs using the library in a way that I don't want. The library is used for at least one colleague and, of course, several users.
And it works. The compiled programs run perfectly.
Is when I load the source with the VS 2008 that I get the messages. Before actually running the application.
Thanks again
|
|
|
|
|
Visual Studio does execute parts of an app while developing, i.e. without actually running the app. That is how the Designer is capable of showing User Controls for instance. I'm not sure which parts execute, at least they would include all parameterless constructors for GUI Controls and Components. So check those for reading the throwing getter.
If you can locate the getter being called but find it hard to prevent it, there is a DesignMode property that will help you.
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
Thanks, Luc
That's what I suspected.
I still couldn't find the places where is called, provided that the F5 (start debugging) goes thru the calls in the right moments, where the object has already been instantiated. The only moment where I get the exception is when I open the project. Therefore, even testing is slow, because any idea to test implies closing and opening the project.
The DesignMode works for components, that inherit from Control, do not apply for these objects, that are not controls.
Regards,
Guillermo
|
|
|
|
|
Hi,
I am preparing a setup for a project say A and in order to run that A properly another installer say B has to be installed on target machine.
How can I prepare a setup project for A to check whether B has been installed prior or not, and if not quit the installation and install B first.
|
|
|
|