Click here to Skip to main content
15,892,298 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Antivirus Program Choices Pin
kholsinger29-Jun-20 5:38
kholsinger29-Jun-20 5:38 
GeneralRe: Antivirus Program Choices Pin
Peter R. Fletcher29-Jun-20 8:05
Peter R. Fletcher29-Jun-20 8:05 
AnswerRe: Antivirus Program Choices Pin
willichan29-Jun-20 8:38
professionalwillichan29-Jun-20 8:38 
GeneralRe: Antivirus Program Choices Pin
englebart29-Jun-20 13:30
professionalenglebart29-Jun-20 13:30 
GeneralRe: Antivirus Program Choices Pin
ormonds7-Jul-20 16:54
ormonds7-Jul-20 16:54 
JokeAnd on the home page... Pin
Peter_in_278027-Jun-20 21:20
professionalPeter_in_278027-Jun-20 21:20 
GeneralRe: And on the home page... Pin
honey the codewitch28-Jun-20 1:37
mvahoney the codewitch28-Jun-20 1:37 
RantI'm ready to pack it in. I've been outsmarted by .NET's garbage collector (A rant, not a question) Pin
honey the codewitch27-Jun-20 6:20
mvahoney the codewitch27-Jun-20 6:20 
Update: I killed it. It took me the better part of the day to get it right, and then get advanced with how i was using it, and then integrate that into the projects that go with the library but it's done. Woo. Changed the way I was doing interop somewhat, and it's more complicated now but it still works - although perf could be slightly improved (does two HGlobal allocs where it could in theory use one)

I sometimes really can't stand managed code.

I've got a MIDI callback I'm using while streaming playback, and it's supposed to notify me when the stream needs more data. It forwards that callback to an event off of my MidiStream object

Well, it does that fine, and in the console app i wrote it has no problem feeding more data to the stream each time.

I had been working on it all night, and finally thought I had it licked.

In a windows forms app on the the other hand, it works for awhile, and then randomly crashes because for some reason the delegate that handles the callback has been garbage collected. I have no idea why. It never should have been and doesn't appear to go out of scope anywhere.

Worse, I can't even catch the crash in the debugger - it just exits entirely without so much as an error message

I'm at a loss, and I can't release with this stability issue.

I miss C and C++ right about now. Frown | :(

Real programmers use butterflies


modified 27-Jun-20 22:25pm.

GeneralRe: I'm ready to pack it in. I've been outsmarted by .NET's garbage collector (A rant, not a question) Pin
User 1106097927-Jun-20 6:41
User 1106097927-Jun-20 6:41 
GeneralRe: I'm ready to pack it in. I've been outsmarted by .NET's garbage collector (A rant, not a question) Pin
honey the codewitch27-Jun-20 6:48
mvahoney the codewitch27-Jun-20 6:48 
GeneralRe: I'm ready to pack it in. I've been outsmarted by .NET's garbage collector (A rant, not a question) Pin
Richard Andrew x6427-Jun-20 7:00
professionalRichard Andrew x6427-Jun-20 7:00 
GeneralRe: I'm ready to pack it in. I've been outsmarted by .NET's garbage collector (A rant, not a question) Pin
User 1106097927-Jun-20 7:01
User 1106097927-Jun-20 7:01 
GeneralRe: I'm ready to pack it in. I've been outsmarted by .NET's garbage collector (A rant, not a question) Pin
harold aptroot27-Jun-20 7:05
harold aptroot27-Jun-20 7:05 
GeneralRe: I'm ready to pack it in. I've been outsmarted by .NET's garbage collector (A rant, not a question) Pin
honey the codewitch27-Jun-20 7:14
mvahoney the codewitch27-Jun-20 7:14 
GeneralRe: I'm ready to pack it in. I've been outsmarted by .NET's garbage collector (A rant, not a question) Pin
Greg Utas27-Jun-20 8:48
professionalGreg Utas27-Jun-20 8:48 
GeneralRe: I'm ready to pack it in. I've been outsmarted by .NET's garbage collector (A rant, not a question) Pin
honey the codewitch27-Jun-20 10:33
mvahoney the codewitch27-Jun-20 10:33 
GeneralRe: I'm ready to pack it in. I've been outsmarted by .NET's garbage collector (A rant, not a question) Pin
harold aptroot27-Jun-20 7:00
harold aptroot27-Jun-20 7:00 
GeneralRe: I'm ready to pack it in. I've been outsmarted by .NET's garbage collector (A rant, not a question) Pin
Slacker00727-Jun-20 7:12
professionalSlacker00727-Jun-20 7:12 
GeneralRe: I'm ready to pack it in. I've been outsmarted by .NET's garbage collector (A rant, not a question) Pin
honey the codewitch27-Jun-20 7:23
mvahoney the codewitch27-Jun-20 7:23 
GeneralRe: I'm ready to pack it in. I've been outsmarted by .NET's garbage collector (A rant, not a question) Pin
Sander Rossel28-Jun-20 0:48
professionalSander Rossel28-Jun-20 0:48 
GeneralRe: I'm ready to pack it in. I've been outsmarted by .NET's garbage collector (A rant, not a question) Pin
honey the codewitch28-Jun-20 1:34
mvahoney the codewitch28-Jun-20 1:34 
GeneralRe: I'm ready to pack it in. I've been outsmarted by .NET's garbage collector (A rant, not a question) Pin
Greg Utas28-Jun-20 1:55
professionalGreg Utas28-Jun-20 1:55 
GeneralRe: I'm ready to pack it in. I've been outsmarted by .NET's garbage collector (A rant, not a question) Pin
Sander Rossel28-Jun-20 2:31
professionalSander Rossel28-Jun-20 2:31 
GeneralRe: I'm ready to pack it in. I've been outsmarted by .NET's garbage collector (A rant, not a question) Pin
Greg Utas28-Jun-20 2:44
professionalGreg Utas28-Jun-20 2:44 
GeneralRe: I'm ready to pack it in. I've been outsmarted by .NET's garbage collector (A rant, not a question) Pin
Stuart Dootson29-Jun-20 4:08
professionalStuart Dootson29-Jun-20 4:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.