2010-12-03 5 views
1

Eclipseで奇妙なエラー

こんにちは皆私はこのコードスニペットがあります:

 void* Init(int N) { 
    Hand * DS = new Hand(N); 
    return (void*)DS; 
//DS is static defined somewhere... 
デバッガをチェックインするたびに同じエラーが表示されます:

mi_cmd_var_create: unable to create variable objec 

なぜ誰かが説明できますか? P.S.私はこの機能の実装がうまくいかないことを知っていますが、それは私が持っているものです...手のコンストラクタは完全に動作します!

+0

"ハンド*" は "ハンド*" のように、togheterすべきではありませんか? –

答えて

1

This guyはそれが好きで解決:

If you have variables in your watch window that you later eliminate from your code then attempt to debug again this error is generated. The fix is to also delete the variable from the watch list. At least this is how it works in Eclipse Europa.