Page 1 of 1

VB.net bugs....

PostPosted: Fri Oct 14, 2005 8:15 am
by Olivier
Hello,
i build a project in vb.net with the wrapper.
IR transmission works well but i get an unmanaged error when the IR learning completes (100%).
Here is a zip of my project:
http://snort.free.fr/usbuirt/testusbuirt1.zip

Question: as i have the wrapper.net source code, is there a way to include it in my project and debug it ?

thanks in advance

PostPosted: Fri Oct 14, 2005 10:52 pm
by jrhees
I haven't had a chance to look at your code yet...

Yes, you should be able to include the Wrapper as part of your project rather than merely adding the Class Library reference.

-Jon

PostPosted: Sun Oct 16, 2005 3:50 am
by Guest
Can you give some details? What's the error you see? Does it happen evey time?

PostPosted: Sun Oct 16, 2005 12:11 pm
by Olivier
it happens at 95 times on 100.....

Learning progression works well but when it reaches 100%, i get this error: Instruction at "0x00191073" use memory adress "0xffffffff". Memory can not be read.

Note: i cant manage this error through the debugger :(
Note2: test app in C# provided with the .net wrapper works well.....

please....... :)

PostPosted: Sun Oct 16, 2005 12:28 pm
by Olivier
don't ask me why but it works now.....
thanks all for ur help :)

VB.NET code example?

PostPosted: Fri Nov 04, 2005 1:52 am
by CNN
Can anyone help me with some VB .net example code?

I need to write a program to learn codes, store them and play them back on demand (a custom remote control).

Thanks in advance!

CNN

PostPosted: Sat Nov 05, 2005 1:00 pm
by Guest
Olivier wrote:it happens at 95 times on 100.....

Learning progression works well but when it reaches 100%, i get this error: Instruction at "0x00191073" use memory adress "0xffffffff". Memory can not be read.

Note: i cant manage this error through the debugger :(
Note2: test app in C# provided with the .net wrapper works well.....

please....... :)


I get the same error...
How did you fix the code?

Claus

PostPosted: Sat Nov 05, 2005 2:57 pm
by jrhees
One possibility (although I'm not much help in tracing this out for you), is that the Grabage collector has freed up the variables (pointers to those variables) you passed to the Learn function. There is some .NET docs talking about how to tell the Garbage collector not to free up a variable it 'thinks' is no longer in use.

However, I don't believe this should be a problem since you should be doing a non-Async learn...

-Jon

PostPosted: Wed Nov 16, 2005 7:17 pm
by olivier
i solved this bug using a debug version of the .net wrapper ....
________
DIGITAL VAPORIZERS

I got same problem in python

PostPosted: Tue Mar 28, 2006 11:55 pm
by Guest
olivier wrote:i solved this bug using a debug version of the .net wrapper ....


Can you tell me more details about the issue you found and how
you fixed it? Thanks a lot.