|
Ouch! Good luck!
Real programmers use butterflies
|
|
|
|
|
Sander Rossel wrote: While writing this I'm thinking of something that could be the problem... Isn't your rubber duck listening today?
|
|
|
|
|
A friend once asked the same, but made a typo.
He ended up asked about my rubber d... Well, just check the letter next to "U"
Since then I can't read or hear "rubber duck" without thinking about it
|
|
|
|
|
If that's what you do to your rubber duck, no wonder it isn't listening.
|
|
|
|
|
We had similar(-ish, but the opposite way round) problems with the JVM's GC, while interfacing it to a COM component we needed to use. Instead of releasing objects before we wanted, the GC was holding onto COM reference wrapper objects long after their lifetime was over (because the objects were small, so the GC wasn't experiencing any memory pressure). This meant that the actual COM objects weren't being released, so were exhausting memory outside of the JVM :-/
GC works fine for memory allocated and used solely within the containing virtual machine environment - anything slightly more complex, and you're dicing with death (of your hopes and dreams).
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I've run into the same problem as you before. The solution is to marshal the objects as IntPtrs, and manually release them when you're done, if I recall correctly. That way you control the lifetime explicitly. It makes things easier.
I solved the problem with my MIDI code in the OP, and then improved on it several times to make it more efficient and easier to read the code. Now in my entire streaming codebase i only have one win32 global heap allocation that happens once you open a device, until you close it. I've taken to marshalling all structs as ref (struct) except for a very complicated vector of variable length structs which I have to mangle manually.
So it's golden now, and even mostly easier to read and maintain when I'm done. Cool beans.
Real programmers use butterflies
|
|
|
|
|
I did it slightly differently - I wrote a class to implement something like an Objective-C autorelease pool, which our COM object wrappers added themselves to automatically. The pool was released in a finally block & that would release all the COM objects that had been allocated and finished - something like this...
AutoReleasePool.createPool();
try {
... Do stuff ...
} finally {
AutoReleasePool.releasePool();
}
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
that seems even more complicated, but you do you. I don't know the whole picture anyway so I'm just talking smack here.
Real programmers use butterflies
|
|
|
|
|
Yeah, completely different scenario - I was dealing with potentially hundreds of thousands of COM objects that needed to be created from Java, so couldn't go with a single C memory reference.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
hai, i'm honey the monster, aka honey the codewitch
I've gotten a fair amount of confusion from people recently and over the past several months about how people refer to me, to wit my pronouns "he", "she", whatever. This has resulted in PMs (i don't mind) and/or deleted/edited/awkward comments and so I just want to clear things up.
I don't care what pronouns you use for me. Use whatever makes the most sense to you.
my gender is bees.
i'm just weird, but amicably so.
if i get too many more i'm putting this in my bio
Real programmers use butterflies
|
|
|
|
|
it's 'nice' of you to try and clear things up - I guess a lot of us struggle with gender fluidity and as you put it 'personal pronouns'
.. the only thought going through my tiny mind, was what if someone began a conversation 'hi honey ...'
seriously, seems like other people's issues, gender shouldnt come into it
|
|
|
|
|
oh it's just i get tagged in convos periodically so people refer to me as "he" sometimes and then people get confused and then they feel awkward and etc...
it's not a huge deal, esp not for me, but I want to put other people at ease.
Real programmers use butterflies
|
|
|
|
|
OK, make it hon (Swedish she).
But with English pronunciation as a short form of Honey, it sounds like Swedish for he (han).
|
|
|
|
|
i like the duality of it.
Real programmers use butterflies
|
|
|
|
|
As one of the PM's (probably the last one) you are referring was mine, I answer your message publicly too.
I thought you were a woman, then I saw Sander speaking about you as "he", so I just wanted to know for the sick of clarity.
Mental situation on my side:
About the "new" genders that have been popping lately... well, for me gender is a phyisical caracteristic. I did like to think of gender in a binary form (male or female), then science came and made possible to change it with an operation, nice... no problem at all. If you feel a male, change it to a male, if you feel a female change it to female. I can even accept the mixed status of transexuals. But all the rest are for me sexual orientation, not a gender.
Said that...
I don't care any little about sexual orientation. I have friends hetero-, homo- and bi-, and even know people self- and a-sexual, and a couple that hit almost all statistics (she was he, and he was she, they got together and adopted a kid).
In conclusion: Everyone can do whatever they want to do with whoever want to do, as long as it is with mutual knowledge and consent and don't disturb anyone on purpose.
It was just that I know people too, that are pretty sensible to how they are called (not saying that you are) so when I don't know it for sure and / or get confused I prefer to ask directly, before I offend someone without intention.
honey the codewitch wrote: my gender is bees. (again)
I think I will personally opt for the easiest option... I will use your nick avoiding pronouns, that's it.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
i appreciate the ask. if you thought i was a women, i'd suggest using "she" if you really must use a pronoun. just a suggestion, if only to avoid having to make necessary adjustments.
Real programmers use butterflies
|
|
|
|
|
As I said... the easiest is to use "you" (no gender) in direct conversation or "honey" / "code witch" if I am speaking of you.
Problem solved
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Nelek wrote: I saw Sander speaking about you as "he" Argh! I tried so hard not to give it away
|
|
|
|
|
Oh stop. You know you like the attention.
That said, you can stay.
We nerds come in many shapes and sizes and are quality individuals that help the world go 'round.
|
|
|
|
|
.we are but....spirits in the material world ... . . .... . .. . .. .. . .
Caveat Emptor.
"Progress doesn't come from early risers – progress is made by lazy men looking for easier ways to do things." Lazarus Long
|
|
|
|
|
Have no faith in constitution...
GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
honey the codewitch wrote: a fair amount of confusion
honey the codewitch wrote: I don't care what pronouns you use for me. Use whatever makes the most sense to you.
my gender is bees. Well thanks for clearing that up.
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
That reminds me of a song by Lou Reed:
Quote: "Hey honey, take a walk on the wild side"
|
|
|
|
|
do do-do do do-do do
Real programmers use butterflies
|
|
|
|
|
honey the codewitch wrote: my gender is bees. Reading your single-line if-statements certainly stings
|
|
|
|