pb10.0生成的执行文件出错啊,各位大侠救命啊

lifanfred 2007-10-01 09:33:40
打开生成的EXE文件后,能进入开始的窗口,这个窗口的功能是用户登录,但是输入用户名和密码,点击确定后,就弹出一个窗口,标题是dwwin.exe-应用程序错误,内容是应用程序发生异常。unknown software exception(Ox80000003),位置为Ox7c921230,要终止程序,请单击确定,要调试程序,请单击“取消”。我的程序在PB中运行很正常啊,不明白是什么原因,各位大侠帮帮忙啊,毕业设计,马上就要答辩了。
开始窗口的OPEN事件:
ds_users=create datastore
ds_users.dataobject="dw_userinfo"
ds_users.settransobject(SQLCA)
ds_users.retrieve()
userid.text=""
password.text=""
userid.setfocus()



下面这个是确定按钮的程序
string t1="操作提示"
string t2="登录失败"
string m1="请先输入用户名!然后重试..."
string m2= "请先输入密码!然后重试..."
string m3="用户名或者密码不正确!请重试..."

if userid.text="" then
messagebox(t1,m1)
return
end if
if password.text="" then
messagebox(t1,m2)
password.setfocus()
return
end if

int rowcount = 0
select count(*) into :rowcount
from usersinfo
where usersname = :userid.text and passwd = :password.text
;
if rowcount>0 then
char temp
select rank into :temp
from usersinfo
where usersname = :userid.text and passwd = :password.text;
UserRank=temp
gs_userid=userid.text
gs_pwd=password.text
else
messagebox(t2,m3,Exclamation!)
return
end if

parent.visible=false
open(w_main)
close(parent)
...全文
126 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
lifanfred 2007-12-02
  • 打赏
  • 举报
回复
唉,到毕业设计交了程序还是不能运行,不知道能不能过呢。
还是谢谢大家了
分很少,每个人给点啦
不好意思
hygougou 2007-11-26
  • 打赏
  • 举报
回复
在调试区写代码debugbreak(),

进入调试界面运行即可
lllyyymmm 2007-11-25
  • 打赏
  • 举报
回复
重新完全编译再试一下
kai888 2007-11-23
  • 打赏
  • 举报
回复
单点跟踪,在你的程序里的某一行点右键,insert breakpoint 在点DEBUG就可以了!
AFIC 2007-10-03
  • 打赏
  • 举报
回复
拷贝的dll不够,要么自己查google,要么把share文件夹下的都考走
setmind 2007-10-03
  • 打赏
  • 举报
回复
dw_userinfo多数你这个窗口没有生成实例,把这个窗口的名称加到pbr中试一下
foxpby 2007-10-03
  • 打赏
  • 举报
回复
SQL语法错误。在SQL语句中,不能用类似:userid.text 、password.text这样的语法,
在任何语言环境下,SQL语句都不能包含对非SQL标准以外的引用,正确使用方法举例如下:

string ls_userid,ls_password

ls_userid = userid.text
ls_password = password.text

select count(*) into :rowcount
from usersinfo
where usersname = :ls_userid and passwd = :ls_password;
lifanfred 2007-10-02
  • 打赏
  • 举报
回复
我是初学者,单点跟踪怎么弄
ribut9225 2007-10-02
  • 打赏
  • 举报
回复
断点跟踪调试一下吧

743

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 脚本语言
社区管理员
  • 脚本语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧