Click here to Skip to main content
15,911,785 members
Home / Discussions / C#
   

C#

 
GeneralRe: Virtual and override. Pin
HakunaMatada22-Dec-05 19:39
HakunaMatada22-Dec-05 19:39 
AnswerRe: Virtual and override. Pin
GDavy22-Dec-05 20:47
GDavy22-Dec-05 20:47 
GeneralRe: Virtual and override. Pin
HakunaMatada22-Dec-05 21:26
HakunaMatada22-Dec-05 21:26 
QuestionWebService Pin
flysky61822-Dec-05 16:24
flysky61822-Dec-05 16:24 
AnswerRe: WebService Pin
Dave Kreskowiak22-Dec-05 17:59
mveDave Kreskowiak22-Dec-05 17:59 
GeneralRe: WebService Pin
flysky61822-Dec-05 20:11
flysky61822-Dec-05 20:11 
GeneralRe: WebService Pin
Dave Kreskowiak23-Dec-05 3:52
mveDave Kreskowiak23-Dec-05 3:52 
QuestionDirectX app crashing Pin
Christian Graus22-Dec-05 16:18
protectorChristian Graus22-Dec-05 16:18 
I wrote a video jukebox program in C# last year. I initially used the AudioVideoPlayback namespace, but it's really buggy, so I used the WMP control instead. However, we used DX to read ID3 tags in the manager program. Now, a year later, the client has changed the contact person, and every machine he tries to install on gives him this error :
The type initializer for "Microsoft.DirectX.DirentInput.Manager" threw an exception.


in the constructor for the class that uses DX. The machines are all XP SP2, which means that DX is installed, although I'm not sure if managed DX gets installed by SP2, the installer won't run as it's there already.

The real worry is, it works fine on my dev machine, and works fine on his machine at home. I've tried with a couple of dll versions ( I have several installed ).

My constructor looks like this :

public JukeboxDXJoystickController()

{

foreach(DeviceInstance di in Manager.GetDevices(DeviceClass.GameControl, EnumDevicesFlags.AttachedOnly))

{

device = new Device(di.InstanceGuid);

}

if (device == null)

{

MessageBox.Show("Unable to find attached joystick");

return;

}

device.SetDataFormat(DeviceDataFormat.Joystick);

device.SetCooperativeLevel(null, CooperativeLevelFlags.Background | CooperativeLevelFlags.NonExclusive);

device.Properties.AxisModeAbsolute = true;

deviceUpdated = new AutoResetEvent(false);

appShutDown = new ManualResetEvent(false);

device.SetEventNotification(deviceUpdated);

Thread threadLoop = new Thread(new ThreadStart(this.ThreadLoop));

threadLoop.Start();

device.Acquire();

}

I previously used joyGetPos, etc, but they proved to be unreliable in C#. We can still use them and the program runs fine. Any suggestions are most appreciated.



Christian Graus - Microsoft MVP - C++
AnswerRe: DirectX app crashing Pin
mav.northwind22-Dec-05 21:56
mav.northwind22-Dec-05 21:56 
GeneralRe: DirectX app crashing Pin
Christian Graus23-Dec-05 11:35
protectorChristian Graus23-Dec-05 11:35 
AnswerRe: DirectX app crashing Pin
leppie23-Dec-05 0:13
leppie23-Dec-05 0:13 
QuestionDelete command with DataSet and DataAdapter Pin
Stefan R22-Dec-05 13:45
Stefan R22-Dec-05 13:45 
AnswerRe: Delete command with DataSet and DataAdapter Pin
Dave Kreskowiak22-Dec-05 15:52
mveDave Kreskowiak22-Dec-05 15:52 
AnswerRe: Delete command with DataSet and DataAdapter Pin
Dave Kreskowiak22-Dec-05 16:14
mveDave Kreskowiak22-Dec-05 16:14 
GeneralRe: Delete command with DataSet and DataAdapter Pin
Stefan R22-Dec-05 22:57
Stefan R22-Dec-05 22:57 
GeneralRe: Delete command with DataSet and DataAdapter Pin
Dave Kreskowiak23-Dec-05 4:24
mveDave Kreskowiak23-Dec-05 4:24 
GeneralRe: Delete command with DataSet and DataAdapter - RESOLVED! Pin
Stefan R23-Dec-05 4:41
Stefan R23-Dec-05 4:41 
GeneralRe: Delete command with DataSet and DataAdapter - RESOLVED! Pin
Dave Kreskowiak26-Dec-05 5:53
mveDave Kreskowiak26-Dec-05 5:53 
Question[urgent] web browser, forms Pin
Sam 200622-Dec-05 9:28
Sam 200622-Dec-05 9:28 
QuestionReports in c# Pin
HolyGrandFather22-Dec-05 9:16
HolyGrandFather22-Dec-05 9:16 
AnswerRe: Reports in c# Pin
Christian Graus22-Dec-05 9:45
protectorChristian Graus22-Dec-05 9:45 
AnswerRe: Reports in c# Pin
HakunaMatada22-Dec-05 17:19
HakunaMatada22-Dec-05 17:19 
GeneralRe: Reports in c# Pin
HolyGrandFather22-Dec-05 23:56
HolyGrandFather22-Dec-05 23:56 
GeneralRe: Reports in c# Pin
HakunaMatada23-Dec-05 0:35
HakunaMatada23-Dec-05 0:35 
AnswerRe: Reports in c# Pin
albCode23-Dec-05 0:46
albCode23-Dec-05 0:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.