Hi,
Thanks  for  your query.
After going through your suffering, it seems you have developed muscle spasm (cramp).The cramps are caused by hyper excitability of the nerves that stimulate the muscles.  Drugs given for 
asthma, anginaand Parkinsonism also lead to cramp. 
Infact, till date there is no clear cut evidence for the cause of 
muscle cramps. But the most common cited theories include -
- Altered neuromuscular control
- Dehydration
- Electrolyte depletion
- Poor conditioning
- Muscle fatigue
- Doing a new activity
Self-care Activities that might help prevent night 
leg cramps include:
• Drinking plenty of fluids to avoid dehydration
• Stretching your leg muscles or riding a stationary bicycle for a few minutes before you go to bed
• Massaging the cramped muscle with your hands or with ice
• Walking or jiggling the leg
• Taking a hot shower or warm bath
• Foods such as bananas, potatoes, prune juice and dried 
I do hope that you have found something helpful and I will be glad to answer any further query.
Take care