x64 Driver Bug

This is the English forum for all topics related to IO-Warrior. Please post in English only

Moderator: Guido Körber

Post Reply
phoenix
Posts: 17
Joined: Wed May 02, 2007 1:10 pm

x64 Driver Bug

Post by phoenix »

I think I've found a big in the IOWarrior x64 driver

I use the processor Serial number as part of my software security, this has worked pretty well in all x86 installations, however, Im now finding that in x64 installations the serial number shows up as 0.

Con someone confirm if this is a bug, or if there is a easy fix in my software that will resolve this.

Thanks

Bryan
Guido Körber
Site Admin
Posts: 2856
Joined: Tue Nov 25, 2003 10:25 pm
Location: Germany/Berlin
Contact:

Re: x64 Driver Bug

Post by Guido Körber »

Our Windows guy will be back in the office on Monday, right now I can't verify this.
User avatar
Christoph Jung
Posts: 670
Joined: Sun Oct 08, 2006 3:43 pm
Location: Germany / Berlin
Contact:

Re: x64 Driver Bug

Post by Christoph Jung »

I've test my x86 application (with x86 DLL) on my x64 Windows 7 without any problems. I get the serialnumber from the device.
Do you use a x86 or x64 Application / DLL on your x64 system?
Abteilung: Softwareentwicklung
Folge uns auf Twitter
Follow us on twitter
phoenix
Posts: 17
Joined: Wed May 02, 2007 1:10 pm

Re: x64 Driver Bug

Post by phoenix »

its an x86 application written in VB.NET 2010, using the x64 driver

It doesn't matter if I build it inside an x86 or x64 OS I get the same error, I've tried rebuilding and debugging inside x64 OS and can see that the array that returns the serial code only contains a value of 41 in one of the bytes with the rest being returned as zero
User avatar
Christoph Jung
Posts: 670
Joined: Sun Oct 08, 2006 3:43 pm
Location: Germany / Berlin
Contact:

Re: x64 Driver Bug

Post by Christoph Jung »

Could you send my the application and the project from Visual Studio. I will take a look on it.
Send it as a ZIP-File to jung@codemercs.com
Abteilung: Softwareentwicklung
Folge uns auf Twitter
Follow us on twitter
phoenix
Posts: 17
Joined: Wed May 02, 2007 1:10 pm

Re: x64 Driver Bug

Post by phoenix »

Hm..... the project in question is pretty big and ugly, let me see if I can replicate the problem in one of my other projects
phoenix
Posts: 17
Joined: Wed May 02, 2007 1:10 pm

Re: x64 Driver Bug

Post by phoenix »

OK, well that didn't go as planned!

Firstly I didn't have a suitable project so made one using the core code from the problem project....only for it to work!!!

Went back to the original project and stripped that down to the core code, and nothing I did would work, I ended up deleting 95% of the code and it still wouldn't work!

Having ruled out the code I started looking at the configuration, and found the problem, and solution

Basically you must use .NET framework 4.0, the problem project was .NET 3.5, as soon as I changed it to 4.0 the problem was solved
Post Reply