|
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.
|
|
|
|
|
What application are you using to create the setup-package? Most of them allow the inclusion of custom setups or msi-packages that can get installed along the application.
Alternatively, you could check the registry whether B is installed under the key
SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
If it's not, launch setup B, wait until it completes, and relaunch the A-setup. You'd need the ability to launch a custom application from your setup for this.
I are Troll
|
|
|
|
|
Currently I am using Visual Studio 2008 deployment setup for making an installer file. Please recommend me some good msi maker if you have one.
I am using following RegKey:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MY_Prerequisite_application
Can you please tell me how to "If it's not, launch setup B, wait until it completes, and relaunch the A-setup. You'd need the ability to launch a custom application from your setup for this."
modified on Saturday, September 19, 2009 1:06 AM
|
|
|
|
|
Raj Jayaswal wrote: Please recommend me some good msi maker if you have one.
I haven't used those tools for a while. You might want to check out this site[^], has a lot of neatly categorized answers
Raj Jayaswal wrote: If it's not, launch setup B, wait until it completes, and relaunch the A-setup. You'd need the ability to launch a custom application from your setup for this.
The Visual Studio template doesn't have an easy option to launch one of the deployed files before the setup starts. Anyway, there seems to be a better solution;
Setup B would become a Merge Module[^], so that you can add it to your own setup. Once you got a Merge Module, add it to the setup.
Hello World
|
|
|
|
|
Still the problem remains same.
I have created a merge module in my solution, added the prerequisite B.exe to it and then added the .msm file to my setup project.
|
|
|
|
|
Like I already said, I haven't done this in a while and you'd have to put some extra research in it.
Anyway, there's an article on CodeProject[^] that explains how this can be done.
I are Troll
|
|
|
|
|
Thanks for the reply.
This article only explains how to add the prerequisites which are listed over there.
Is there any means by which by which I can add my prerequisite application to that list?
|
|
|
|
|
Raj Jayaswal wrote: Is there any means by which by which I can add my prerequisite application to that list?
Yes, by putting your Merge Module in this directory;
"C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages"
(source[^])
I are Troll
|
|
|
|
|
Hi, thanks. I think I am close to the solution.
One more thing. The article you referred to me asks me to copy my exe to the bootstrap folder location and write a .xml file in it. Please verify whether I am writing the correct code in it or not.:
<?xml version="1.0" encoding="utf-8"?>
<Product xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" ProductCode="PrerequisiteName">
<RelatedProducts>
<DependsOnProduct Code="Microsoft.Net.Framework.3.5" />
<DependsOnProduct Code="Microsoft.Windows.Installer.3.1" />
</RelatedProducts>
<PackageFiles>
<PackageFile Name="PrerequisiteName.exe" />
</PackageFiles>
<InstallChecks>
<ExternalCheck Property="PrerequisiteName" PackageFile="PrerequisiteName.exe" />
</InstallChecks>
</Product>
Thanks
|
|
|
|
|
The best verification is a test. I'm not the author of the article, and I haven't created any setups recently.
I are Troll
|
|
|
|