Terry,
I had a closer look at your problem and found a way around the problem. If you
refer to the menu item using the procedure in stead of the ID, it will work.
I also found out the if the Disable the menu item in a procedure called when
activating a menu item, you can refer to the ID.
My best guess is that MapInfo has some trouble with the ID so soon after the
creation of the menu item, but I wouldn't know why.
So this works:
***************************************
Create Menu "&Census" as
' "&Select Analysis Profile..."
' ...
"&Clear Thematic Map"
ID CLEAR_THEM_MAP_ITEM_ID
HelpMsg "Clear any Thematic Map from display"
calling CLEAR_THEM_MAP
Alter Menu Bar Add "Census"
Alter Menu Item CLEAR_THEM_MAP disable
***************************************
And please, don't think bad of me for googling your old messages. I surely wish
that I had kept them ;-)
Peter Horsbøll Møller
GIS Developer, MTM
Geographical Information & IT
COWI A/S
Odensevej 95
DK-5260 Odense S.
Denmark
Tel +45 6311 4900
Direct +45 6311 4908
Mob +45 5156 1045
Fax +45 6311 4949
E-mail [EMAIL PROTECTED]
http://www.cowi.dk/gis
> -----Original Message-----
> From: Terry McDonnell [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 03, 2006 6:42 PM
> To: Peter Horsbøll Møller; [EMAIL PROTECTED]
> Subject: RE: [MI-L] Internal Error 33012
>
> Hi Peter
>
> Might have guessed you'd be the first to answer :-) Thanks.
> When you say "Doesn't seem to be your year", do you mean the
> year that's just passed, or the flak I'm going to have to
> take in this one?
>
> Yes, it is indeed the SAME bit of code that I reported in
> November. I'd forgotten about mailing about it as, I think,
> I didn't get any worthwhile replies (or none I can dig up).
> I found the code commented out and just released it:
>
> Alter Menu Item ID CLEAR_THEM_MAP_ITEM_ID disable
>
> I've used:
>
> Alter Menu Item ID 100 disable
>
> ... as the example in Help, and I've changed the value of
> CLEAR_THEM_MAP_ITEM_ID from 300 to 100, but nothing works.
> It's all very well isolating the code that offends but
> knowing what the hell is wrong with it, what appears to be a
> perfectly sound piece of code, and receiving such a
> meaningless, unexplained error is a different matter.
>
> Can you see aught wrong with it?
>
> BTW, I'm touched to find that you've kept my old love letters {bg}
>
> Best regards
>
> Terry
>
> -----Original Message-----
> From: Peter Horsbøll Møller [mailto:[EMAIL PROTECTED]
> Sent: 03 January 2006 13:01
> To: Terry McDonnell
> Subject: RE: [MI-L] Internal Error 33012
>
> Terry,
>
> Doesn't seem to be your year ;-)
>
> This error is often connected to menu items, eg. when
> disabling or enabling them. So I guess you need to debug the
> procedure where your menus are being created. Try to find the
> last command executed in your application, and you have found
> the problem. BTW, yo had a similar problem November 14th 2005 ;-)
>
> Happy New Year to you as well
>
> Peter Horsbøll Møller
> GIS Developer, MTM
> Geographical Information & IT
>
> COWI A/S
> Odensevej 95
> DK-5260 Odense S.
> Denmark
>
> Tel +45 6311 4900
> Direct +45 6311 4908
> Mob +45 5156 1045
> Fax +45 6311 4949
> E-mail [EMAIL PROTECTED]
> http://www.cowi.dk/gis
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> Behalf Of Terry
> > McDonnell
> > Sent: Tuesday, January 03, 2006 1:20 PM
> > To: [EMAIL PROTECTED]
> > Subject: [MI-L] Internal Error 33012
> >
> > Happy New Year Dear List
> >
> > And straight in with an error that popped up for the first
> time just
> > as I was breaking up for the hols.
> >
> > I run my app and get the above error message, then MI
> crashes. Very
> > helpful!!!!
> > Can anyone shed some light on this?
> >
> > 'ppreciate it.
> >
> > Terry McDonnell
> > _______________________________________________
> > MapInfo-L mailing list
> > [email protected]
> > http://www.directionsmag.com/mailman/listinfo/mapinfo-l
> >
> >
> >
>
>
>
>
>
>
_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l