Treatment for passing out due to hypoglycemia?

I have been experiencing very frequent episodes of hypoglycemia over the last month. I am not diabetic. I have been to the doctor on multiple occasions and am going to see a specialist next week because my doctor believes that I may have an insulinoma. All my doctor has told me to do so far is to avoid foods high in sugar and to eat small frequent meals/snacks. I have gotten fairly confused several different times but the problems subsided when I ate a few pieces of candy and then had a snack. Today I was home alone all day and I started to feel like my blood sugar was dropping but instead of eating the candy first, I just had popcorn. I passed out and woke up approximately an hour and a half later with a really bad headache. I got up and almost fell over on the way to get something to eat. Several hours later I still have a headache but I am able to walk around and function without a problem. Is there anything that I should do tonight and what should I do if this happens again?