|
I wrote a DirectX 9 program with C#.NET and it would not run on my non-development machine. I keep getting this type of error:
Application has generated an exception that could not be handled.
Process id=0xedc (3804), Thread id=0xee0 (3808)
Click OK to terminate the application.
Click CANCEL to debug the application.
I get this error from running the DirectX Tutorial program from this site as well. The programs run fine on my development machine.
Does anyone know what's cauing this problem? It's not limited to this machine. Other non-development machines also have errors running the programs. I think this problem is caused by DirectX because other .NET applications run fine.
Thanks.
|
|
|
|
|
The information you gave here just states that your application has crashed.
Where and why cannot be determined from this info.
Use try/catch to find out where your app crashes.
Regards,
mav
|
|
|
|
|
Thanks for the reply. I found the problem. The machine did not have Managed DirectX installed. I installed the June redist and it worked fine.
On a side note, I've tried adding try/catch blocks to every method in my program and that didnt do anything.
|
|
|
|
|
I've faced a strange problem in the ListView control when I mirror it to support the right-to-left layout. I am talking about .NET 1.1. When a ListView control is mirrored, ListViewItems do the mirroring, but ClomnHeader controls do not, i.e. it keeps to display as left-to-right.
Here is an example of what I've described,
http://www.elc4sa.com/mr.gif
Any ideas ??
|
|
|
|
|
When i want to handle an event from a remoting class in the client app i got
a security exception telling me that DelegateSerializationHolder is not
permitted to be deserialized at this security level. Use .NET security
policy administration tool.
plz guide me how can i handle this error and what security permissions
should i give to my assembly.
|
|
|
|
|
You need to set the TypeFilter level to Full. The following snippet might help.
BinaryServerFormatterSinkProvider serverProvider = new BinaryServerFormatterSinkProvider();
BinaryClientFormatterSinkProvider clientProvider = new BinaryClientFormatterSinkProvider();
serverProvider.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;
IDictionary props = new Hashtable();
int portNumber = 9876;
props["port"] = portNumber;
props["typeFilterLevel"] =
System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;
try
{
ChannelServices.RegisterChannel(new TcpChannel(props, clientProvider, serverProvider));
}
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
thanks alot. your code helped me.
|
|
|
|
|
but when it want to handle the event there is another error telling me Can Not find ... assembply.
the object can be referenced but not events.
i really appreciate any help since i couldnt understand how to solve it.
|
|
|
|
|
I need wrapper class for SqlConnection which realizes interface ICommnad.
|
|
|
|
|
Is there something wrong with using SqlCommand ?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
I have a problem with checking file permissions. I'm trying to check wether a user can write, read to a specific folder/file but when i test my code it says it can even thou i have removed all permissions. Don't know if the code is correct.
<br />
FileIOPermission filePermission = new<br />
FileIOPermission(FileIOPermissionAccess.Write,<br />
Request.PhysicalApplicationPath+@"test\\test.txt");<br />
try<br />
{<br />
filePermission.Demand();<br />
Reponse.Write("Permission demand successful");<br />
}<br />
catch( SecurityException securityEx )<br />
{<br />
Reponse.Write(securityEx.Message);<br />
}<br />
|
|
|
|
|
Hello You!
I need Your HELP.
I have my own TreeView Nodes Editor, in order to add 'MyTreeNode'', like node which are ComboBox and so.
I have two classes. one inherit from 'TreeView' and the other from 'TreeNode'.
In 'MyTreeView' i override 'Nodes' (keyword- new) in order to open my custom editor.
In public partial class MyTreeView : TreeView, I use the next statement:
[
DesignerSerializationVisibility(DesignerSerializationVisibility.Content),
Editor(typeof(NodesTypeEditor), typeof(UITypeEditor)),
]
new public TreeNodeCollection Nodes
{
get { return base.Nodes; }
set
{
TreeNode[] myTreeNodeArray = new TreeNode[((TreeNodeCollection)value).Count];
((TreeNodeCollection)value).CopyTo(myTreeNodeArray, 0);
((TreeNodeCollection)value).Clear();
this.Nodes.AddRange(myTreeNodeArray);
}
}
but the DesignerSerializationVisibility create the next code, which produce casting error on run time:
MyCheckTreeNode myCheckTreeNode1 = ((MyCheckTreeNode)(new TreeNode("TreeNode")));
I need it to be :
MyCheckTreeNode myCheckTreeNode1 = new MyCheckTreeNode("TreeNode");
In the editor i use TreeView and PropertyGrid. the code in 'Add CheckBox Node' is:
treeView1.Nodes.Add(new MyCheckTreeNode("TreeNode"));
How can i fix it???
Please Help me. I need it fast.
Thanks,
Ran S'
|
|
|
|
|
Using context menu in windows explorer treeview (left part), I would like to launch my winform application in the listview (right part of windows explorer).
Is it possible ? (for the moment i just know how to create context menu in windows explorer)
|
|
|
|
|
I have a question on how to configure my .VCPROJ (VC++ 7.10) project properties so that I can produce both a .LIB and a .DLL when I compile.
In Studio.NET IDE, i can go under
Project->Properties->Configuration Properties->General->Configuration Type>
And set it to build a .LIB (or a .DLL). In a VC++ 6.0 version of a project I have, I can build both .LIB and .DLL in one compile.
How can I do this?
Thanks,
Johnny
|
|
|
|
|
I have an installer with several dialogs where the user can enter information. This information is later passed into a custom action as parameters in the form of:
/username=[USERNAME] /password=[PASSWORD] /hostname=[HOSTNAME]
being passed into the CustomActionData.
The installer works fine if all of these fields are filled in, however if they are left blank the installer crashes with the error:
"Exception occurred while initializing the installation:
System.IO.FileNotFoundException: File or assembly name myLastName, or one of its dependencies, was not found"
Does anyone have any idea why this is and if I can still run this custom action with these as parameters if the fields are left blank?
Thanks,
Luke
|
|
|
|
|
Hello everyone, first code project post for me.
In .NET, all classes seem to export by default, is there a way to explicitly mark a class so that it is not exported, i.e. make it invisible to
anyone who uses the assembly? I've got a couple of classes that are only used internally in my class library that the user shouldn't have to know about.
Any suggestions?
-Mathias
|
|
|
|
|
|
Thanks a lot!
Note to Managed C++ developers:
In Visual Studio 2003 there is no '__internal' keyword equivalent to C#'s 'internal', instead one is supposed to use 'private public:' access modifiers (!?). This should be fixed in Visual Studio 2005.
|
|
|
|
|
I'm trying to create an installer that will prompt the user for a username and password that they want to save. Unfortunately none of the templated dialogs that are in the user interface portion of the installer setup have a password field and their properties can't be edited to have them.
Does anyone know how I would go about adding this functionality to the installer? I've read all about custom actions and what's available there, but unless I'm wrong, these aren't there as prompts to the user and only execute during/after the installation process. I'm also using C# if that makes a difference.
Any help would be greatly appreciated.
Thanks,
Luke
|
|
|
|
|
|
I am using the Visual Studio 2003 Setup Wizard in the Setup and Deployment Project. I create a Setup for windows applciation. The generated output is a .msi file which I want to be able to distribute.
When I try to install a new version of my application over an existing one I get the following warning.
"Another version of this product is already installed.
Installation of this version cannot continue. To
configure or remove the existing version of this product,
use Add/Remove Programs on the Control Panel."
In the Deployment Project
DetectNewerInstalledVersion = True
RemovePreviousVersions = True
One strange thing is that if I Right Click on the Deployment Project and choose Install I do not have any problems - all installations are OK. It is only when I double click on the generated .msi file that the problem occurs.
I do not know if there is any use of it but I have Windows Installer 3.1 (the latest vesion I think)
Does anyone have any suggestions?
Thanks,
|
|
|
|
|
The setup.exe file is the file that will check for the previous versions ,click it and it will work as well.
|
|
|
|
|
LongHC wrote:
The setup.exe file is the file that will check for the previous versions ,click it and it will work as well
My distribution does not have the setup.exe file it only has a single .msi file.
|
|
|
|
|
You can force a reinstall over an existing installation by doing the following:
Make sure that all newer files have a higher version number than the existing files.
Run the msi with the following command line parameters:
msiexec /i [Fully qualified path to your new msi] REINSTALL=ALL REINSTALLMODE=vomus
You can modify the bootstrapper exe to run the install with the above command line.
There are a couple of limitations to this method:
This forces your new msi to run in reinstall mode, and overwrites all existing files where the version has changed. If older files exist that are no longer needed, this method does not account for removing them, and in fact you will still need to add the unneeded files to your new msi because they need to be present so that they are entered in the uninstall log. Otherwise if your user does a complete uninstall, old files not installed by your new msi will be left on the target machine. Ditto for all other resources like registry entries, etc.
If your new install needs to get user input from dialogs, you may run into problems.
An alternative to forcing a reinstall is to modify the bootstrapper to first run the existing msi in Unistall mode, then launch your new setup. You can get the parameters needed to run an uninstall from the registry.
Finally, Windows Installer does support "true" product upgrades, which are not the same as simply trying to force a reinstall over an existing product. But if your original setup was not correctly authored with an UpgradeCode, among other things, then this will not work. Describing how to author msi's to support future upgrades, and how to author the associated upgrade msi's is beyond the scope of anything I could answer on this forum.
Robert
|
|
|
|