OCX's/windows regsvr32

I am new to writing OCX's/windows programming but have managed to  
  
modify an existing OCX with new functionality. But when I build the OCX  
  
in release mode and try to add this OCX with a simple visual basic  
  
project, it crashes upon exiting the project. But if I build the OCX in  
  
debug mode and do the same, it does not crash. Do you have any idea,  
  
why??  
  
Also the debug version of the OCX is having problem registering on a  
  
machine other than it was built on with an error "Debug Assertion  
  
Failed. File: oletyplb.cpp line 32". But if we build the OCX on that  
  
machine and then register it, then it's okay. I don't know if both the  
  
above problems are related or different.  
  
Any help will be appreciated.  
  
Thanks,  
  
kshah

<script type="text/javascript"> </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"> </script> name="google_ads_frame" marginwidth="0" marginheight="0" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-8682474657542641&dt=1152516796023&lmt=1152516796&alternate_ad_url=http%3A%2F%2Fwww.eggheadcafe.com%2Falternateads.asp&format=300x250_as&output=html&channel=2428473602&url=http%3A%2F%2Fwww.eggheadcafe.com%2Faspnet_answers%2Fvcactivextemplatelib%2FJun2006%2Fpost27052727.asp&color_bg=FFFFFF&color_text=000000&color_link=008000&color_url=666666&color_border=FFFFFF&cc=100&u_h=768&u_w=1024&u_ah=740&u_aw=1024&u_cd=16&u_tz=480&u_java=true" frameborder="0" width="300" scrolling="no" height="250" allowtransparency="allowtransparency">

6/8/2006 8:59:32 AM    Re: Error in OCX
<mail2kinashah@yahoo.com> wrote in message  
  
news:1149772543.120727.198670@j55g2000cwa.googlegroups.com...  
  
Debug mode will automatically zero uninitialized variables for you. Release  
  
mode won't. This is one of the common reasons Release mode will crash when  
  
Debug mode won't. The bottom line is, you have a bug that you need to track  
  
down.  
  
It's probably not related, but you need to get rid of your bugs first.  
  
Before moving your OCX to a target machine, make sure that any dependent  
  
DLL's are also moved. See http://www.dependencywalker.com for a tool to help  
  
identify dependent DLL's.  
  
Brian
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值