Link to home
Start Free TrialLog in
Avatar of Marianne VAN WYK
Marianne VAN WYKFlag for South Africa

asked on

Problem duplicating program

I have received a program ( code included (x64)) to help kick open my posiflex cash drawer. I decided to create a test program (TestCD) to fist see if i could replicate the code. I can get the object to open and get the drawer to kick open but I cant close the object. Leaving it open causes the cash drawer to lose power. If someone can have a look at the two programs and maybe tell me what I am missing. I had a look at references and the forms but feel free to double check. I am not sure how much help the source code would be since you would need a cash drawer to test but please find below a link the the two programs. Ask if you need anything else and I will supply it asap.

https://www.dropbox.com/sh/sbdrhvwdbbyte2y/AAAEapPv36queudGr2hfKKfpa?dl=0

Regards,
Markus
Avatar of ste5an
ste5an
Flag of Germany image

Why did you copy those VS upgrade artifacts to your test project?????

When I need to guess: you must call the Release() method.

p.s. please attach code to your post directly, instead of using a third party storage provider.
Avatar of Marianne VAN WYK

ASKER

I copied the artifacts to the test project because after coping all the code and form components my code gave an error where theirs did not. So I thought it might be something I am missing.

The Release() did not work.

If it helps below is the error I got om my(TestCD).Close() method
Copy their solution, then remove all those dead code. When theirs still run, then you can now easier compare and see what happens in your program.
I have done that. Once I cut it down to the bone so to speak theirs still works and mine doesn't and the error pops up on the close.
Capture.JPG
ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Posiflex only gave me the code and when I asked for a manual to help integrate I was told to get a developer. I have also found the problem it turned out that their program ( the .dll in question ) is not compatible with with .net framework 4 it only works on .net framework 2. So I will have to ask them to update the .dll.

Thanks for your help.
Tried the ReleaseDevice() to close the dll and got the same error as Close(). Then went and have a look at the dll version and saw it was on .net framwork 2