🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.sys.palmtop.pilot
Article #8

DmGetRecord causes fatal error

#8
From: EdO
Date: Mon, 10 Mar 2003 02:28
29 lines
2668 bytes
Hi,

I have an application which works on a database transmitted by another
application via the Exchange manager. In order to facilitate upgrades to
this database, I have designed an application to be able to recieved updates
via the IR exchange library.

Upon recipt of an incoming tranmission with the correct file extension, the
exchange manager will call the application with the
sysAppLaunchCmdExgReceiveData.

When this happens, the application checks if it is active and recieve the
data upon confirmation by the user. If the application is not running, the
file is simply uploaded to the device..

In the case where the application IS running, I have a problem with the
ability to access the new uploaded Database. Before I run my exchange
manager recieve function, I close the Database which be overwritten. I then
proceed to recieve the new database and then Open it again.

The problem occurs as soon as I run DmGetRecord(databaseptr, 0). I know this
is wrong because the Database I'm sending, is a loop backed copy of another
non-empty database.

I must be missing something? How can I safely upload over an existing
database?

Thanks,
Ed
Technical Details
Message-ID: <oLSaa.213754$Zr%.4070@news01.bloor.is.net.cable.rogers.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!c03.atl99!sjc70.webusenet.com!news.webusenet.com!news03.bloor.is.net.cable.rogers.com!news01.bloor.is.net.cable.rogers.com.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109d41,ad851c807c826e1b,start
X-Google-Attributes: gid109d41,public
X-Google-Thread: f635a,ad851c807c826e1b,start
X-Google-Attributes: gidf635a,public
X-Google-Thread: 10c638,ad851c807c826e1b,start
X-Google-Attributes: gid10c638,public
X-Google-Thread: fd203,ad851c807c826e1b,start
X-Google-Attributes: gidfd203,public
X-Google-Thread: 10baa0,ad851c807c826e1b,start
X-Google-Attributes: gid10baa0,public
X-Google-ArrivalTime: 2003-03-09 18:28:40 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!c03.atl99!sjc70.webusenet.com!news.webusenet.com!news03.bloor.is.net.cable.rogers.com!news01.bloor.is.net.cable.rogers.com.POSTED!not-for-mail
From: "EdO" <ediforniaSP@MBEGONEyahoo.com>
Newsgroups: alt.comp.sys.palmtop.pilot,codewarrior.palm,pilot.programmer,pilot.programmer.codewarrior,pilot.programmer.gcc
Subject: DmGetRecord causes fatal error
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4920.2300
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300
Message-ID: <oLSaa.213754$Zr%.4070@news01.bloor.is.net.cable.rogers.com>
Date: Mon, 10 Mar 2003 02:28:36 GMT
NNTP-Posting-Host: 24.42.187.179
X-Complaints-To: abuse@rogers.com
X-Trace: news01.bloor.is.net.cable.rogers.com 1047263316 24.42.187.179 (Sun, 09 Mar 2003 21:28:36 EST)
NNTP-Posting-Date: Sun, 09 Mar 2003 21:28:36 EST