#485 Loginserver crash on windows in SetServerEquipmentAppearances.

已关闭
devn00b1 年之前创建 · 2 条评论
devn00b 评论于 1 年之前

Exception thrown: read access violation. mysql->** methods** was nullptr.occurred 0x0000000002981a20 "replace into login_equipment (login_characters_id, equip_type, red, green, blue, highlight_red, highlight_green, highlight_blue, slot) values (9003, 4043, 255, 255, 255, 255, 255, 255, 0)"

Exception thrown: read access violation. mysql->** methods** was nullptr.occurred 0x0000000002981a20 "replace into login_equipment (login_characters_id, equip_type, red, green, blue, highlight_red, highlight_green, highlight_blue, slot) values (9003, 4043, 255, 255, 255, 255, 255, 255, 0)"
devn00b 评论于 1 年之前
所有者

This was fixed by using runquery2.

if (!dbLogin.Query(ss.str().c_str())) <-- bad

Query query; query.RunQuery2(ss.str(), Q_REPLACE); <-- good

There are issues with stringstream and c_str()

Leaving this open for a few days in case any other bugs pop up.

This was fixed by using runquery2. if (!dbLogin.Query(ss.str().c_str())) <-- bad Query query; query.RunQuery2(ss.str(), Q_REPLACE); <-- good There are issues with stringstream and c_str() Leaving this open for a few days in case any other bugs pop up.
image 评论于 1 年之前
协作者

devn00b fixed this in 70f564e16d

devn00b fixed this in https://git.eq2emu.com/devn00b/EQ2EMu/commit/70f564e16d29b8b61478562455fbf6088bf14363
image1 年之前 关闭
登录 并参与到对话中。
正在加载...
取消
保存
这个人很懒,什么都没留下。