Runtime error? How does it look? Debugger menu or pop-up window?
In second case, make sure you don't use #methods without variables, for example
#method
{
BLABLABLA
}
This worked in 2.1, but not in 2.2. Put instead...
#method()
{
BLABLABLA
}
I doubt it's this, so say what exactly is happening, and when...
(a good method is to put up #mwin("1"), #mwin("2") etc in the code that causes problems, and see at what number is stops exactly to see where the problem lies)