1. Virtunome Attn: Greg Haberek

Hi Greg,

I just tried your Virtunome and I think you did a very good job! The only
problem I noticed is your progam is suffering by using Win32Lib setTimer.
At times if I am doing something in the background the Virtunome will skip
a beat. Any plans on trying to fix this?


----If you continue to do what you have always done,
you will get what you have always gotten.----

new topic     » topic index » view message » categorize

2. Re: Virtunome Attn: Greg Haberek

> I just tried your Virtunome and I think you did a very good job! The only
> problem I noticed is your progam is suffering by using Win32Lib setTimer.
> At times if I am doing something in the background the Virtunome will ski=
p
> a beat. Any plans on trying to fix this?

Yes! But....  I'm having issues. I have a version that uses Multimedia
Timers, but it closes randomly. I'm guessing its due to the Multimedia
Timer running in a thread, and Eu not being thread safe. I've heard of
others using Multimedia Timers just fine, so maybe I'm doing something
wrong.

Virtunome for the most part, was a proof-of-concept for my girlfriend.
Her and I are both musicians and she wanted something she could
practice with. It seems to work 'good enough' for her for now, better
than most analog metronomes. On my system (1.3GHz Duron) I rarely see
under 97% accuracy. I'd prefer better, but that's acceptable for now.

~Greg

new topic     » goto parent     » topic index » view message » categorize

3. Re: Virtunome Attn: Greg Haberek

Greg Haberek wrote:

> Yes! But....  I'm having issues. I have a version that uses Multimedia
> Timers, but it closes randomly. I'm guessing its due to the Multimedia
> Timer running in a thread, and Eu not being thread safe. I've heard of
> others using Multimedia Timers just fine, so maybe I'm doing something
> wrong.

Try compiling to C and see if it still happens. I know that sounds strange,
but I have had programs that exited for no reasons in EU, but never exited
when compiled to C. Can you upload a the Multimedia Timer version? I would
like to see how you implemented it.


----If you continue to do what you have always done,
you will get what you have always gotten.----

new topic     » goto parent     » topic index » view message » categorize

4. Re: Virtunome Attn: Greg Haberek

> Try compiling to C and see if it still happens. I know that sounds strang=
e,
> but I have had programs that exited for no reasons in EU, but never exite=
d
> when compiled to C. Can you upload a the Multimedia Timer version? I woul=
d
> like to see how you implemented it.

Sure... bit a little later. I've got to finish this timesheet/traval
distance program for work so we can all file our taxes and claim
mileage. If I finish it today, I'll jump back to working on Virtunome
later this afternoon.

~Greg

new topic     » goto parent     » topic index » view message » categorize

5. Re: Virtunome Attn: Greg Haberek

Greg Haberek wrote:
> Sure... bit a little later. I've got to finish this timesheet/traval
> distance program for work so we can all file our taxes and claim
> mileage. If I finish it today, I'll jump back to working on Virtunome
> later this afternoon.
> 
> ~Greg

Sounds good....

---- Chris


----If you continue to do what you have always done,
you will get what you have always gotten.----

new topic     » goto parent     » topic index » view message » categorize

6. Re: Virtunome Attn: Greg Haberek

> Sounds good....

Ok. I've updated it and re-posted it to the Archive. I believe you
were right about translating it to C. It doesn't seem to crash that
way. I added a check for the interpreter and a it issues a warning to
the user in the app if it may crash.

Download it here:
http://www.freewebtown.com/ghaberek/virtunome.zip (source)
http://www.freewebtown.com/ghaberek/virtunome.exe (executable)

Enjoy!

~Greg

new topic     » goto parent     » topic index » view message » categorize

7. Re: Virtunome Attn: Greg Haberek

> Ok. I've updated it and re-posted it to the Archive. 
Great..I will check it out.


> I believe you were right about translating it to C. It doesn't seem 
> to crash that way. I added a check for the interpreter and a it issues
> a warning to the user in the app if it may crash.
> 
Robert has said usually when a App crashes in EU and not in C, there is a
bug in your EU code, but C just ignores it. There has been times when I was
100% sure my code was "bug free" and had weird crashes while running, but when
compiled to C it never crashed.

----Chris

----If you continue to do what you have always done,
you will get what you have always gotten.----

new topic     » goto parent     » topic index » view message » categorize

8. Re: Virtunome Attn: Greg Haberek

> Robert has said usually when a App crashes in EU and not in C, there is a
> bug in your EU code, but C just ignores it. There has been times when I w=
as
> 100% sure my code was "bug free" and had weird crashes while running, but=
 when
> compiled to C it never crashed.

Virtunome is pretty simple as far as code goes. I don't think there
are any bugs. It doesn't crash, per se. It just closes. But I don't
make it close, so I consider it a 'silent' crash (i.e. no
errors/warnings reported).

~Greg

new topic     » goto parent     » topic index » view message » categorize

9. Re: Virtunome Attn: Greg Haberek

Hi Greg,

What is w32Union.ew? You did not included it with the source.

----If you continue to do what you have always done,
you will get what you have always gotten.----

new topic     » goto parent     » topic index » view message » categorize

10. Re: Virtunome Attn: Greg Haberek

> What is w32Union.ew? You did not included it with the source.

Sorry... its my custom union support for Win32Lib (and something that
Win32Lib needs). I need it because the Multimedia Timers use a union.
I've updated the zip file. Download it again.

~Greg

new topic     » goto parent     » topic index » view message » categorize

11. Re: Virtunome Attn: Greg Haberek

Greg Haberek wrote:
It just closes. But I don't
> make it close, so I consider it a 'silent' crash (i.e. no
> errors/warnings reported).
> 

I bet one of your callbacks is causing it, and that is why in C it does not
exit. Maybe Robert will take a look at it and see why it is exiting without
showing a error/warning.

----If you continue to do what you have always done,
you will get what you have always gotten.----

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu